diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2012-06-16 20:08:09 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2012-06-16 20:08:09 +0000 |
commit | 2cc9ea9e02449d21f2e2301dcb9d07bac5000cae (patch) | |
tree | 7a7414f6cdfe8c125814063ba0abd7d8d44090e0 /dev-perl | |
parent | Fix header. Remove extra dep. (diff) | |
download | gentoo-2-2cc9ea9e02449d21f2e2301dcb9d07bac5000cae.tar.gz gentoo-2-2cc9ea9e02449d21f2e2301dcb9d07bac5000cae.tar.bz2 gentoo-2-2cc9ea9e02449d21f2e2301dcb9d07bac5000cae.zip |
Version bump. Added many use flags, previously assumed automagic'ed. Respect user fortran compiler and flags. Added a port_rm to remove generated files. Added sci as maintainer and a long description. USe the newer PDL homepage
(Portage version: 2.1.10.63/cvs/Linux x86_64)
Diffstat (limited to 'dev-perl')
-rw-r--r-- | dev-perl/PDL/ChangeLog | 13 | ||||
-rw-r--r-- | dev-perl/PDL/PDL-2.4.11.ebuild | 114 | ||||
-rw-r--r-- | dev-perl/PDL/files/PDL-2.4.11-fortran.patch | 22 | ||||
-rw-r--r-- | dev-perl/PDL/files/PDL-2.4.11-shared-hdf.patch | 36 | ||||
-rw-r--r-- | dev-perl/PDL/metadata.xml | 30 |
5 files changed, 206 insertions, 9 deletions
diff --git a/dev-perl/PDL/ChangeLog b/dev-perl/PDL/ChangeLog index 58a974a2c90e..55a16030cc23 100644 --- a/dev-perl/PDL/ChangeLog +++ b/dev-perl/PDL/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for dev-perl/PDL -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-perl/PDL/ChangeLog,v 1.98 2011/07/29 17:27:47 tove Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/PDL/ChangeLog,v 1.99 2012/06/16 20:08:08 bicatali Exp $ + +*PDL-2.4.11 (16 Jun 2012) + + 16 Jun 2012; Sébastien Fabbro <bicatali@gentoo.org> +PDL-2.4.11.ebuild, + +files/PDL-2.4.11-fortran.patch, +files/PDL-2.4.11-shared-hdf.patch, + metadata.xml: + Version bump. Added many use flags, previously assumed automagic'ed. Respect + user fortran compiler and flags. Added a port_rm to remove generated files. + Added sci as maintainer and a long description. USe the newer PDL homepage 29 Jul 2011; Torsten Veller <tove@gentoo.org> -PDL-2.4.6.ebuild: Cleanup 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 000000000000..2ddc63806e6a --- /dev/null +++ b/dev-perl/PDL/PDL-2.4.11.ebuild @@ -0,0 +1,114 @@ +# 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.11.ebuild,v 1.1 2012/06/16 20:08:09 bicatali Exp $ + +EAPI=4 + +MODULE_AUTHOR=CHM +inherit perl-module eutils fortran-2 + +HOMEPAGE="http://pdl.perl.org/" +DESCRIPTION="Perl Data Language for scientific computing" + +LICENSE="Artistic as-is" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+badval doc fftw fortran gd gsl hdf netpbm opengl pdl2 proj pgplot plplot threads" + +RDEPEND="sys-libs/ncurses + app-arch/sharutils + dev-perl/Astro-FITS-Header + 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-4.8 ) + opengl? ( dev-perl/OpenGL ) + pgplot? ( dev-perl/PGPLOT ) + plplot? ( sci-libs/plplot )" + +DEPEND="${RDEPEND} + fortran? ( virtual/fortran >=dev-perl/ExtUtils-F77-1.13 )" + +REQUIRED_USE="plplot? ( badval )" + +mydoc="BUGS DEPENDENCIES DEVELOPMENT Known_problems MANIFEST* Release_Notes" + +SRC_TEST="do" + +pkg_setup() { + perl-module_pkg_setup + use fortran && fortran-2_pkg_setup +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-2.4.2-makemakerfix.patch + # respect user choice for fortran compiler+flags, add pic + epatch "${FILESDIR}"/${PN}-2.4.11-fortran.patch + # search for shared hdf instead of static + epatch "${FILESDIR}"/${PN}-2.4.11-shared-hdf.patch +} + +src_configure() { + sed -i \ + -e '/USE_POGL/s/=>.*/=> 1,/' \ + -e "/HTML_DOCS/s/=>.*/=> $(use doc && echo 1 || echo 0),/" \ + -e "/WITH_BADVAL/s/=>.*/=> $(use badval && echo 1|| echo 0),/" \ + -e "/WITH_DEVEL_REPL/s/=>.*/=> $(use pdl2 && echo 1 || echo 0),/" \ + -e "/WITH_FFTW/s/=>.*/=> $(use fftw && echo 1 || echo 0),/" \ + -e "/WITH_GSL/s/=>.*/=> $(use gsl && echo 1 || echo 0),/" \ + -e "/WITH_GD/s/=>.*/=> $(use gd && echo 1 || echo 0),/" \ + -e "/WITH_HDF/s/=>.*/=> $(use hdf && echo 1 || echo 0),/" \ + -e "/WITH_3D/s/=>.*/=> $(use opengl && echo 1 || echo 0),/" \ + -e "/WITH_MINUIT/s/=>.*/=> $(use fortran && echo 1|| echo 0),/" \ + -e "/WITH_PGPLOT/s/=>.*/=> $(use pgplot && echo 1 || echo 0),/" \ + -e "/WITH_PLPLOT/s/=>.*/=> $(use plplot && echo 1 || echo 0),/" \ + -e "/WITH_POSIX_THREADS/s/=>.*/=> $(use threads && echo 1 || echo 0),/" \ + -e "/WITH_PROJ/s/=>.*/=> $(use proj && echo 1 || echo 0),/" \ + -e "/WITH_SLATEC/s/=>.*/=> $(use fortran && echo 1|| echo 0),/" \ + perldl.conf || die + perl-module_src_configure +} + +src_test() { + MAKEOPTS+=" -j1" perl-module_src_test +} + +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.11-fortran.patch b/dev-perl/PDL/files/PDL-2.4.11-fortran.patch new file mode 100644 index 000000000000..5cd08d7f59e4 --- /dev/null +++ b/dev-perl/PDL/files/PDL-2.4.11-fortran.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 ++ \$(FC) \$(FFLAGS) -fPIC -c -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 ++ \$(FC) \$(FFLAGS) -c -fPIC -o slatec/$_\$(OBJ_EXT) $mycflags slatec/$_.f + " )} @slatecfiles; + + } diff --git a/dev-perl/PDL/files/PDL-2.4.11-shared-hdf.patch b/dev-perl/PDL/files/PDL-2.4.11-shared-hdf.patch new file mode 100644 index 000000000000..3cf22a31ce72 --- /dev/null +++ b/dev-perl/PDL/files/PDL-2.4.11-shared-hdf.patch @@ -0,0 +1,36 @@ +--- IO/HDF/Makefile.PL.orig 2012-06-16 18:43:24.000000000 +0100 ++++ IO/HDF/Makefile.PL 2012-06-16 18:44:51.000000000 +0100 +@@ -63,20 +63,20 @@ + # Look for the libs: + foreach my $libdir ( @HDF_lib_locations ) + { +- if (-e "$libdir/libdfalt.a" && !$found_df) ++ if (-e "$libdir/libdfalt.$Config{so}" && !$found_df) + { + $found_df = 1; + $hdf_lib_path = $libdir; + $hdf_libs = '-lmfhdfalt -ldfalt'; +- print "Found libdfalt.a at $libdir/libdfalt.a\n"; ++ print "Found libdfalt.$Config{so} at $libdir/libdfalt.$Config{so}\n"; + } + +- if (-e "$libdir/libdf.a" && !$found_df) ++ if (-e "$libdir/libdf.$Config{so}" && !$found_df) + { + $found_df = 1; + $hdf_lib_path = $libdir; + $hdf_libs = '-lmfhdf -ldf'; +- print "Found libdf.a at $libdir/libdf.a\n"; ++ print "Found libdf.$Config{so} at $libdir/libdf.$Config{so}\n"; + } + + # Look for the szip library, which HDF >= 4.2r0 needs, but older versions don't! +@@ -90,7 +90,7 @@ + + unless( defined( $hdf_lib_path ) ) + { +- $msg .= "Cannot find hdf library, libdf.a.\n" ++ $msg .= "Cannot find hdf library, libdf.$Config{so}.\n" + . "Please add the correct library path to Makefile.PL or install HDF\n"; + + } diff --git a/dev-perl/PDL/metadata.xml b/dev-perl/PDL/metadata.xml index 547c4b28b633..d86946c2e268 100644 --- a/dev-perl/PDL/metadata.xml +++ b/dev-perl/PDL/metadata.xml @@ -1,11 +1,27 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <herd>perl</herd> - <use> - <flag name="badval">Enable badval support</flag> - </use> - <upstream> - <remote-id type="cpan">PDL</remote-id> - </upstream> +<herd>sci</herd> +<herd>perl</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 bad values support</flag> + <flag name="hdf">Enable HDF (version 4) format support</flag> + <flag name="netpbm">Enable NETPBM and MPEG support</flag> + <flag name="pdl2">Build pdf2 shell (requires Devel-REPL)</flag> + <flag name="proj">Enable projection support</flag> + <flag name="pgplot">Enable PGPLOT plotting capabilities</flag> + <flag name="plplot">Enable plplot plotting capabilities</flag> +</use> +<upstream> + <remote-id type="cpan">PDL</remote-id> +</upstream> </pkgmetadata> |