1 |
bicatali 11/07/28 17:56:00 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: pari-2.5.0-r2.ebuild |
5 |
Removed: pari-2.5.0-r1.ebuild |
6 |
Log: |
7 |
More patch updates by Francois Bissey |
8 |
|
9 |
(Portage version: 2.1.10.7/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.85 sci-mathematics/pari/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/pari/ChangeLog?rev=1.85&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/pari/ChangeLog?rev=1.85&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/pari/ChangeLog?r1=1.84&r2=1.85 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/pari/ChangeLog,v |
21 |
retrieving revision 1.84 |
22 |
retrieving revision 1.85 |
23 |
diff -u -r1.84 -r1.85 |
24 |
--- ChangeLog 27 Jul 2011 19:03:56 -0000 1.84 |
25 |
+++ ChangeLog 28 Jul 2011 17:56:00 -0000 1.85 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for sci-mathematics/pari |
28 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pari/ChangeLog,v 1.84 2011/07/27 19:03:56 bicatali Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pari/ChangeLog,v 1.85 2011/07/28 17:56:00 bicatali Exp $ |
31 |
+ |
32 |
+*pari-2.5.0-r2 (28 Jul 2011) |
33 |
+ |
34 |
+ 28 Jul 2011; Sébastien Fabbro <bicatali@g.o> -pari-2.5.0-r1.ebuild, |
35 |
+ +pari-2.5.0-r2.ebuild, files/pari-2.5.0-doc-make.patch, |
36 |
+ files/pari-2.5.0-macos.patch, files/pari-2.5.0-mp.c.patch: |
37 |
+ More patch updates by Francois Bissey |
38 |
|
39 |
*pari-2.5.0-r1 (27 Jul 2011) |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
1.1 sci-mathematics/pari/pari-2.5.0-r2.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/pari/pari-2.5.0-r2.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/pari/pari-2.5.0-r2.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: pari-2.5.0-r2.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2011 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pari/pari-2.5.0-r2.ebuild,v 1.1 2011/07/28 17:56:00 bicatali Exp $ |
54 |
|
55 |
EAPI="4" |
56 |
|
57 |
inherit eutils flag-o-matic toolchain-funcs |
58 |
|
59 |
DESCRIPTION="A software package for computer-aided number theory" |
60 |
HOMEPAGE="http://pari.math.u-bordeaux.fr/" |
61 |
SRC_URI="http://pari.math.u-bordeaux.fr/pub/${PN}/unix/${P}.tar.gz" |
62 |
|
63 |
LICENSE="GPL-2" |
64 |
SLOT="0" |
65 |
KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris" |
66 |
IUSE="doc data fltk gmp X" |
67 |
|
68 |
RDEPEND="sys-libs/readline |
69 |
fltk? ( x11-libs/fltk:1 ) |
70 |
gmp? ( dev-libs/gmp ) |
71 |
X? ( x11-libs/libX11 ) |
72 |
doc? ( X? ( x11-misc/xdg-utils ) ) |
73 |
data? ( sci-mathematics/pari-data )" |
74 |
DEPEND="${RDEPEND} |
75 |
doc? ( virtual/latex-base )" |
76 |
|
77 |
SITEFILE=50${PN}-gentoo.el |
78 |
|
79 |
get_compile_dir() { |
80 |
pushd "${S}/config" > /dev/null |
81 |
local fastread=yes |
82 |
source ./get_archos |
83 |
popd > /dev/null |
84 |
echo "O${osname}-${arch}" |
85 |
} |
86 |
|
87 |
src_prepare() { |
88 |
epatch "${FILESDIR}/${PN}"-2.3.2-strip.patch |
89 |
epatch "${FILESDIR}/${PN}"-2.3.2-ppc-powerpc-arch-fix.patch |
90 |
# fix parallel make |
91 |
epatch "${FILESDIR}/${PN}"-2.5.0-doc-make.patch |
92 |
# sage error handling patch |
93 |
epatch "${FILESDIR}/${PN}"-2.5.0-mp.c.patch |
94 |
# OS X: add -install_name to the linker option |
95 |
epatch "${FILESDIR}/${PN}"-2.5.0-macos.patch |
96 |
|
97 |
# disable default building of docs during install |
98 |
sed -i \ |
99 |
-e "s:install-doc install-examples:install-examples:" \ |
100 |
config/Makefile.SH || die "Failed to fix makefile" |
101 |
|
102 |
# propagate ldflags |
103 |
sed -i \ |
104 |
-e 's/$shared $extra/$shared $extra \\$(LDFLAGS)/' \ |
105 |
config/get_dlld || die "failed to fix LDFLAGS" |
106 |
# move doc dir to a gentoo doc dir and replace acroread by xdg-open |
107 |
sed -i \ |
108 |
-e "s:\$d = \$0:\$d = '${EPREFIX}/usr/share/doc/${PF}':" \ |
109 |
-e 's:"acroread":"xdg-open":' \ |
110 |
doc/gphelp.in || die "Failed to fix doc dir" |
111 |
|
112 |
sed -i "s:/usr:${EPREFIX}/usr:g" config/get_X11 \ |
113 |
|| die "Failed to fix get_X11" |
114 |
|
115 |
# usersch3.tex is generated |
116 |
rm -f doc/usersch3.tex || die "failed to remove generated file" |
117 |
} |
118 |
|
119 |
src_configure() { |
120 |
tc-export CC |
121 |
|
122 |
# need to force optimization here, as it breaks without |
123 |
if is-flag -O0; then |
124 |
replace-flags -O0 -O2 |
125 |
elif ! is-flag -O?; then |
126 |
append-flags -O2 |
127 |
fi |
128 |
|
129 |
local myconfig |
130 |
if use gmp ; then |
131 |
myconfig="--with-gmp=${EPREFIX}/usr" |
132 |
else |
133 |
myconfig="--with-gmp=no" |
134 |
fi |
135 |
|
136 |
# sysdatadir installs a pari.cfg stuff which is informative only |
137 |
./Configure \ |
138 |
--prefix="${EPREFIX}"/usr \ |
139 |
--datadir="${EPREFIX}"/usr/share/${PN} \ |
140 |
--libdir="${EPREFIX}"/usr/$(get_libdir) \ |
141 |
--sysdatadir="${EPREFIX}"/usr/share/doc/${PF} \ |
142 |
--mandir="${EPREFIX}"/usr/share/man/man1 \ |
143 |
--with-readline="${EPREFIX}"/usr \ |
144 |
--with-ncurses-lib="${EPREFIX}"/usr/$(get_libdir) \ |
145 |
$myconfig \ |
146 |
|| die "./Configure failed" |
147 |
} |
148 |
|
149 |
src_compile() { |
150 |
if use hppa; then |
151 |
mymake=DLLD\="${EPREFIX}"/usr/bin/gcc\ DLLDFLAGS\=-shared\ -Wl,-soname=\$\(LIBPARI_SONAME\)\ -lm |
152 |
fi |
153 |
|
154 |
local installdir=$(get_compile_dir) |
155 |
cd "${installdir}" || die "failed to change directory" |
156 |
|
157 |
# upstream set -fno-strict-aliasing. |
158 |
# aliasing is a known issue on amd64, work on x86 by sheer luck |
159 |
emake ${mymake} \ |
160 |
CFLAGS="${CFLAGS} -fno-strict-aliasing -DGCC_INLINE -fPIC" lib-dyn |
161 |
emake ${mymake} \ |
162 |
CFLAGS="${CFLAGS} -DGCC_INLINE" gp ../gp |
163 |
|
164 |
if use doc; then |
165 |
cd "${S}" || die "failed to change directory" |
166 |
# To prevent sandbox violations by metafont |
167 |
VARTEXFONTS="${T}"/fonts emake docpdf |
168 |
fi |
169 |
} |
170 |
|
171 |
src_test() { |
172 |
emake dobench |
173 |
} |
174 |
|
175 |
src_install() { |
176 |
default |
177 |
dodoc MACHINES COMPAT |
178 |
if use doc; then |
179 |
# install gphelp and the pdf documentations manually. |
180 |
# the install-doc target is overkill. |
181 |
dodoc doc/*.pdf |
182 |
dobin doc/gphelp |
183 |
insinto /usr/share/doc/${PF} |
184 |
# gphelp looks for some of the tex sources... |
185 |
doins doc/*.tex doc/translations |
186 |
# Install the examples - for real. |
187 |
local installdir=$(get_compile_dir) |
188 |
cd "${installdir}" || die "failed to change directory" |
189 |
emake EXDIR="${ED}/usr/share/doc/${PF}/examples" install-examples |
190 |
fi |
191 |
} |