Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-mathematics/pari: pari-2.3.4-r1.ebuild ChangeLog pari-2.3.5.ebuild pari-2.1.6.ebuild pari-2.1.7-r1.ebuild
Date: Tue, 04 May 2010 21:56:14
Message-Id: 20100504215610.0924229643@corvid.gentoo.org
1 bicatali 10/05/04 21:56:09
2
3 Modified: pari-2.3.4-r1.ebuild ChangeLog
4 Added: pari-2.3.5.ebuild
5 Removed: pari-2.1.6.ebuild pari-2.1.7-r1.ebuild
6 Log:
7 Version bump. Added -fno-strict-aliasing to compiler flags, per bug #316139. Change use flag static to static-libs
8 (Portage version: 2.2_rc67/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.10 sci-mathematics/pari/pari-2.3.4-r1.ebuild
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/pari/pari-2.3.4-r1.ebuild?rev=1.10&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/pari/pari-2.3.4-r1.ebuild?rev=1.10&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/pari/pari-2.3.4-r1.ebuild?r1=1.9&r2=1.10
16
17 Index: pari-2.3.4-r1.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/pari/pari-2.3.4-r1.ebuild,v
20 retrieving revision 1.9
21 retrieving revision 1.10
22 diff -u -r1.9 -r1.10
23 --- pari-2.3.4-r1.ebuild 11 Jan 2010 22:38:57 -0000 1.9
24 +++ pari-2.3.4-r1.ebuild 4 May 2010 21:56:09 -0000 1.10
25 @@ -1,6 +1,6 @@
26 # Copyright 1999-2010 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pari/pari-2.3.4-r1.ebuild,v 1.9 2010/01/11 22:38:57 jer Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pari/pari-2.3.4-r1.ebuild,v 1.10 2010/05/04 21:56:09 bicatali Exp $
30
31 EAPI=2
32 inherit elisp-common eutils flag-o-matic toolchain-funcs
33 @@ -18,7 +18,7 @@
34 LICENSE="GPL-2"
35 SLOT="0"
36 KEYWORDS="alpha amd64 hppa ~mips ppc ppc64 ~sparc x86 ~x86-fbsd"
37 -IUSE="doc data emacs fltk gmp static X"
38 +IUSE="doc data emacs fltk gmp static-libs X"
39
40 RDEPEND="sys-libs/readline
41 emacs? ( virtual/emacs )
42 @@ -64,6 +64,7 @@
43 }
44
45 src_configure() {
46 + append-flags -fno-strict-aliasing
47 tc-export CC
48 # need to force optimization here, as it breaks without
49 if is-flag -O0; then
50 @@ -94,9 +95,9 @@
51 emake ${mymake} CFLAGS="${CFLAGS} -DGCC_INLINE -fPIC" lib-dyn \
52 || die "Building shared library failed!"
53
54 - if use static; then
55 + if use static-libs; then
56 emake ${mymake} CFLAGS="${CFLAGS} -DGCC_INLINE" lib-sta \
57 - || die "Building static library failed!"
58 + || die "Building static-libs library failed!"
59 fi
60
61 emake ${mymake} CFLAGS="${CFLAGS} -DGCC_INLINE" gp ../gp \
62 @@ -142,10 +143,10 @@
63 emake DESTDIR="${D}" install-data || die "Failed to install data files"
64 fi
65
66 - if use static; then
67 + if use static-libs; then
68 emake \
69 DESTDIR="${D}" \
70 - install-lib-sta || die "Install of static library failed"
71 + install-lib-sta || die "Install of static-libs library failed"
72 fi
73 }
74
75
76
77
78 1.75 sci-mathematics/pari/ChangeLog
79
80 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/pari/ChangeLog?rev=1.75&view=markup
81 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/pari/ChangeLog?rev=1.75&content-type=text/plain
82 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/pari/ChangeLog?r1=1.74&r2=1.75
83
84 Index: ChangeLog
85 ===================================================================
86 RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/pari/ChangeLog,v
87 retrieving revision 1.74
88 retrieving revision 1.75
89 diff -u -r1.74 -r1.75
90 --- ChangeLog 11 Jan 2010 22:38:57 -0000 1.74
91 +++ ChangeLog 4 May 2010 21:56:09 -0000 1.75
92 @@ -1,6 +1,15 @@
93 # ChangeLog for sci-mathematics/pari
94 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
95 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pari/ChangeLog,v 1.74 2010/01/11 22:38:57 jer Exp $
96 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pari/ChangeLog,v 1.75 2010/05/04 21:56:09 bicatali Exp $
97 +
98 +*pari-2.3.5 (04 May 2010)
99 +
100 + 04 May 2010; Sébastien Fabbro <bicatali@g.o> -pari-2.1.6.ebuild,
101 + -pari-2.1.7-r1.ebuild, pari-2.3.4-r1.ebuild, +pari-2.3.5.ebuild,
102 + -files/docs.patch, -files/pari-non-exec-stack-x86-gentoo.patch,
103 + -files/wrong_functype.patch, -files/wrong_functype-r1.patch:
104 + Version bump. Added -fno-strict-aliasing to compiler flags, per bug
105 + #316139. Change use flag static to static-libs
106
107 11 Jan 2010; Jeroen Roovers <jer@g.o> pari-2.3.4-r1.ebuild:
108 Reintroduce CC so for instance distcc will not say "...gcc is
109
110
111
112 1.1 sci-mathematics/pari/pari-2.3.5.ebuild
113
114 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/pari/pari-2.3.5.ebuild?rev=1.1&view=markup
115 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/pari/pari-2.3.5.ebuild?rev=1.1&content-type=text/plain
116
117 Index: pari-2.3.5.ebuild
118 ===================================================================
119 # Copyright 1999-2010 Gentoo Foundation
120 # Distributed under the terms of the GNU General Public License v2
121 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pari/pari-2.3.5.ebuild,v 1.1 2010/05/04 21:56:09 bicatali Exp $
122
123 EAPI=2
124 inherit elisp-common eutils flag-o-matic toolchain-funcs
125
126 DESCRIPTION="A software package for computer-aided number theory"
127 HOMEPAGE="http://pari.math.u-bordeaux.fr/"
128
129 SRC_COM="http://pari.math.u-bordeaux.fr/pub/${PN}"
130 SRC_URI="${SRC_COM}/unix/${P}.tar.gz
131 data? ( ${SRC_COM}/packages/elldata.tgz
132 ${SRC_COM}/packages/galdata.tgz
133 ${SRC_COM}/packages/seadata.tgz
134 ${SRC_COM}/packages/nftables.tgz )"
135
136 LICENSE="GPL-2"
137 SLOT="0"
138 KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
139 IUSE="doc data emacs fltk gmp static-libs X"
140
141 RDEPEND="sys-libs/readline
142 emacs? ( virtual/emacs )
143 fltk? ( x11-libs/fltk )
144 gmp? ( dev-libs/gmp )
145 X? ( x11-libs/libX11 )
146 doc? ( X? ( x11-misc/xdg-utils ) )"
147 DEPEND="${RDEPEND}
148 doc? ( virtual/latex-base )"
149
150 SITEFILE=50${PN}-gentoo.el
151
152 get_compile_dir() {
153 pushd "${S}/config" >& /dev/null
154 local fastread=yes
155 source ./get_archos
156 popd >& /dev/null
157 echo "O${osname}-${arch}"
158 }
159
160 src_prepare() {
161 # move data into place
162 if use data; then
163 mv "${WORKDIR}"/data "${S}" || die "failed to move data"
164 fi
165 epatch "${FILESDIR}/"${PN}-2.3.2-strip.patch
166 epatch "${FILESDIR}/"${PN}-2.3.2-ppc-powerpc-arch-fix.patch
167
168 # disable default building of docs during install
169 sed -i \
170 -e "s:install-doc install-examples:install-examples:" \
171 config/Makefile.SH || die "Failed to fix makefile"
172 # propagate ldflags
173 sed -i \
174 -e 's/-shared $extra/-shared $extra \\$(LDFLAGS)/' \
175 config/get_dlld || die "Failed to fix LDFLAGS"
176 # move doc dir to a gentoo doc dir and replace hardcoded xdvi by xdg-open
177 sed -i \
178 -e "s:\$d = \$0:\$d = '/usr/share/doc/${PF}':" \
179 -e 's:"xdvi":"xdg-open":' \
180 -e 's:xdvi -paper 29.7x21cm:xdg-open:' \
181 doc/gphelp.in || die "Failed to fix doc dir"
182 }
183
184 src_configure() {
185 append-flags -fno-strict-aliasing
186 tc-export CC
187 # need to force optimization here, as it breaks without
188 if is-flag -O0; then
189 replace-flags -O0 -O2
190 elif ! is-flag -O?; then
191 append-flags -O2
192 fi
193 # sysdatadir installs a pari.cfg stuff which is informative only
194 ./Configure \
195 --prefix=/usr \
196 --datadir=/usr/share/${PN} \
197 --libdir=/usr/$(get_libdir) \
198 --sysdatadir=/usr/share/doc/${PF} \
199 --mandir=/usr/share/man/man1 \
200 --with-readline \
201 $(use_with gmp) \
202 || die "./Configure failed"
203 }
204
205 src_compile() {
206 if use hppa; then
207 mymake=DLLD\=/usr/bin/gcc\ DLLDFLAGS\=-shared\ -Wl,-soname=\$\(LIBPARI_SONAME\)\ -lm
208 fi
209
210 local installdir=$(get_compile_dir)
211 cd "${installdir}" || die "Bad directory"
212
213 emake ${mymake} CFLAGS="${CFLAGS} -DGCC_INLINE -fPIC" lib-dyn \
214 || die "Building shared library failed!"
215
216 if use static-libs; then
217 emake ${mymake} CFLAGS="${CFLAGS} -DGCC_INLINE" lib-sta \
218 || die "Building static library failed!"
219 fi
220
221 emake ${mymake} CFLAGS="${CFLAGS} -DGCC_INLINE" gp ../gp \
222 || die "Building executables failed!"
223
224 if use doc; then
225 cd "${S}"
226 # To prevent sandbox violations by metafont
227 VARTEXFONTS="${T}"/fonts emake docpdf \
228 || die "Failed to generate docs"
229 fi
230 if use emacs; then
231 cd "${S}/emacs"
232 elisp-compile *.el || die "elisp-compile failed"
233 fi
234 }
235
236 src_test() {
237 emake test-kernel || die
238 }
239
240 src_install() {
241 emake DESTDIR="${D}" install || die "Install failed"
242
243 if use emacs; then
244 elisp-install ${PN} emacs/*.el emacs/*.elc \
245 || die "elisp-install failed"
246 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
247 fi
248
249 dodoc AUTHORS Announce.2.1 CHANGES README NEW MACHINES COMPAT
250 if use doc; then
251 emake \
252 DESTDIR="${D}" \
253 EXDIR="${D}/usr/share/doc/${PF}/examples" \
254 DOCDIR="${D}/usr/share/doc/${PF}" \
255 install-doc || die "Failed to install docs"
256 insinto /usr/share/doc/${PF}
257 doins doc/*.pdf || die "Failed to install pdf docs"
258 fi
259
260 if use data; then
261 emake DESTDIR="${D}" install-data || die "Failed to install data files"
262 fi
263
264 if use static-libs; then
265 emake \
266 DESTDIR="${D}" \
267 install-lib-sta || die "Install of static library failed"
268 fi
269 }
270
271 pkg_postinst() {
272 use emacs && elisp-site-regen
273 }
274
275 pkg_postrm() {
276 use emacs && elisp-site-regen
277 }