public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sebastien Fabbro" <bicatali@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: dev-perl/PDL/, dev-perl/PDL/files/
Date: Sat, 16 Jun 2012 00:43:08 +0000 (UTC)	[thread overview]
Message-ID: <1339807020.408a7618ab8fa166637d5e1a7215a6843f692cf6.bicatali@gentoo> (raw)

commit:     408a7618ab8fa166637d5e1a7215a6843f692cf6
Author:     Sébastien Fabbro <sebfabbro <AT> gmail <DOT> com>
AuthorDate: Sat Jun 16 00:37:00 2012 +0000
Commit:     Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Sat Jun 16 00:37:00 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=408a7618

dev-perl/PDL: Version bump

(Portage version: 2.1.10.63/git/Linux x86_64, unsigned Manifest commit)

---
 dev-perl/PDL/ChangeLog                          |   11 ++
 dev-perl/PDL/PDL-2.4.11.ebuild                  |  112 +++++++++++++++++++++++
 dev-perl/PDL/files/PDL-2.4.2-makemakerfix.patch |   20 ++++
 dev-perl/PDL/files/PDL-2.4.4-PIC.patch          |   22 +++++
 dev-perl/PDL/files/perldl.conf                  |  110 ++++++++++++++++++++++
 dev-perl/PDL/metadata.xml                       |   26 +++++
 6 files changed, 301 insertions(+), 0 deletions(-)

diff --git a/dev-perl/PDL/ChangeLog b/dev-perl/PDL/ChangeLog
new file mode 100644
index 0000000..17ed7ea
--- /dev/null
+++ b/dev-perl/PDL/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-perl/PDL
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*PDL-2.4.11 (16 Jun 2012)
+
+  16 Jun 2012; Sébastien Fabbro <bicatali@gentoo.org>
+  +files/PDL-2.4.2-makemakerfix.patch, +files/PDL-2.4.4-PIC.patch,
+  +PDL-2.4.11.ebuild, +files/perldl.conf, +metadata.xml:
+  Version bump
+

