+++ /dev/null
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-MODULE_AUTHOR=CHM
-FORTRAN_NEEDED=fortran
-
-inherit perl-module eutils fortran-2
-
-DESCRIPTION="Perl Data Language for scientific computing"
-
-LICENSE="|| ( Artistic GPL-1+ ) public-domain PerlDL"
-SLOT="0"
-KEYWORDS="amd64 arm x86 ~amd64-linux ~x86-linux"
-# proj support removed #497328
-IUSE="+badval doc fftw fortran gd gsl hdf netpbm pdl2 pgplot plplot threads"
-
-RDEPEND="sys-libs/ncurses
- app-arch/sharutils
- dev-perl/Astro-FITS-Header
- dev-perl/File-Map
- dev-perl/Inline
- dev-perl/OpenGL
- dev-perl/TermReadKey
- || ( dev-perl/Term-ReadLine-Perl dev-perl/Term-ReadLine-Gnu )
- virtual/perl-Data-Dumper
- virtual/perl-Pod-Parser
- virtual/perl-File-Spec
- virtual/perl-File-Temp
- dev-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 )
- pgplot? ( dev-perl/PGPLOT )
- plplot? ( sci-libs/plplot )"
-
-DEPEND="${RDEPEND}
- 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_set_version
- 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 fftw instead of static
- epatch "${FILESDIR}"/${PN}-2.4.11-shared-fftw.patch
- # search for shared hdf instead of static
- epatch "${FILESDIR}"/${PN}-2.4.11-shared-hdf.patch
- find . -name Makefile.PL -exec \
- sed -i -e "s|/usr|${EPREFIX}/usr|g" {} \; || die
-
- if has_version ">=sci-libs/plplot-5.11"; then
- sed \
- -e 's:plplotd:plplot:g' \
- -i Graphics/PLplot/Makefile.PL || die
- fi
-}
-
-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_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_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/=>.*/=> $(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}
-}
+++ /dev/null
---- 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";
-
- }