From 01ddf3993c5e2f7683fcdf555d4b0f89397c9b3e Mon Sep 17 00:00:00 2001 From: "Andreas K. Hüttel" Date: Sat, 17 Jul 2021 21:16:52 +0200 Subject: dev-perl/PDL: EAPI=8, virtual/perl-Pod-Parser -> dev-perl/... MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Andreas K. Hüttel --- dev-perl/PDL/PDL-2.17.0-r1.ebuild | 124 ------------------------------------- dev-perl/PDL/PDL-2.17.0-r2.ebuild | 126 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 126 insertions(+), 124 deletions(-) delete mode 100644 dev-perl/PDL/PDL-2.17.0-r1.ebuild create mode 100644 dev-perl/PDL/PDL-2.17.0-r2.ebuild (limited to 'dev-perl/PDL') diff --git a/dev-perl/PDL/PDL-2.17.0-r1.ebuild b/dev-perl/PDL/PDL-2.17.0-r1.ebuild deleted file mode 100644 index 859935cf5bc9..000000000000 --- a/dev-perl/PDL/PDL-2.17.0-r1.ebuild +++ /dev/null @@ -1,124 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -DIST_AUTHOR=CHM -DIST_VERSION=2.017 - -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 arm ppc x86" - -IUSE="+badval doc fortran gd gsl hdf netpbm pdl2 pgplot threads test" -RESTRICT="!test? ( test )" - -RDEPEND="sys-libs/ncurses:0= - app-arch/sharutils - dev-perl/Astro-FITS-Header - dev-perl/File-Map - >=dev-perl/Inline-0.680.0 - >=dev-perl/Inline-C-0.620.0 - dev-perl/Module-Compile - >=dev-perl/OpenGL-0.670.200 - dev-perl/TermReadKey - || ( dev-perl/Term-ReadLine-Perl dev-perl/Term-ReadLine-Gnu ) - >=virtual/perl-Data-Dumper-2.121.0 - virtual/perl-Pod-Parser - virtual/perl-File-Spec - virtual/perl-File-Temp - virtual/perl-Filter-Simple - dev-perl/Filter - virtual/perl-Storable - >=virtual/perl-Text-Balanced-1.890.0 - - gd? ( media-libs/gd ) - gsl? ( sci-libs/gsl ) - hdf? ( sci-libs/hdf ) - 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} - >=virtual/perl-ExtUtils-MakeMaker-6.560.0 - dev-perl/Devel-CheckLib - fortran? ( >=dev-perl/ExtUtils-F77-1.13 ) - 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.17.0-makemakerfix.patch - "${FILESDIR}"/${PN}-2.17.0-fortran.patch # respect user choice for fortran compiler+flags, add pic - "${FILESDIR}"/${PN}-2.17.0-shared-hdf.patch # search for shared hdf instead of static - "${FILESDIR}"/${PN}-2.17.0-dot-in-inc.patch # fix broken Perl 5.26 compile due to @INC changes -) - -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/PDL-2.17.0-r2.ebuild b/dev-perl/PDL/PDL-2.17.0-r2.ebuild new file mode 100644 index 000000000000..2b4ef3f9d7e6 --- /dev/null +++ b/dev-perl/PDL/PDL-2.17.0-r2.ebuild @@ -0,0 +1,126 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DIST_AUTHOR=CHM +DIST_VERSION=2.017 + +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 arm 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/File-Map + >=dev-perl/Inline-0.680.0 + >=dev-perl/Inline-C-0.620.0 + dev-perl/Module-Compile + >=dev-perl/OpenGL-0.670.200 + dev-perl/TermReadKey + || ( 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 + dev-perl/Filter + virtual/perl-Storable + >=virtual/perl-Text-Balanced-1.890.0 + + gd? ( media-libs/gd ) + gsl? ( sci-libs/gsl ) + hdf? ( sci-libs/hdf ) + 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-ExtUtils-MakeMaker-6.560.0 + dev-perl/Devel-CheckLib + fortran? ( >=dev-perl/ExtUtils-F77-1.13 ) + 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.17.0-makemakerfix.patch + "${FILESDIR}"/${PN}-2.17.0-fortran.patch # respect user choice for fortran compiler+flags, add pic + "${FILESDIR}"/${PN}-2.17.0-shared-hdf.patch # search for shared hdf instead of static + "${FILESDIR}"/${PN}-2.17.0-dot-in-inc.patch # fix broken Perl 5.26 compile due to @INC changes +) + +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} +} -- cgit v1.2.3-65-gdbad