blob: b15fe1237e199f18e925705852b81714f25b1329 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-perl/PDL/PDL-2.4.0-r1.ebuild,v 1.9 2004/06/25 00:53:37 agriffis Exp $
IUSE="opengl"
inherit perl-module
DESCRIPTION="PDL Perl Module"
SRC_URI="http://cpan.valueclick.com/modules/by-module/PDL/${P}.tar.gz"
HOMEPAGE="http://cpan.valueclick.com/modules/by-module/PDL/${P}.readme"
SLOT="0"
LICENSE="Artistic as-is"
KEYWORDS="x86 amd64 ~ppc sparc alpha hppa mips"
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 )
>=sys-apps/sed-4"
mydoc="DEPENDENCIES DEVELOPMENT MANIFEST* COPYING Release_Notes TODO"
src_unpack() {
unpack ${A}
#open gl does not work at the moment
if use opengl
then
echo "OpenGL support is current disabled due to build issues"
sed -e "s:WITH_3D => undef:WITH_3D => 0:" \
${FILESDIR}/perldl.conf > ${S}/perldl.conf
else
sed -e "s:WITH_3D => undef:WITH_3D => 0:" \
${FILESDIR}/perldl.conf > ${S}/perldl.conf
fi
if use hppa || use amd64; then
cd ${S}/Lib/Slatec
sed -i -e "s/mycompiler -c -o/mycompiler -fPIC -c -o/" Makefile.PL
fi
}
src_install () {
perl-module_src_install
dodir /usr/share/doc/${PF}/html
eval `perl '-V:version'`
PERLVERSION=${version}
mv ${D}/usr/lib/perl5/site_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
dosed /usr/lib/perl5/site_perl/${PERLVERSION}/${CHOST%%-*}-linux/PDL/pdldoc.db
}
|