diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2021-11-25 02:27:28 +0100 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2021-11-25 02:34:43 +0100 |
commit | 3a7588344e01a6d23bc26750b8b88e0ff474702e (patch) | |
tree | 820184eb1f4458b9a9a0aa4e63086af0ca80c12e /dev-perl/PDL | |
parent | dev-perl/PDF-Create: Remove old (diff) | |
download | gentoo-3a7588344e01a6d23bc26750b8b88e0ff474702e.tar.gz gentoo-3a7588344e01a6d23bc26750b8b88e0ff474702e.tar.bz2 gentoo-3a7588344e01a6d23bc26750b8b88e0ff474702e.zip |
dev-perl/PDL: Version bump 2.063
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'dev-perl/PDL')
-rw-r--r-- | dev-perl/PDL/Manifest | 1 | ||||
-rw-r--r-- | dev-perl/PDL/PDL-2.63.0.ebuild | 137 | ||||
-rw-r--r-- | dev-perl/PDL/files/PDL-2.63.0-fortran.patch | 24 |
3 files changed, 162 insertions, 0 deletions
diff --git a/dev-perl/PDL/Manifest b/dev-perl/PDL/Manifest index 84756b06eb57..5b8884f6bd9c 100644 --- a/dev-perl/PDL/Manifest +++ b/dev-perl/PDL/Manifest @@ -1,2 +1,3 @@ DIST PDL-2.017.tar.gz 2889414 BLAKE2B e49e0ee7e7fc3d95dd27098e8008930673cc4067331f2e4d9eecf8584fe717b15d5b4c7198548ea79a4543d94c1078f5e6eedd731b94d7ce062ab2841c32fc8d SHA512 b1c60b45427153928834619a59ef2213a0845564ae997e22fe202dfee281647edceb68bf3bfa6602ee69a7fd0cc69b7b61ccb74407f490d9fa40230f74599411 DIST PDL-2.054.tar.gz 2848187 BLAKE2B e96598f88b4b3cabda88785881e9651b2984c2850fd1b161f869bb462386509c4fd659324cd5bdd139152a9d3db4857fe6443ac090c8d4740482972bdab893f5 SHA512 56b7c77961e19747a1117b63f35a3667b4b7ed14c991bf673eb1f4df4970d642f37170a6abd55d219897b0e02fcd42d7475f6b1268b810706c6818595682de2a +DIST PDL-2.063.tar.gz 2813482 BLAKE2B eff1737c2d27a51b911f8dd32095bb3016cddf52a93242ddad9fad3e179cd499d84b17ef1fbed4e11bdc759823032636cc32994eea2b8c91c6adda7cb1f15ef9 SHA512 dfb776103fa98da990cc30939e218b392c7c25c8c645230a71c7e881cf5325c97f855fe46e9bc093c7517883f78457f67eee14012fa5b39790b8dfcfa1ec08c9 diff --git a/dev-perl/PDL/PDL-2.63.0.ebuild b/dev-perl/PDL/PDL-2.63.0.ebuild new file mode 100644 index 000000000000..db1b5e1e4bbf --- /dev/null +++ b/dev-perl/PDL/PDL-2.63.0.ebuild @@ -0,0 +1,137 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DIST_AUTHOR=ETJ +DIST_VERSION=2.063 +DIST_EXAMPLES=( "Example/*" ) + +FORTRAN_NEEDED=fortran + +inherit perl-module fortran-2 + +DESCRIPTION="Perl Data Language for scientific computing" + +LICENSE="|| ( Artistic GPL-1+ ) public-domain PerlDL" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +IUSE="+badval doc fortran gd gsl hdf netpbm pdl2 pgplot threads test" + +RDEPEND=" + sys-libs/ncurses:0= + app-arch/sharutils + dev-perl/Astro-FITS-Header + dev-perl/Convert-UU + >=virtual/perl-Data-Dumper-2.121.0 + >=dev-perl/File-Map-0.570.0 + >=virtual/perl-Filter-Simple-0.880.0 + dev-perl/Filter + >=dev-perl/Inline-0.830.0 + >=dev-perl/Inline-C-0.620.0 + >=virtual/perl-Scalar-List-Utils-1.330.0 + virtual/perl-Math-Complex + dev-perl/Module-Compile + >=dev-perl/OpenGL-0.700.0 + >=dev-perl/TermReadKey-2.340.0 + || ( dev-perl/Term-ReadLine-Perl dev-perl/Term-ReadLine-Gnu ) + >=virtual/perl-Data-Dumper-2.121.0 + dev-perl/Pod-Parser + virtual/perl-File-Spec + virtual/perl-File-Temp + virtual/perl-Filter-Simple + virtual/perl-Storable + >=virtual/perl-Text-Balanced-1.890.0 + fortran? ( >=dev-perl/ExtUtils-F77-1.260.0 ) + gd? ( media-libs/gd ) + gsl? ( sci-libs/gsl ) + hdf? ( + sci-libs/hdf + dev-perl/Alien-HDF4 + ) + netpbm? ( + media-libs/netpbm + media-video/ffmpeg + ) + pdl2? ( + >=dev-perl/Devel-REPL-1.3.11 + || ( dev-perl/Term-ReadLine-Perl dev-perl/Term-ReadLine-Gnu ) + ) + pgplot? ( dev-perl/PGPLOT ) +" + +DEPEND="${RDEPEND} +" + +BDEPEND="${RDEPEND} + >=virtual/perl-Carp-1.200.0 + >=dev-perl/Devel-CheckLib-1.10.0 + >=dev-perl/ExtUtils-Depends-0.402.0 + >=virtual/perl-ExtUtils-MakeMaker-7.120.0 + >=virtual/perl-ExtUtils-ParseXS-3.10.0 + virtual/perl-File-Path + fortran? ( >=dev-perl/ExtUtils-F77-1.130.0 ) + test? ( + dev-perl/Test-Exception + dev-perl/Test-Warn + dev-perl/Test-Deep + ) +" + +mydoc="BUGS DEPENDENCIES DEVELOPMENT Known_problems MANIFEST* Release_Notes" + +PATCHES=( + "${FILESDIR}"/${PN}-2.63.0-fortran.patch # respect user choice for fortran compiler+flags, add pic +) + +pkg_setup() { + perl_set_version + use fortran && fortran-2_pkg_setup +} + +src_prepare() { + perl-module_src_prepare + find . -name Makefile.PL -exec \ + sed -i -e "s|/usr|${EPREFIX}/usr|g" {} \; || die +} + +src_configure() { + sed -i \ + -e '/USE_POGL/s/=>.*/=> 1,/' \ + -e "/WITH_3D/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_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_MINUIT/s/=>.*/=> $(use fortran && echo 1|| echo 0),/" \ + -e "/WITH_PGPLOT/s/=>.*/=> $(use pgplot && echo 1 || echo 0),/" \ + -e "/WITH_POSIX_THREADS/s/=>.*/=> $(use threads && echo 1 || echo 0),/" \ + -e "/WITH_PROJ/s/=>.*/=> $(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 + cp Doc/{scantree,mkhtmldoc}.pl "${D}"/${VENDOR_ARCH}/PDL/Doc || die +} + +pkg_postinst() { + perl "${VENDOR_ARCH}/PDL/Doc/scantree.pl" || die + elog "Building perldl.db done. You can recreate this at any time" + elog "by running:" + elog "perl ${VENDOR_ARCH}/PDL/Doc/scantree.pl" +} + +pkg_prerm() { + rm -rf "${EROOT}"/var/lib/pdl/html + rm -f "${EROOT}"/var/lib/pdl/{pdldoc.db,Index.pod} +} diff --git a/dev-perl/PDL/files/PDL-2.63.0-fortran.patch b/dev-perl/PDL/files/PDL-2.63.0-fortran.patch new file mode 100644 index 000000000000..ba15b85a7405 --- /dev/null +++ b/dev-perl/PDL/files/PDL-2.63.0-fortran.patch @@ -0,0 +1,24 @@ +diff -ruN PDL-2.063.orig/Libtmp/Minuit/Makefile.PL PDL-2.063/Libtmp/Minuit/Makefile.PL +--- PDL-2.063.orig/Libtmp/Minuit/Makefile.PL 2021-11-03 15:17:59.000000000 +0100 ++++ PDL-2.063/Libtmp/Minuit/Makefile.PL 2021-11-25 02:20:46.996821657 +0100 +@@ -128,7 +128,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})){ +diff -ruN PDL-2.063.orig/Libtmp/Slatec/Makefile.PL PDL-2.063/Libtmp/Slatec/Makefile.PL +--- PDL-2.063.orig/Libtmp/Slatec/Makefile.PL 2021-11-03 15:17:59.000000000 +0100 ++++ PDL-2.063/Libtmp/Slatec/Makefile.PL 2021-11-25 02:22:27.338152451 +0100 +@@ -88,7 +88,7 @@ + $orig .join "\n",map " + + $_\$(OBJ_EXT): $_.f +- $mycompiler -c $hack_64bit -o $_\$(OBJ_EXT) $mycflags $_.f ++ \$(FC) \$(FFLAGS) -c -fPIC -o $_\$(OBJ_EXT) $mycflags $_.f + ", @slatecfiles; + }; + |