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: ChangeLog pari-2.5.0.ebuild
Date: Tue, 26 Jul 2011 19:30:50
Message-Id: 20110726193038.A4C442004B@flycatcher.gentoo.org
1 bicatali 11/07/26 19:30:38
2
3 Modified: ChangeLog
4 Added: pari-2.5.0.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.1.10.7/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.83 sci-mathematics/pari/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/pari/ChangeLog?rev=1.83&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/pari/ChangeLog?rev=1.83&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/pari/ChangeLog?r1=1.82&r2=1.83
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/pari/ChangeLog,v
20 retrieving revision 1.82
21 retrieving revision 1.83
22 diff -u -r1.82 -r1.83
23 --- ChangeLog 24 Apr 2011 15:49:42 -0000 1.82
24 +++ ChangeLog 26 Jul 2011 19:30:38 -0000 1.83
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sci-mathematics/pari
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pari/ChangeLog,v 1.82 2011/04/24 15:49:42 grobian Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pari/ChangeLog,v 1.83 2011/07/26 19:30:38 bicatali Exp $
30 +
31 +*pari-2.5.0 (26 Jul 2011)
32 +
33 + 26 Jul 2011; Sébastien Fabbro <bicatali@g.o> +pari-2.5.0.ebuild:
34 + Version bump
35
36 24 Apr 2011; Fabian Groffen <grobian@g.o> pari-2.3.5.ebuild:
37 Marked ~x86-solaris, bug #296509
38
39
40
41 1.1 sci-mathematics/pari/pari-2.5.0.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/pari/pari-2.5.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/pari/pari-2.5.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: pari-2.5.0.ebuild
47 ===================================================================
48 # Copyright 1999-2011 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pari/pari-2.5.0.ebuild,v 1.1 2011/07/26 19:30:38 bicatali Exp $
51
52 EAPI=4
53 inherit eutils flag-o-matic toolchain-funcs
54
55 DESCRIPTION="A software package for computer-aided number theory"
56 HOMEPAGE="http://pari.math.u-bordeaux.fr/"
57
58 SRC_COM="http://pari.math.u-bordeaux.fr/pub/${PN}"
59 SRC_URI="${SRC_COM}/unix/${P}.tar.gz
60 data? ( ${SRC_COM}/packages/elldata.tgz
61 ${SRC_COM}/packages/galdata.tgz
62 ${SRC_COM}/packages/galpol.tgz
63 ${SRC_COM}/packages/seadata.tgz
64 ${SRC_COM}/packages/nftables.tgz )"
65
66 LICENSE="GPL-2"
67 SLOT="0"
68 KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-solaris"
69 IUSE="doc data fltk gmp static-libs X"
70
71 RDEPEND="sys-libs/readline
72 fltk? ( x11-libs/fltk:1 )
73 gmp? ( dev-libs/gmp )
74 X? ( x11-libs/libX11 )
75 doc? ( X? ( x11-misc/xdg-utils ) )"
76 DEPEND="${RDEPEND}
77 doc? ( virtual/latex-base )"
78
79 SITEFILE=50${PN}-gentoo.el
80
81 get_compile_dir() {
82 pushd "${S}/config" >& /dev/null
83 local fastread=yes
84 source ./get_archos
85 popd >& /dev/null
86 echo "O${osname}-${arch}"
87 }
88
89 src_prepare() {
90 # move data into place
91 if use data; then
92 mv "${WORKDIR}"/data "${S}" || die "failed to move data"
93 fi
94 epatch "${FILESDIR}/"${PN}-2.3.2-strip.patch
95 epatch "${FILESDIR}/"${PN}-2.3.2-ppc-powerpc-arch-fix.patch
96 epatch "${FILESDIR}/"${PN}-2.3.5-doc-make.patch
97
98 # disable default building of docs during install
99 sed -i \
100 -e "s:install-doc install-examples:install-examples:" \
101 config/Makefile.SH || die "Failed to fix makefile"
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 hardcoded xdvi by xdg-open
107 sed -i \
108 -e "s:\$d = \$0:\$d = '${EPREFIX}/usr/share/doc/${PF}':" \
109 -e 's:"xdvi":"xdg-open":' \
110 -e 's:xdvi -paper 29.7x21cm:xdg-open:' \
111 doc/gphelp.in || die "Failed to fix doc dir"
112 }
113
114 src_configure() {
115 append-flags -fno-strict-aliasing
116 tc-export CC
117 # need to force optimization here, as it breaks without
118 if is-flag -O0; then
119 replace-flags -O0 -O2
120 elif ! is-flag -O?; then
121 append-flags -O2
122 fi
123 # sysdatadir installs a pari.cfg stuff which is informative only
124 ./Configure \
125 --prefix="${EPREFIX}"/usr \
126 --datadir="${EPREFIX}"/usr/share/${PN} \
127 --libdir="${EPREFIX}"/usr/$(get_libdir) \
128 --sysdatadir="${EPREFIX}"/usr/share/doc/${PF} \
129 --mandir="${EPREFIX}"/usr/share/man/man1 \
130 --with-readline \
131 $(use_with gmp) \
132 || die "./Configure failed"
133 }
134
135 src_compile() {
136 if use hppa; then
137 mymake=DLLD\=/usr/bin/gcc\ DLLDFLAGS\=-shared\ -Wl,-soname=\$\(LIBPARI_SONAME\)\ -lm
138 fi
139
140 local installdir=$(get_compile_dir)
141 cd "${installdir}" || die "Bad directory"
142
143 emake ${mymake} CFLAGS="${CFLAGS} -DGCC_INLINE -fPIC" lib-dyn
144
145 use static-libs && \
146 emake ${mymake} CFLAGS="${CFLAGS} -DGCC_INLINE" lib-sta
147
148 emake ${mymake} CFLAGS="${CFLAGS} -DGCC_INLINE" gp ../gp
149
150 if use doc; then
151 cd "${S}"
152 # To prevent sandbox violations by metafont
153 VARTEXFONTS="${T}"/fonts emake -j1 docpdf
154 fi
155 }
156
157 src_test() {
158 emake dobench
159 }
160
161 src_install() {
162 default
163 dodoc MACHINES COMPAT
164 if use doc; then
165 emake -j1 \
166 DESTDIR="${D}" \
167 EXDIR="${ED}/usr/share/doc/${PF}/examples" \
168 DOCDIR="${ED}/usr/share/doc/${PF}" \
169 install-doc
170 insinto /usr/share/doc/${PF}
171 doins doc/*.pdf
172 fi
173
174 use data && \
175 emake DESTDIR="${D}" install-data
176
177 use static-libs && \
178 emake DESTDIR="${D}" install-lib-sta
179 }