diff --git a/dev-perl/PDL/PDL-2.4.11.ebuild b/dev-perl/PDL/PDL-2.4.11.ebuild
new file mode 100644
index 0000000..28e98d4
--- /dev/null
+++ b/dev-perl/PDL/PDL-2.4.11.ebuild
@@ -0,0 +1,112 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-perl/PDL/PDL-2.4.7.ebuild,v 1.3 2010/08/23 13:39:54 tove Exp $
+
+EAPI=4
+
+MODULE_AUTHOR=CHM
+inherit eutils fortran-2 perl-module
+
+HOMEPAGE="http://pdl.perl.org/"
+DESCRIPTION="Perl Data Language scientific computing"
+
+LICENSE="Artistic as-is"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="badval doc fftw gd gsl hdf netpbm opengl pdl2 proj pgplot plplot threads"
+
+RDEPEND="sys-libs/ncurses
+	app-arch/sharutils
+	dev-perl/Astro-FITS-Header
+	>=dev-perl/ExtUtils-F77-1.13
+	dev-perl/File-Map
+	dev-perl/Inline
+	dev-perl/TermReadKey
+	|| ( dev-perl/Term-ReadLine-Perl dev-perl/Term-ReadLine-Gnu )
+	virtual/perl-Data-Dumper
+	virtual/perl-PodParser
+	virtual/perl-File-Spec
+	virtual/perl-File-Temp
+	virtual/perl-Filter
+	virtual/perl-Storable
+	virtual/perl-Text-Balanced
+	fftw? ( sci-libs/fftw:2.1 )
+	gd? ( media-libs/gd )
+	gsl? ( sci-libs/gsl )
+	hdf? ( sci-libs/hdf )
+	netpbm? ( media-libs/netpbm virtual/ffmpeg )
+	pdl2? ( dev-perl/Devel-REPL )
+	proj? ( sci-libs/proj )
+	opengl? ( dev-perl/OpenGL )
+	pgplot? ( dev-perl/PGPLOT )
+	plplot? ( sci-libs/plplot )"
+
+DEPEND="${RDEPEND}
+	virtual/fortran"
+
+mydoc="BUGS DEPENDENCIES DEVELOPMENT Known_problems MANIFEST* Release_Notes"
+
+SRC_TEST="do"
+
+#MAKEOPTS+=" -j1"
+
+src_prepare() {
+	epatch "${FILESDIR}"/${PN}-2.4.2-makemakerfix.patch
+	# Unconditional -fPIC for the lib (#55238, #180807, #250335)
+	epatch "${FILESDIR}"/${PN}-2.4.4-PIC.patch
+}
+
+src_configure() {
+	pdl_use() {
+		local p=${2:-WITH_${1^^}}
+		if use $1; then
+			echo "-e \"/${p}/s/=>.*/=> 1/\""
+		else
+			echo "-e \"/${p}/s/=>.*/=> 0/\""
+		fi
+	}
+	sed -i \
+		-e '/USE_POGL/s/=>.*/=> 1,/' \
+		-e '/WITH_MINUIT/s/=>.*/=> 1,/' \
+		-e '/WITH_SLATEC/s/=>.*/=> 1,/' \
+		-e "/WITH_BADVAL/s/=>.*/=> $(use badval && echo true || echo false),/" \
+		-e "/HTML_DOCS/s/=>.*/=> $(use doc && echo 1 || echo 0),/" \
+		-e "/WITH_FFTW/s/=>.*/=> $(use fftw && echo true || echo false),/" \
+		-e "/WITH_GSL/s/=>.*/=> $(use gsl && echo true || echo false),/" \
+		-e "/WITH_GD/s/=>.*/=> $(use gd && echo true || echo false),/" \
+		-e "/WITH_HDF/s/=>.*/=> $(use hdf && echo true || echo false),/" \
+		-e "/WITH_3D/s/=>.*/=> $(use opengl && echo true || echo false),/" \
+		-e "/WITH_PGPLOT/s/=>.*/=> $(use pgplot && echo 1 || echo 0),/" \
+		-e "/WITH_PLPLOT/s/=>.*/=> $(use plplot && echo 1 || echo 0),/" \
+		-e "/WITH_PROJ/s/=>.*/=> $(use proj && echo true || echo false),/" \
+		-e "/WITH_DEVEL_REPL/s/=>.*/=> $(use pdl2 && echo true || echo false),/" \
+		-e "/WITH_POSIX_THREADS/s/=>.*/=> $(use threads && echo true || echo 0),/" \
+		perldl.conf || die
+	perl-module_src_configure
+}
+
+src_install() {
+	perl-module_src_install
+	insinto /${VENDOR_ARCH}/PDL/Doc
+	doins Doc/{scantree.pl,mkhtmldoc.pl}
+}
+
+pkg_postinst() {
+	if [[ ${EROOT} = / ]] ; then
+		perl ${VENDOR_ARCH}/PDL/Doc/scantree.pl
+		elog "Building perldl.db done. You can recreatethis at any time"
+		elog "by running"
+	else
+		elog "You must create perldl.db by running"
+	fi
+	elog "perl ${VENDOR_ARCH}/PDL/Doc/scantree.pl"
+	elog "PDL requires that glx and dri support be enabled in"
+	elog "your X configuration for certain parts of the graphics"
+	elog "engine to work. See your X's documentation for futher"
+	elog "information."
+}
+
+pkg_prerm() {
+	rm -rf "${EROOT}"/var/lib/pdl/html
+	rm -f  "${EROOT}"/var/lib/pdl/pdldoc.db "${EROOT}"/var/lib/pdl/Index.pod
+}

