1 |
commit: 266f4febeddcf7bd2ae04f3e2cc8b53ea1ca64e2 |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 27 21:03:34 2020 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 27 21:03:34 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=266f4feb |
7 |
|
8 |
sci-mathematics/pari: drop old unstable v2.9.4. |
9 |
|
10 |
We lost the ~arm keyword somewhere in the upgrade. I filed a keyword |
11 |
request to see if pari still works on arm. |
12 |
|
13 |
Bug: https://bugs.gentoo.org/710994 |
14 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
15 |
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org> |
16 |
|
17 |
sci-mathematics/pari/Manifest | 1 - |
18 |
.../pari/files/pari-2.9.4-no-automagic.patch | 66 ----------- |
19 |
sci-mathematics/pari/pari-2.9.4-r1.ebuild | 126 --------------------- |
20 |
3 files changed, 193 deletions(-) |
21 |
|
22 |
diff --git a/sci-mathematics/pari/Manifest b/sci-mathematics/pari/Manifest |
23 |
index 66779145ec1..c679cd11326 100644 |
24 |
--- a/sci-mathematics/pari/Manifest |
25 |
+++ b/sci-mathematics/pari/Manifest |
26 |
@@ -1,2 +1 @@ |
27 |
DIST pari-2.11.2.tar.gz 4433038 BLAKE2B 89fd8c14d6ee8c8640432bec75e10b79897f0180212dcb1b04b654478a3258fc13a7f982bcb400e28997934a21667c0c3cb08fdb2e843a80a24c6499feafb639 SHA512 22f5a6ecad6d9b8b337c2655f538a196a0460f6fe98256d0f49557ce7b843f6b27ad364f45a9472aaafee9506386c886f1f0d62697078e501ec465151d4d10a1 |
28 |
-DIST pari-2.9.4.tar.gz 3851772 BLAKE2B 648e7fd14888bed2dfb7bbb9a25d097aa91899780da9734b444e29997916c27773109e735ecb2d3e9d164a596f3bb8da607d83f278e52d84c49a56df5c89b530 SHA512 539534496e9733bd905b6131374eef8019f93398423710d339bd3c01245e1af675a0a3f9489a05c3ceb2cf3b3426e6b1fb11ea4886b76a1b2e793b59f52e8787 |
29 |
|
30 |
diff --git a/sci-mathematics/pari/files/pari-2.9.4-no-automagic.patch b/sci-mathematics/pari/files/pari-2.9.4-no-automagic.patch |
31 |
deleted file mode 100644 |
32 |
index 3612d8f020f..00000000000 |
33 |
--- a/sci-mathematics/pari/files/pari-2.9.4-no-automagic.patch |
34 |
+++ /dev/null |
35 |
@@ -1,66 +0,0 @@ |
36 |
-diff -r -U2 pari-2.9.4.orig/config/Makefile.SH pari-2.9.4/config/Makefile.SH |
37 |
---- pari-2.9.4.orig/config/Makefile.SH 2017-11-09 16:26:14.000000000 +0700 |
38 |
-+++ pari-2.9.4/config/Makefile.SH 2018-01-13 17:31:02.404210285 +0700 |
39 |
-@@ -80,10 +80,10 @@ |
40 |
- graph=plotQt;; |
41 |
- Qt4) |
42 |
-- PLOTCFLAGS='-D__FANCY_WIN__ -I$(QTDIR)/include' |
43 |
-- PLOTLIBS="-L\$(QTDIR)/lib $QTLIB" |
44 |
-+ PLOTCFLAGS='-D__FANCY_WIN__ `pkg-config --cflags QtGui`' |
45 |
-+ PLOTLIBS="`pkg-config --libs QtGui`" |
46 |
- graph=plotQt4;; |
47 |
- fltk) |
48 |
-- PLOTCFLAGS= |
49 |
-- PLOTLIBS="$FLTK_LIBS" |
50 |
-+ PLOTCFLAGS="`fltk-config --cxxflags` $X11_INC" |
51 |
-+ PLOTLIBS="`fltk-config --ldflags`" |
52 |
- postconfig='fltk-config --post ' |
53 |
- graph=plotfltk;; |
54 |
-@@ -277,5 +277,5 @@ |
55 |
- # Graphic library. |
56 |
- QTDIR = "$QTDIR" |
57 |
--MOC = \$(QTDIR)/bin/moc |
58 |
-+MOC = "`which moc`" |
59 |
- PLOTCFLAGS = $PLOTCFLAGS |
60 |
- PLOTLIBS = $PLOTLIBS |
61 |
-diff -r -U2 pari-2.9.4.orig/config/get_Qt pari-2.9.4/config/get_Qt |
62 |
---- pari-2.9.4.orig/config/get_Qt 2017-05-12 16:45:12.000000000 +0700 |
63 |
-+++ pari-2.9.4/config/get_Qt 2018-01-13 17:35:49.481198212 +0700 |
64 |
-@@ -6,5 +6,5 @@ |
65 |
- yes) |
66 |
- pth="/usr/local/lib /usr/local/share /usr/lib /usr/share" |
67 |
-- QTDIR=`locatedir qt4/bin $pth` |
68 |
-+ QTDIR=`locatedir qt4 $pth` |
69 |
- if test -n "$QTDIR"; then |
70 |
- QTLIB="-lQtCore -lQtGui" |
71 |
-diff -r -U2 pari-2.9.4.orig/config/get_config_options pari-2.9.4/config/get_config_options |
72 |
---- pari-2.9.4.orig/config/get_config_options 2017-11-09 16:26:14.000000000 +0700 |
73 |
-+++ pari-2.9.4/config/get_config_options 2018-01-13 17:38:39.264191072 +0700 |
74 |
-@@ -87,8 +87,10 @@ |
75 |
- with_ncurses_lib=`echo "$1" | sed -e 's/[-a-z]*=//'` ;; |
76 |
- |
77 |
-+ --without-qt|--with-qt=no) without_qt=yes ;; |
78 |
- --with-qt) with_qt=yes ;; |
79 |
- --with-qt=*) |
80 |
- with_qt=`echo "$1" | sed -e 's/[-a-z]*=//'` ;; |
81 |
- |
82 |
-+ --without-fltk|--with-fltk=no) without_fltk=yes ;; |
83 |
- --with-fltk) with_fltk=yes ;; |
84 |
- --with-fltk=*) |
85 |
-@@ -168,5 +170,7 @@ |
86 |
- |
87 |
- --with-qt[=DIR] use the Qt graphical library [prefix for Qt dir.] |
88 |
-+ --without-qt do not try to use the Qt lib |
89 |
- --with-fltk use the FLTK graphical library [need fltk-config] |
90 |
-+ --without-fltk do not try to use the FLTK lib |
91 |
- |
92 |
- Miscellaneous |
93 |
-diff -r -U2 pari-2.9.4.orig/config/get_graphic_lib pari-2.9.4/config/get_graphic_lib |
94 |
---- pari-2.9.4.orig/config/get_graphic_lib 2017-11-09 16:26:14.000000000 +0700 |
95 |
-+++ pari-2.9.4/config/get_graphic_lib 2018-01-13 17:42:45.760180706 +0700 |
96 |
-@@ -8,4 +8,5 @@ |
97 |
- if test -n "$with_fltk"; then which_graphic_lib=fltk; fi |
98 |
- if test -n "$with_qt"; then which_graphic_lib=Qt; fi |
99 |
-+if test -n "$without_fltk" -a -n "$without_qt"; then which_graphic_lib=none; fi |
100 |
- if test "$fastread" != yes; then |
101 |
- cat << EOT |
102 |
|
103 |
diff --git a/sci-mathematics/pari/pari-2.9.4-r1.ebuild b/sci-mathematics/pari/pari-2.9.4-r1.ebuild |
104 |
deleted file mode 100644 |
105 |
index 84317023bfd..00000000000 |
106 |
--- a/sci-mathematics/pari/pari-2.9.4-r1.ebuild |
107 |
+++ /dev/null |
108 |
@@ -1,126 +0,0 @@ |
109 |
-# Copyright 1999-2018 Gentoo Foundation |
110 |
-# Distributed under the terms of the GNU General Public License v2 |
111 |
- |
112 |
-EAPI=6 |
113 |
- |
114 |
-inherit eutils flag-o-matic toolchain-funcs multilib |
115 |
- |
116 |
-DESCRIPTION="Computer-aided number theory C library and tools" |
117 |
-HOMEPAGE="http://pari.math.u-bordeaux.fr/" |
118 |
-LICENSE="GPL-2" |
119 |
-SLOT="0/5" |
120 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris" |
121 |
-IUSE="data doc fltk gmp X" |
122 |
-SRC_URI="http://pari.math.u-bordeaux.fr/pub/${PN}/unix/${P}.tar.gz" |
123 |
- |
124 |
-RDEPEND=" |
125 |
- sys-libs/readline:0= |
126 |
- data? ( sci-mathematics/pari-data ) |
127 |
- doc? ( X? ( x11-misc/xdg-utils ) ) |
128 |
- fltk? ( x11-libs/fltk:1= ) |
129 |
- gmp? ( dev-libs/gmp:0= ) |
130 |
- X? ( x11-libs/libX11:0= )" |
131 |
-DEPEND="${RDEPEND} |
132 |
- doc? ( virtual/latex-base )" |
133 |
- |
134 |
-get_compile_dir() { |
135 |
- pushd "${S}/config" > /dev/null |
136 |
- local fastread=yes |
137 |
- source ./get_archos |
138 |
- popd > /dev/null |
139 |
- echo "O${osname}-${arch}" |
140 |
-} |
141 |
- |
142 |
-PATCHES=( "${FILESDIR}"/${P}-strip.patch |
143 |
- "${FILESDIR}"/${P}-ppc.patch |
144 |
- "${FILESDIR}"/${P}-no-automagic.patch |
145 |
- "${FILESDIR}"/${P}-fltk-detection.patch |
146 |
- ) |
147 |
- |
148 |
-src_prepare() { |
149 |
- default |
150 |
- |
151 |
- # disable default building of docs during install |
152 |
- sed -i \ |
153 |
- -e "s:install-doc install-examples:install-examples:" \ |
154 |
- config/Makefile.SH || die "Failed to fix makefile" |
155 |
- |
156 |
- # propagate ldflags |
157 |
- sed -i \ |
158 |
- -e 's/$shared $extra/$shared $extra \\$(LDFLAGS)/' \ |
159 |
- config/get_dlld || die "failed to fix LDFLAGS" |
160 |
- # move doc dir to a gentoo doc dir and replace acroread by xdg-open |
161 |
- sed -i \ |
162 |
- -e "s:\$d = \$0:\$d = '${EPREFIX}/usr/share/doc/${PF}':" \ |
163 |
- -e 's:"acroread":"xdg-open":' \ |
164 |
- doc/gphelp.in || die "Failed to fix doc dir" |
165 |
-} |
166 |
- |
167 |
-src_configure() { |
168 |
- tc-export CC |
169 |
- export CPLUSPLUS=$(tc-getCXX) |
170 |
- |
171 |
- # need to force optimization here, as it breaks without |
172 |
- if is-flag -O0; then |
173 |
- replace-flags -O0 -O2 |
174 |
- elif ! is-flag -O?; then |
175 |
- append-flags -O2 |
176 |
- fi |
177 |
- |
178 |
- # sysdatadir installs a pari.cfg stuff which is informative only |
179 |
- ./Configure \ |
180 |
- --prefix="${EPREFIX}"/usr \ |
181 |
- --datadir="${EPREFIX}"/usr/share/${PN} \ |
182 |
- --libdir="${EPREFIX}"/usr/$(get_libdir) \ |
183 |
- --sysdatadir="${EPREFIX}"/usr/share/doc/${PF} \ |
184 |
- --mandir="${EPREFIX}"/usr/share/man/man1 \ |
185 |
- --with-readline="${EPREFIX}"/usr \ |
186 |
- --with-ncurses-lib="${EPREFIX}"/usr/$(get_libdir) \ |
187 |
- $(use_with fltk) \ |
188 |
- $(use_with gmp) \ |
189 |
- --without-qt \ |
190 |
- || die "./Configure failed" |
191 |
-} |
192 |
- |
193 |
-src_compile() { |
194 |
- use hppa && \ |
195 |
- mymake=DLLD\="${EPREFIX}"/usr/bin/gcc\ DLLDFLAGS\=-shared\ -Wl,-soname=\$\(LIBPARI_SONAME\)\ -lm |
196 |
- |
197 |
- mycxxmake=LD\=$(tc-getCXX) |
198 |
- |
199 |
- local installdir=$(get_compile_dir) |
200 |
- cd "${installdir}" || die "failed to change directory" |
201 |
- # upstream set -fno-strict-aliasing. |
202 |
- # aliasing is a known issue on amd64, work on x86 by sheer luck |
203 |
- emake ${mymake} \ |
204 |
- CFLAGS="${CFLAGS} -fno-strict-aliasing -DGCC_INLINE -fPIC" lib-dyn |
205 |
- emake ${mymake} ${mycxxmake} \ |
206 |
- CFLAGS="${CFLAGS} -DGCC_INLINE" gp ../gp |
207 |
- |
208 |
- if use doc; then |
209 |
- pushd "${S}" > /dev/null || die "failed to change directory" |
210 |
- VARTEXFONTS="${T}"/fonts emake -j1 docpdf |
211 |
- popd > /dev/null || die |
212 |
- fi |
213 |
-} |
214 |
- |
215 |
-src_test() { |
216 |
- emake dobench |
217 |
-} |
218 |
- |
219 |
-src_install() { |
220 |
- emake ${mymake} ${mycxxmake} DESTDIR="${D}" install |
221 |
- dodoc MACHINES COMPAT |
222 |
- if use doc; then |
223 |
- # install gphelp and the pdf documentations manually. |
224 |
- # the install-doc target is overkill. |
225 |
- dodoc doc/*.pdf |
226 |
- dobin doc/gphelp |
227 |
- insinto /usr/share/doc/${PF} |
228 |
- # gphelp looks for some of the tex sources... |
229 |
- doins doc/*.tex doc/translations |
230 |
- # Install the examples - for real. |
231 |
- emake EXDIR="${ED}/usr/share/doc/${PF}/examples" \ |
232 |
- -C $(get_compile_dir) install-examples |
233 |
- fi |
234 |
-} |