1 |
bicatali 09/04/06 21:40:16 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: pari-2.3.4-r1.ebuild |
5 |
Removed: pari-2.3.3.ebuild |
6 |
Log: |
7 |
Added more data which can be merged with a data flag. Fixed doc help (bug #264579) and display doc with default dvi viewer launched by xdg-open |
8 |
(Portage version: 2.2_rc28/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.4 sci-mathematics/pari/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/pari/metadata.xml?rev=1.4&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/pari/metadata.xml?rev=1.4&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/pari/metadata.xml?r1=1.3&r2=1.4 |
16 |
|
17 |
Index: metadata.xml |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/pari/metadata.xml,v |
20 |
retrieving revision 1.3 |
21 |
retrieving revision 1.4 |
22 |
diff -u -r1.3 -r1.4 |
23 |
--- metadata.xml 6 Aug 2008 20:46:13 -0000 1.3 |
24 |
+++ metadata.xml 6 Apr 2009 21:40:16 -0000 1.4 |
25 |
@@ -2,9 +2,27 @@ |
26 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
27 |
<pkgmetadata> |
28 |
<herd>sci-mathematics</herd> |
29 |
+<longdescription lang="en"> |
30 |
+ PARI is a widely used computer algebra system designed for fast |
31 |
+ computations in number theory (factorizations, algebraic number |
32 |
+ theory, elliptic curves...), but also contains a large number of other |
33 |
+ useful functions to compute with mathematical entities such as |
34 |
+ matrices, polynomials, power series, algebraic numbers, etc., and a |
35 |
+ lot of transcendental functions. |
36 |
+ The extra data is avaialable through use flag: |
37 |
+ * elldata is PARI/GP version of J. E. Cremona Elliptic Curve Data, |
38 |
+ needed by ellsearch and ellidentify. |
39 |
+ * galdata is needed by polgalois to compute Galois group in degrees |
40 |
+ 8 through 11. |
41 |
+ * seadata is needed by ellap for large primes. |
42 |
+ * nftables is a repackaging of the historical megrez number field |
43 |
+tables (errors fixed, 1/10th the size, easier to use). |
44 |
+ |
45 |
+</longdescription> |
46 |
<use> |
47 |
<flag name='elliptic'>Add additional elliptic curve data</flag> |
48 |
<flag name='galois'>Add additional data to compute Galois groups of degree |
49 |
8 to 11</flag> |
50 |
+ <flag name='data'>Add additional data (elldata, galdata, seadata, nftables)</flag> |
51 |
</use> |
52 |
</pkgmetadata> |
53 |
|
54 |
|
55 |
|
56 |
1.67 sci-mathematics/pari/ChangeLog |
57 |
|
58 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/pari/ChangeLog?rev=1.67&view=markup |
59 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/pari/ChangeLog?rev=1.67&content-type=text/plain |
60 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/pari/ChangeLog?r1=1.66&r2=1.67 |
61 |
|
62 |
Index: ChangeLog |
63 |
=================================================================== |
64 |
RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/pari/ChangeLog,v |
65 |
retrieving revision 1.66 |
66 |
retrieving revision 1.67 |
67 |
diff -u -r1.66 -r1.67 |
68 |
--- ChangeLog 15 Jan 2009 17:19:08 -0000 1.66 |
69 |
+++ ChangeLog 6 Apr 2009 21:40:16 -0000 1.67 |
70 |
@@ -1,6 +1,13 @@ |
71 |
# ChangeLog for sci-mathematics/pari |
72 |
# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2 |
73 |
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pari/ChangeLog,v 1.66 2009/01/15 17:19:08 bicatali Exp $ |
74 |
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pari/ChangeLog,v 1.67 2009/04/06 21:40:16 bicatali Exp $ |
75 |
+ |
76 |
+*pari-2.3.4-r1 (06 Apr 2009) |
77 |
+ |
78 |
+ 06 Apr 2009; Sébastien Fabbro <bicatali@g.o> metadata.xml, |
79 |
+ -pari-2.3.3.ebuild, +pari-2.3.4-r1.ebuild: |
80 |
+ Added more data which can be merged with a data flag. Fixed doc help (bug |
81 |
+ #264579) and display doc with default dvi viewer launched by xdg-open |
82 |
|
83 |
*pari-2.3.4 (15 Jan 2009) |
84 |
|
85 |
|
86 |
|
87 |
|
88 |
1.1 sci-mathematics/pari/pari-2.3.4-r1.ebuild |
89 |
|
90 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/pari/pari-2.3.4-r1.ebuild?rev=1.1&view=markup |
91 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/pari/pari-2.3.4-r1.ebuild?rev=1.1&content-type=text/plain |
92 |
|
93 |
Index: pari-2.3.4-r1.ebuild |
94 |
=================================================================== |
95 |
# Copyright 1999-2009 Gentoo Foundation |
96 |
# Distributed under the terms of the GNU General Public License v2 |
97 |
# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pari/pari-2.3.4-r1.ebuild,v 1.1 2009/04/06 21:40:16 bicatali Exp $ |
98 |
|
99 |
EAPI=2 |
100 |
inherit elisp-common eutils flag-o-matic |
101 |
|
102 |
DESCRIPTION="A software package for computer-aided number theory" |
103 |
HOMEPAGE="http://pari.math.u-bordeaux.fr/" |
104 |
|
105 |
SRC_COM="http://pari.math.u-bordeaux.fr/pub/${PN}" |
106 |
SRC_URI="${SRC_COM}/unix/${P}.tar.gz |
107 |
data? ( ${SRC_COM}/packages/elldata.tgz |
108 |
${SRC_COM}/packages/galdata.tgz |
109 |
${SRC_COM}/packages/seadata.tgz |
110 |
${SRC_COM}/packages/nftables.tgz )" |
111 |
|
112 |
LICENSE="GPL-2" |
113 |
SLOT="0" |
114 |
KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
115 |
IUSE="doc data emacs gmp static X" |
116 |
|
117 |
RDEPEND="sys-libs/readline |
118 |
emacs? ( virtual/emacs ) |
119 |
fltk? ( x11-libs/fltk ) |
120 |
gmp? ( dev-libs/gmp ) |
121 |
qt3? ( x11-libs/qt:3 ) |
122 |
X? ( x11-libs/libX11 ) |
123 |
doc? ( X? ( x11-misc/xdg-utils ) )" |
124 |
DEPEND="${RDEPEND} |
125 |
doc? ( virtual/latex-base )" |
126 |
|
127 |
SITEFILE=50${PN}-gentoo.el |
128 |
|
129 |
get_compile_dir() { |
130 |
pushd "${S}/config" >& /dev/null |
131 |
local fastread=yes |
132 |
source ./get_archos |
133 |
popd >& /dev/null |
134 |
echo "O${osname}-${arch}" |
135 |
} |
136 |
|
137 |
src_prepare() { |
138 |
# move data into place |
139 |
if use data; then |
140 |
mv "${WORKDIR}"/data "${S}" || die "failed to move data" |
141 |
fi |
142 |
epatch "${FILESDIR}/"${PN}-2.3.2-strip.patch |
143 |
epatch "${FILESDIR}/"${PN}-2.3.2-ppc-powerpc-arch-fix.patch |
144 |
|
145 |
# disable default building of docs during install |
146 |
sed -i \ |
147 |
-e "s:install-doc install-examples:install-examples:" \ |
148 |
config/Makefile.SH || die "Failed to fix makefile" |
149 |
# propagate ldflags |
150 |
sed -i \ |
151 |
-e 's/-shared $extra/-shared $extra \\$(LDFLAGS)/' \ |
152 |
config/get_dlld || die "Failed to fix LDFLAGS" |
153 |
# move doc dir to a gentoo doc dir and replace hardcoded xdvi by xdg-open |
154 |
sed -i \ |
155 |
-e "s:\$d = \$0:\$d = '/usr/share/doc/${PF}':" \ |
156 |
-e 's:"xdvi":"xdg-open":' \ |
157 |
-e 's:xdvi -paper 29.7x21cm:xdg-open:' \ |
158 |
doc/gphelp.in || die "Failed to fix doc dir" |
159 |
} |
160 |
|
161 |
src_configure() { |
162 |
# need to force optimization here, as it breaks without |
163 |
if is-flag -O0; then |
164 |
replace-flags -O0 -O2 |
165 |
elif ! is-flag -O?; then |
166 |
append-flags -O2 |
167 |
fi |
168 |
# sysdatadir installs a pari.cfg stuff which is informative only |
169 |
./Configure \ |
170 |
--prefix=/usr \ |
171 |
--datadir=/usr/share/${PN} \ |
172 |
--libdir=/usr/$(get_libdir) \ |
173 |
--sysdatadir=/usr/share/doc/${PF} \ |
174 |
--mandir=/usr/share/man/man1 \ |
175 |
--with-readline \ |
176 |
$(use_with gmp) \ |
177 |
|| die "./Configure failed" |
178 |
} |
179 |
|
180 |
src_compile() { |
181 |
if use hppa; then |
182 |
mymake=DLLD\=/usr/bin/gcc\ DLLDFLAGS\=-shared\ -Wl,-soname=\$\(LIBPARI_SONAME\)\ -lm |
183 |
fi |
184 |
|
185 |
local installdir=$(get_compile_dir) |
186 |
cd "${installdir}" || die "Bad directory" |
187 |
|
188 |
emake ${mymake} CFLAGS="${CFLAGS} -DGCC_INLINE -fPIC" lib-dyn \ |
189 |
|| die "Building shared library failed!" |
190 |
|
191 |
if use static; then |
192 |
emake ${mymake} CFLAGS="${CFLAGS} -DGCC_INLINE" lib-sta \ |
193 |
|| die "Building static library failed!" |
194 |
fi |
195 |
|
196 |
emake ${mymake} CFLAGS="${CFLAGS} -DGCC_INLINE" gp ../gp \ |
197 |
|| die "Building executables failed!" |
198 |
|
199 |
if use doc; then |
200 |
cd "${S}" |
201 |
# To prevent sandbox violations by metafont |
202 |
VARTEXFONTS="${T}"/fonts emake docpdf \ |
203 |
|| die "Failed to generate docs" |
204 |
fi |
205 |
if use emacs; then |
206 |
cd "${S}/emacs" |
207 |
elisp-compile *.el || die "elisp-compile failed" |
208 |
fi |
209 |
} |
210 |
|
211 |
src_test() { |
212 |
emake test-kernel || die |
213 |
} |
214 |
|
215 |
src_install() { |
216 |
emake DESTDIR="${D}" install || die "Install failed" |
217 |
|
218 |
if use emacs; then |
219 |
elisp-install ${PN} emacs/*.el emacs/*.elc \ |
220 |
|| die "elisp-install failed" |
221 |
elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
222 |
fi |
223 |
|
224 |
dodoc AUTHORS Announce.2.1 CHANGES README NEW MACHINES COMPAT |
225 |
if use doc; then |
226 |
emake \ |
227 |
DESTDIR="${D}" \ |
228 |
EXDIR="${D}/usr/share/doc/${PF}/examples" \ |
229 |
DOCDIR="${D}/usr/share/doc/${PF}" \ |
230 |
install-doc || die "Failed to install docs" |
231 |
insinto /usr/share/doc/${PF} |
232 |
doins doc/*.pdf || die "Failed to install pdf docs" |
233 |
fi |
234 |
|
235 |
if use data; then |
236 |
emake DESTDIR="${D}" install-data || die "Failed to install data files" |
237 |
fi |
238 |
|
239 |
if use static; then |
240 |
emake \ |
241 |
DESTDIR="${D}" \ |
242 |
install-lib-sta || die "Install of static library failed" |
243 |
fi |
244 |
} |
245 |
|
246 |
pkg_postinst() { |
247 |
use emacs && elisp-site-regen |
248 |
} |
249 |
|
250 |
pkg_postrm() { |
251 |
use emacs && elisp-site-regen |
252 |
} |