Gentoo Archives: gentoo-commits

From: "Torsten Veller (tove)" <tove@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-perl/PDL: ChangeLog PDL-2.4.6.ebuild
Date: Fri, 19 Feb 2010 09:08:47
Message-Id: E1NiOqq-0005YE-GB@stork.gentoo.org
1 tove 10/02/19 09:08:44
2
3 Modified: ChangeLog
4 Added: PDL-2.4.6.ebuild
5 Log:
6 Version bump. Remove non-functional opengl useflag. Disable HDF and 3D modules
7 (Portage version: 2.2_rc62/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.90 dev-perl/PDL/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-perl/PDL/ChangeLog?rev=1.90&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-perl/PDL/ChangeLog?rev=1.90&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-perl/PDL/ChangeLog?r1=1.89&r2=1.90
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-perl/PDL/ChangeLog,v
19 retrieving revision 1.89
20 retrieving revision 1.90
21 diff -u -r1.89 -r1.90
22 --- ChangeLog 1 Feb 2010 17:38:27 -0000 1.89
23 +++ ChangeLog 19 Feb 2010 09:08:43 -0000 1.90
24 @@ -1,6 +1,12 @@
25 # ChangeLog for dev-perl/PDL
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-perl/PDL/ChangeLog,v 1.89 2010/02/01 17:38:27 ssuominen Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/PDL/ChangeLog,v 1.90 2010/02/19 09:08:43 tove Exp $
29 +
30 +*PDL-2.4.6 (19 Feb 2010)
31 +
32 + 19 Feb 2010; Torsten Veller <tove@g.o> +PDL-2.4.6.ebuild:
33 + Version bump. Remove non-functional opengl useflag. Disable HDF and 3D
34 + modules. Run tests
35
36 01 Feb 2010; Samuli Suominen <ssuominen@g.o> PDL-2.4.5.ebuild:
37 Missing virtual/perl-PodParser depend for podselect command.
38
39
40
41 1.1 dev-perl/PDL/PDL-2.4.6.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-perl/PDL/PDL-2.4.6.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-perl/PDL/PDL-2.4.6.ebuild?rev=1.1&content-type=text/plain
45
46 Index: PDL-2.4.6.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-perl/PDL/PDL-2.4.6.ebuild,v 1.1 2010/02/19 09:08:43 tove Exp $
51
52 EAPI=2
53
54 MODULE_AUTHOR=CHM
55 inherit perl-module eutils multilib
56
57 DESCRIPTION="PDL Perl Module"
58
59 LICENSE="Artistic as-is"
60 SLOT="0"
61 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~s390 ~sh ~sparc ~x86"
62 IUSE="badval fftw gsl"
63
64 DEPEND=">=sys-libs/ncurses-5.2
65 virtual/perl-Filter
66 virtual/perl-File-Spec
67 virtual/perl-PodParser
68 dev-perl/Inline
69 dev-perl/Astro-FITS-Header
70 >=dev-perl/ExtUtils-F77-1.13
71 virtual/perl-Text-Balanced
72 dev-perl/Term-ReadLine-Perl
73 gsl? ( sci-libs/gsl )
74 fftw? ( sci-libs/fftw:2.1 )"
75 #opengl? ( virtual/opengl virtual/glu )
76
77 mydoc="DEPENDENCIES DEVELOPMENT MANIFEST* Release_Notes TODO"
78
79 SRC_TEST="do"
80
81 src_prepare() {
82 epatch "${FILESDIR}/PDL-2.4.2-makemakerfix.patch"
83
84 # Unconditional -fPIC for the lib (#55238, #180807, #250335)
85 epatch "${FILESDIR}/${PN}-2.4.4-PIC.patch"
86
87 # TODO: everything in this function below this
88 # TODO: line really belongs in src_compile() :
89
90 # This 'fix' breaks compiles for non-opengl users
91 #if ! use opengl ; then
92 # sed -e "s:WITH_3D => undef:WITH_3D => 0:" \
93 # ${FILESDIR}/perldl.conf > ${S}/perldl.conf
94 #fi
95 sed -i \
96 -e "s:WITH_HDF => undef:WITH_HDF => 0:" \
97 -e "s:USE_POGL => undef:USE_POGL => 0:" \
98 -e "s:WITH_3D => undef:WITH_3D => 0:" "${S}/perldl.conf" || die
99
100 if use badval ; then
101 sed -i -e "s:WITH_BADVAL => 0:WITH_BADVAL => 1:" "${S}/perldl.conf" || die
102 fi
103
104 # Turn off GSL automagic:
105 if use gsl ; then
106 sed -i -e "s:WITH_GSL => undef:WITH_GSL => 1:" "${S}/perldl.conf" || die
107 else
108 sed -i -e "s:WITH_GSL => undef:WITH_GSL => 0:" "${S}/perldl.conf" || die
109 fi
110 # Turn off FFTW automagic too:
111 if use fftw ; then
112 sed -i -e "s:WITH_FFTW => undef:WITH_FFTW => 1:" "${S}/perldl.conf" || die
113 else
114 sed -i -e "s:WITH_FFTW => undef:WITH_FFTW => 0:" "${S}/perldl.conf" || die
115 fi
116 }
117
118 src_install() {
119 perl-module_src_install
120
121 cp "${S}"/Doc/{scantree.pl,mkhtmldoc.pl} "${D}"/${VENDOR_ARCH}/PDL/Doc/ || die
122 }
123
124 pkg_postinst() {
125 if [[ ${ROOT} = / ]] ; then
126 perl ${VENDOR_ARCH}/PDL/Doc/scantree.pl
127 elog "Building perldl.db done. You can recreate this at any time"
128 elog "by running"
129 else
130 elog "You must create perldl.db by running"
131 fi
132 elog "perl ${VENDOR_ARCH}/PDL/Doc/scantree.pl"
133 epause 3
134 elog "PDL requires that glx and dri support be enabled in"
135 elog "your X configuration for certain parts of the graphics"
136 elog "engine to work. See your X's documentation for futher"
137 elog "information."
138 }