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