diff options
author | Michael Cummings <mcummings@gentoo.org> | 2005-03-07 17:20:36 +0000 |
---|---|---|
committer | Michael Cummings <mcummings@gentoo.org> | 2005-03-07 17:20:36 +0000 |
commit | fcf823d7f54750404f2a16e7a5b3ed304f2db69f (patch) | |
tree | ea73e87d6c6d8001c3c56c9944674e8b4b721093 /dev-perl/PDL/PDL-2.4.2.ebuild | |
parent | Marked ~amd64, keywording KDE split ebuilds, bug 80944. (diff) | |
download | historical-fcf823d7f54750404f2a16e7a5b3ed304f2db69f.tar.gz historical-fcf823d7f54750404f2a16e7a5b3ed304f2db69f.tar.bz2 historical-fcf823d7f54750404f2a16e7a5b3ed304f2db69f.zip |
New version; bug 80733; fixes bad pdlconf.db files
Package-Manager: portage-2.0.51-r13
Diffstat (limited to 'dev-perl/PDL/PDL-2.4.2.ebuild')
-rw-r--r-- | dev-perl/PDL/PDL-2.4.2.ebuild | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/dev-perl/PDL/PDL-2.4.2.ebuild b/dev-perl/PDL/PDL-2.4.2.ebuild new file mode 100644 index 000000000000..c951bf47cd59 --- /dev/null +++ b/dev-perl/PDL/PDL-2.4.2.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/PDL/PDL-2.4.2.ebuild,v 1.1 2005/03/07 17:20:36 mcummings Exp $ + +IUSE="opengl" + +inherit perl-module eutils + +DESCRIPTION="PDL Perl Module" +SRC_URI="mirror://cpan/authors/id/C/CS/CSOE/${P}.tar.gz" +HOMEPAGE="http://search.cpan.org/~csoe/${P}/" +SLOT="0" +LICENSE="Artistic as-is" +KEYWORDS="x86 ~ppc sparc ~alpha ~amd64" + +DEPEND=">=sys-libs/ncurses-5.2 + dev-perl/Filter + || ( dev-perl/File-Spec >=dev-lang/perl-5.8.0-r12 ) + dev-perl/Inline + >=dev-perl/ExtUtils-F77-1.13 + dev-perl/Text-Balanced + opengl? ( virtual/opengl virtual/glu ) + dev-perl/Term-ReadLine-Perl + >=sys-apps/sed-4" + +mydoc="DEPENDENCIES DEVELOPMENT MANIFEST* COPYING Release_Notes TODO" + + +pkg_setup() { + echo "" + einfo "If you want GSL library support in PDL," + einfo "you need to emerge sci-libs/gsl first." + echo "" + epause 2 +} +src_unpack() { + + unpack ${A} + + #open gl does not work at the moment + if use opengl + then + : + else + sed -e "s:WITH_3D => undef:WITH_3D => 0:" \ + ${FILESDIR}/perldl.conf > ${S}/perldl.conf + fi + + # Unconditional -fPIC for the lib (#55238) + sed -i -e "s/mycompiler -c -o/mycompiler -fPIC -c -o/" ${S}/Lib/Slatec/Makefile.PL + +} + +src_install () { + + perl-module_src_install + dodir /usr/share/doc/${PF}/html + eval `perl '-V:version'` + PERLVERSION=${version} + mv ${D}/usr/lib/perl5/vendor_perl/${PERLVERSION}/${CHOST%%-*}-linux/PDL/HtmlDocs/PDL \ + ${D}/usr/share/doc/${PF}/html + + mydir=${D}/usr/share/doc/${PF}/html/PDL + + for i in ${mydir}/* ${mydir}/IO/* ${mydir}/Fit/* ${mydir}/Pod/* ${mydir}/Graphics/* + do + dosed ${i/${D}} + done + cp ${S}/Doc/scantree.pl ${D}/usr/lib/perl5/vendor_perl/${PERLVERSION}/${CHOST%%-*}-linux/PDL/Doc/ + cp ${S}/Doc/mkhtmldoc.pl ${D}/usr/lib/perl5/vendor_perl/${PERLVERSION}/${CHOST%%-*}-linux/PDL/Doc/ + +} + +pkg_postinst() { + einfo "Building perldl.db. You can recreate this at any time" + einfo "by running" + einfo "perl /usr/lib/perl5/vendor_perl/${PERLVERSION}/${CHOST%%-*}-linux/PDL/Doc/scantree.pl" + sleep 3 + perl /usr/lib/perl5/vendor_perl/${PERLVERSION}/${CHOST%%-*}-linux/PDL/Doc/scantree.pl + einfo "PDL requires that glx and dri support be enabled in" + einfo "your X configuration for certain parts of the graphics" + einfo "engine to work. See your X's documentation for futher" + einfo "information." +} |