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.7.1.ebuild ChangeLog
Date: Thu, 29 May 2014 19:53:38
Message-Id: 20140529195332.0018A2004E@flycatcher.gentoo.org
1 bicatali 14/05/29 19:53:31
2
3 Modified: ChangeLog
4 Added: pari-2.7.1.ebuild
5 Log:
6 Version bump
7
8 (Portage version: HEAD/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)
9
10 Revision Changes Path
11 1.106 sci-mathematics/pari/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/pari/ChangeLog?rev=1.106&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/pari/ChangeLog?rev=1.106&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/pari/ChangeLog?r1=1.105&r2=1.106
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/pari/ChangeLog,v
20 retrieving revision 1.105
21 retrieving revision 1.106
22 diff -u -r1.105 -r1.106
23 --- ChangeLog 8 May 2014 21:27:43 -0000 1.105
24 +++ ChangeLog 29 May 2014 19:53:31 -0000 1.106
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sci-mathematics/pari
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pari/ChangeLog,v 1.105 2014/05/08 21:27:43 bicatali Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pari/ChangeLog,v 1.106 2014/05/29 19:53:31 bicatali Exp $
30 +
31 +*pari-2.7.1 (29 May 2014)
32 +
33 + 29 May 2014; Sébastien Fabbro <bicatali@g.o> +pari-2.7.1.ebuild:
34 + Version bump
35
36 08 May 2014; Sébastien Fabbro <bicatali@g.o> +pari-2.7.0.ebuild,
37 +files/pari-2.7.0-doc-make.patch, +files/pari-2.7.0-no-automagic.patch,
38
39
40
41 1.1 sci-mathematics/pari/pari-2.7.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/pari/pari-2.7.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/pari/pari-2.7.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: pari-2.7.1.ebuild
47 ===================================================================
48 # Copyright 1999-2014 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.7.1.ebuild,v 1.1 2014/05/29 19:53:31 bicatali Exp $
51
52 EAPI=5
53
54 inherit eutils flag-o-matic toolchain-funcs multilib
55
56 DESCRIPTION="Computer-aided number theory C library and tools"
57 HOMEPAGE="http://pari.math.u-bordeaux.fr/"
58 SRC_URI="http://pari.math.u-bordeaux.fr/pub/${PN}/unix/${P}.tar.gz"
59
60 LICENSE="GPL-2"
61 SLOT="0/4"
62 KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-fbsd ~x86-linux ~x86-macos ~x86-solaris"
63 IUSE="data doc fltk gmp qt4 X"
64
65 RDEPEND="
66 sys-libs/readline:0=
67 data? ( sci-mathematics/pari-data )
68 doc? ( X? ( x11-misc/xdg-utils ) )
69 fltk? ( x11-libs/fltk:1= )
70 gmp? ( dev-libs/gmp:0= )
71 qt4? ( dev-qt/qtgui:4= )
72 X? ( x11-libs/libX11:0= )"
73 DEPEND="${RDEPEND}
74 doc? ( virtual/latex-base )"
75
76 get_compile_dir() {
77 pushd "${S}/config" > /dev/null
78 local fastread=yes
79 source ./get_archos
80 popd > /dev/null
81 echo "O${osname}-${arch}"
82 }
83
84 src_prepare() {
85 epatch "${FILESDIR}"/${PN}-2.3.2-strip.patch
86 epatch "${FILESDIR}"/${PN}-2.3.2-ppc-powerpc-arch-fix.patch
87 # fix parallel make
88 epatch "${FILESDIR}"/${PN}-2.7.0-doc-make.patch
89 # fix automagic
90 epatch "${FILESDIR}"/${PN}-2.7.0-no-automagic.patch
91 # sage-on-gentoo trac 15654: PARI discriminant speed depends on stack size
92 epatch "${FILESDIR}"/${PN}-2.7.0-slow-discriminant.patch
93
94 # disable default building of docs during install
95 sed -i \
96 -e "s:install-doc install-examples:install-examples:" \
97 config/Makefile.SH || die "Failed to fix makefile"
98
99 # propagate ldflags
100 sed -i \
101 -e 's/$shared $extra/$shared $extra \\$(LDFLAGS)/' \
102 config/get_dlld || die "failed to fix LDFLAGS"
103 # move doc dir to a gentoo doc dir and replace acroread by xdg-open
104 sed -i \
105 -e "s:\$d = \$0:\$d = '${EPREFIX}/usr/share/doc/${PF}':" \
106 -e 's:"acroread":"xdg-open":' \
107 doc/gphelp.in || die "Failed to fix doc dir"
108
109 # usersch3.tex is generated
110 rm doc/usersch3.tex || die "failed to remove generated file"
111 }
112
113 src_configure() {
114 tc-export CC
115 export CPLUSPLUS=$(tc-getCXX)
116
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
124 # sysdatadir installs a pari.cfg stuff which is informative only
125 ./Configure \
126 --prefix="${EPREFIX}"/usr \
127 --datadir="${EPREFIX}"/usr/share/${PN} \
128 --libdir="${EPREFIX}"/usr/$(get_libdir) \
129 --sysdatadir="${EPREFIX}"/usr/share/doc/${PF} \
130 --mandir="${EPREFIX}"/usr/share/man/man1 \
131 --with-readline="${EPREFIX}"/usr \
132 --with-ncurses-lib="${EPREFIX}"/usr/$(get_libdir) \
133 $(use_with fltk) \
134 $(use_with gmp) \
135 $(use_with qt4 qt) \
136 || die "./Configure failed"
137 }
138
139 src_compile() {
140 use hppa && \
141 mymake=DLLD\="${EPREFIX}"/usr/bin/gcc\ DLLDFLAGS\=-shared\ -Wl,-soname=\$\(LIBPARI_SONAME\)\ -lm
142
143 mycxxmake=LD\=$(tc-getCXX)
144
145 local installdir=$(get_compile_dir)
146 cd "${installdir}" || die "failed to change directory"
147 # upstream set -fno-strict-aliasing.
148 # aliasing is a known issue on amd64, work on x86 by sheer luck
149 emake ${mymake} \
150 CFLAGS="${CFLAGS} -fno-strict-aliasing -DGCC_INLINE -fPIC" lib-dyn
151 emake ${mymake} ${mycxxmake} \
152 CFLAGS="${CFLAGS} -DGCC_INLINE" gp ../gp
153
154 if use doc; then
155 cd "${S}" || die "failed to change directory"
156 # To prevent sandbox violations by metafont
157 VARTEXFONTS="${T}"/fonts emake docpdf
158 fi
159 }
160
161 src_test() {
162 emake dobench
163 }
164
165 src_install() {
166 emake ${mymake} ${mycxxmake} DESTDIR="${D}" install
167 dodoc MACHINES COMPAT
168 if use doc; then
169 # install gphelp and the pdf documentations manually.
170 # the install-doc target is overkill.
171 dodoc doc/*.pdf
172 dobin doc/gphelp
173 insinto /usr/share/doc/${PF}
174 # gphelp looks for some of the tex sources...
175 doins doc/*.tex doc/translations
176 # Install the examples - for real.
177 emake EXDIR="${ED}/usr/share/doc/${PF}/examples" \
178 -C $(get_compile_dir) install-examples
179 fi
180 }