diff --git a/dev-perl/PDL/files/PDL-2.4.2-makemakerfix.patch b/dev-perl/PDL/files/PDL-2.4.2-makemakerfix.patch
new file mode 100644
index 0000000..6cf2c40
--- /dev/null
+++ b/dev-perl/PDL/files/PDL-2.4.2-makemakerfix.patch
@@ -0,0 +1,20 @@
+--- Demos/BAD2_demo.pm.PL	2006/04/20 07:42:24	1.1
++++ Demos/BAD2_demo.pm.PL	2006/04/20 07:42:32
+@@ -3,6 +3,7 @@
+ # - requires both bad-value support and PGPLOT
+ #
+ 
++use blib;
+ use strict;
+ 
+ use Config;
+--- Demos/BAD_demo.pm.PL	2006/04/20 07:42:17	1.1
++++ Demos/BAD_demo.pm.PL	2006/04/20 07:42:38
+@@ -3,6 +3,7 @@
+ # - needed since we allow bad pixel handling to be switched off
+ #
+  
++use blib;
+ use strict;
+  
+ use Config;

diff --git a/dev-perl/PDL/files/PDL-2.4.4-PIC.patch b/dev-perl/PDL/files/PDL-2.4.4-PIC.patch
new file mode 100644
index 0000000..a0087c9
--- /dev/null
+++ b/dev-perl/PDL/files/PDL-2.4.4-PIC.patch
@@ -0,0 +1,22 @@
+--- Lib/Minuit/Makefile.PL
++++ Lib/Minuit/Makefile.PL
+@@ -149,7 +149,7 @@
+ 	    ("
+ 
+ minuitlib/$_\$(OBJ_EXT): minuitlib/$_.f 
+-	$mycompiler -c $hack_64bit -o minuitlib/$_\$(OBJ_EXT) $mycflags minuitlib/$_.f
++	$mycompiler -c -fPIC -o minuitlib/$_\$(OBJ_EXT) $mycflags minuitlib/$_.f
+ " )} @minuitfiles;
+ 
+ 	if (!defined($PDL::Config{MINUIT_LIB})){
+--- Lib/Slatec/Makefile.PL
++++ Lib/Slatec/Makefile.PL
+@@ -136,7 +136,7 @@
+ ("
+ 
+ slatec/$_\$(OBJ_EXT): slatec/$_.f 
+-	$mycompiler -c $hack_64bit -o slatec/$_\$(OBJ_EXT) $mycflags slatec/$_.f
++	$mycompiler -c -fPIC -o slatec/$_\$(OBJ_EXT) $mycflags slatec/$_.f
+ " )} @slatecfiles;
+  
+ }

diff --git a/dev-perl/PDL/files/perldl.conf b/dev-perl/PDL/files/perldl.conf
new file mode 100644
index 0000000..1fe24f3
--- /dev/null
+++ b/dev-perl/PDL/files/perldl.conf
@@ -0,0 +1,110 @@
+# -*-perl-*-
+
+# PDL Configuration options
+
+# You can edit this here or say 'perl Makefile.PL PDLCONF=file'
+# or use ~/.perldl.conf
+
+# Note in general "0" means False, "1" means "True" and "undef"
+# means "Try if possible (e.g. because the library is found)"
+
+%PDL_CONFIG = (
+
+# Use posix threading to make use of multiprocessor machines
+# undef -> try if possible
+# 0 -> don't use
+# true -> force use
+
+	WITH_POSIX_THREADS => undef,  	
+
+	MALLOCDBG => undef,
+# {
+#			include => '-I/home/csoelle/tmp',
+#			libs => '-L/home/csoelle/tmp -lmymalloc',
+#			define => << 'EOD',
+##define malloc(n) dbgmalloc(n,__FILE__,__LINE__)
+##define free(p) dbgfree(p)
+#EOD
+#			include => '',
+#			libs => '-lefence',
+#			define => '',
+#                     },
+
+# Do we want routines to handle bad values?
+#   saying no will make PDL a bit faster
+# true  -> yes
+# false -> no, undef -> no
+#
+	WITH_BADVAL => 0,
+#	WITH_BADVAL => 1,
+
+# if WITH_BADVAL == 1, do we use NaN/Inf to represent badvalues
+# (not convinced setting this results in faster code)
+#
+	BADVAL_USENAN => 0,
+#	BADVAL_USENAN => 1,
+
+# Try to build Graphics/TriD
+	WITH_3D => undef,
+#
+#  For Mesa 3.2
+#
+	OPENGL_LIBS => '-L/usr/lib -lGL -lGLU -L/usr/X11R6/lib -lXext -lX11',
+#
+#  Mesa need -DGL_GLEXT_LEGACY for glPolygonOffsetEXT amoung others
+#
+	OPENGL_DEFINE => '-DGL_GLEXT_LEGACY',
+ 	OPENGL_INC => '-I/usr/include',
+#
+# 
+# For SGI GL
+#
+#	OPENGL_LIBS => '-lGL -lGLU -lXext -lX11',
+# 	OPENGL_INC => '',
+#	OPENGL_DEFINE => '',
+#
+# Let perl try to figure it out
+#	OPENGL_LIBS => undef,
+# 	OPENGL_INC => undef,
+#	OPENGL_DEFINE => undef,
+# Whether or not to build the Karma interface module
+
+        WITH_KARMA => undef,    # Leave it up to PDL to decide
+        WHERE_KARMA => undef,   # you may explicitly specify directory location
+	
+# Whether or not to build the PDL::Slatec module
+# 0 -> don't use
+# true -> force use
+
+        WITH_SLATEC => undef,    # Leave it up to PDL to decide
+
+# Whether or not to build the PDL::GSL module
+# 0 -> don't use
+# true -> force use
+
+        WITH_GSL => undef,    # Leave it up to PDL to decide
+
+# Location to search for the GSL libs
+	GSL_LIBS => [ '/lib','/usr/lib','/usr/local/lib'],
+# Location to find GSL includes:
+ 	GSL_INC => '-I/usr/include/gsl -I/usr/local/include',
+
+# Whether or not to build the PDL::FFTW module
+# 0 -> don't use
+# true -> force use
+
+        WITH_FFTW => undef,    # Leave it up to PDL to decide
+
+# Location to search for the FFTW libs
+	FFTW_LIBS => [ '/lib','/usr/lib','/usr/local/lib'],
+# Location to find FFTW includes:
+ 	FFTW_INC => ['/usr/include/','/usr/local/include'],
+
+# FFTW Numeric Precision Type to link in: (double or single precision)
+	FFTW_TYPE => 'double',
+	
+);
+
+1; # Return OK status on 'require'
+
+

diff --git a/dev-perl/PDL/metadata.xml b/dev-perl/PDL/metadata.xml
new file mode 100644
index 0000000..8ea87de
--- /dev/null
+++ b/dev-perl/PDL/metadata.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+<longdescription lang="en">
+ The Perl Data Language  gives standard perl the ability to compactly
+ store and speedily manipulate the large N-dimensional data arrays 
+ which are the bread and butter of scientific computing.  The idea 
+ is to turn perl in to a free, array-oriented, numerical language 
+ in the same sense as commercial packages like IDL and MatLab. One
+ can write simple perl expressions to manipulate entire numerical
+ arrays all at once.
+</longdescription>
+<use>
+  <flag name="badval">Enable badval support</flag>
+  <flag name="hdf">Enable HDF support</flag>
+  <flag name="netpbm">Enable NETPBM support</flag>
+  <flag name="pdl2">Build pdf2 experimental shell</flag>
+  <flag name="proj">Enable NETPBM support</flag>
+  <flag name="pgplot">Enable PGPLOT support</flag>
+  <flag name="plplot">Enable plplot support</flag>
+</use>
+<upstream>
+  <remote-id type="cpan">PDL</remote-id>
+</upstream>
+</pkgmetadata>



                 reply	other threads:[~2012-06-16  0:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1339807020.408a7618ab8fa166637d5e1a7215a6843f692cf6.bicatali@gentoo \
    --to=bicatali@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox