Gentoo Archives: gentoo-commits

From: Michael Orlitzky <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/gmp-ecm/
Date: Mon, 09 Mar 2020 13:40:28
Message-Id: 1583761021.fcb61af43cb39edaeab005da0ff0c38e2fd179e2.mjo@gentoo
1 commit: fcb61af43cb39edaeab005da0ff0c38e2fd179e2
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 9 13:37:01 2020 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 9 13:37:01 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fcb61af4
7
8 sci-mathematics/gmp-ecm: cleanup old versions.
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
12
13 sci-mathematics/gmp-ecm/Manifest | 1 -
14 sci-mathematics/gmp-ecm/gmp-ecm-6.4.4-r1.ebuild | 60 -------------------------
15 sci-mathematics/gmp-ecm/gmp-ecm-7.0.4-r1.ebuild | 55 -----------------------
16 3 files changed, 116 deletions(-)
17
18 diff --git a/sci-mathematics/gmp-ecm/Manifest b/sci-mathematics/gmp-ecm/Manifest
19 index 1459ba43224..d960832dd1a 100644
20 --- a/sci-mathematics/gmp-ecm/Manifest
21 +++ b/sci-mathematics/gmp-ecm/Manifest
22 @@ -1,2 +1 @@
23 -DIST gmp-ecm-6.4.4.tar.gz 941058 BLAKE2B e83f02592a8bb86285f258fefc3e302cc5168888109e7f87835b25412baf526df58e5ea38347acfd926b90fac15b4103981a14aa7b853dba0cb0168467a223e0 SHA512 039009de2d1a22de7abed2e2b843fa2bc684ddcfc45892891a24b93ad4b3640a97d2e7612ebcbdbca8db032534c226ad77c67199772b21a6139e5fa205687097
24 DIST gmp-ecm-7.0.4.tar.gz 1101899 BLAKE2B 6d52364d9c752aee66510a7f6b273559bf1b7de0032fbbeff74e229ed68fd0cd1c236b480f8fc25bcad6435740e3e22b3099c8f018912918ab8f4b33dc7b8b3c SHA512 b863b9bfd26df26c3c4243686036a69110e69ca3eec5b31d4550fe713e2fac4ce70cd1d80f0614899793aa44710531aa4a21abc0fa1b99eb17f62bd92b971350
25
26 diff --git a/sci-mathematics/gmp-ecm/gmp-ecm-6.4.4-r1.ebuild b/sci-mathematics/gmp-ecm/gmp-ecm-6.4.4-r1.ebuild
27 deleted file mode 100644
28 index 463c145bb3c..00000000000
29 --- a/sci-mathematics/gmp-ecm/gmp-ecm-6.4.4-r1.ebuild
30 +++ /dev/null
31 @@ -1,60 +0,0 @@
32 -# Copyright 1999-2019 Gentoo Authors
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=5
36 -
37 -inherit autotools eutils flag-o-matic multilib
38 -
39 -DESCRIPTION="Elliptic Curve Method for Integer Factorization"
40 -HOMEPAGE="http://ecm.gforge.inria.fr/"
41 -SRC_URI="https://gforge.inria.fr/frs/download.php/32159/${P}.tar.gz"
42 -
43 -LICENSE="GPL-3 LGPL-3"
44 -SLOT="0"
45 -KEYWORDS="~amd64 ~x86"
46 -IUSE="+blas +custom-tune -openmp static-libs test"
47 -RESTRICT="!test? ( test )"
48 -
49 -DEPEND="
50 - dev-libs/gmp:0=
51 - blas? ( sci-libs/gsl )
52 - openmp? ( sys-devel/gcc:*[openmp] )"
53 -RDEPEND="${DEPEND}"
54 -
55 -S=${WORKDIR}/ecm-${PV}
56 -
57 -MAKEOPTS+=" -j1"
58 -
59 -src_prepare() {
60 - sed -e '/libecm_la_LIBADD/s:$: -lgmp:g' -i Makefile.am || die
61 - eautoreconf
62 -}
63 -
64 -src_configure() {
65 - # --enable-shellcmd is broken
66 - econf \
67 - --enable-shared \
68 - $(use_enable static-libs static) \
69 - $(use_enable openmp) \
70 - ${myconf}
71 -}
72 -
73 -src_compile() {
74 - append-ldflags "-Wl,-z,noexecstack"
75 - if use custom-tune; then
76 - use amd64 && cd x86_64
77 - use x86 && cd pentium4
78 - emake
79 - cd .. && make bench_mulredc || die
80 - sed -i -e 's:#define TUNE_MULREDC_TABLE://#define TUNE_MULREDC_TABLE:g' `readlink ecm-params.h` || die
81 - sed -i -e 's:#define TUNE_SQRREDC_TABLE://#define TUNE_SQRREDC_TABLE:g' `readlink ecm-params.h` || die
82 - ./bench_mulredc | tail -n 4 >> `readlink ecm-params.h` || die
83 - fi
84 - default
85 -}
86 -
87 -src_install() {
88 - default
89 - mkdir -p "${ED}/usr/include/${PN}/"
90 - cp "${S}"/*.h "${ED}/usr/include/${PN}" || die "Failed to copy headers" # needed by other apps like YAFU
91 -}
92
93 diff --git a/sci-mathematics/gmp-ecm/gmp-ecm-7.0.4-r1.ebuild b/sci-mathematics/gmp-ecm/gmp-ecm-7.0.4-r1.ebuild
94 deleted file mode 100644
95 index e650e69207f..00000000000
96 --- a/sci-mathematics/gmp-ecm/gmp-ecm-7.0.4-r1.ebuild
97 +++ /dev/null
98 @@ -1,55 +0,0 @@
99 -# Copyright 1999-2019 Gentoo Authors
100 -# Distributed under the terms of the GNU General Public License v2
101 -
102 -EAPI=5
103 -
104 -inherit autotools eutils flag-o-matic multilib
105 -
106 -DESCRIPTION="Elliptic Curve Method for Integer Factorization"
107 -HOMEPAGE="http://ecm.gforge.inria.fr/"
108 -SRC_URI="https://gforge.inria.fr/frs/download.php/36224/${P}.tar.gz"
109 -
110 -LICENSE="GPL-3 LGPL-3"
111 -SLOT="0"
112 -KEYWORDS="~amd64 ~x86"
113 -IUSE="+blas +custom-tune -openmp static-libs test"
114 -RESTRICT="!test? ( test )"
115 -
116 -DEPEND="
117 - dev-libs/gmp:0=
118 - blas? ( sci-libs/gsl )
119 - openmp? ( sys-devel/gcc:*[openmp] )"
120 -RDEPEND="${DEPEND}"
121 -
122 -S=${WORKDIR}/ecm-${PV}
123 -
124 -MAKEOPTS+=" -j1"
125 -
126 -src_prepare() {
127 - sed -e '/libecm_la_LIBADD/s:$: -lgmp:g' -i Makefile.am || die
128 - eautoreconf
129 -}
130 -
131 -src_configure() {
132 - # --enable-shellcmd is broken
133 - econf \
134 - --enable-shared \
135 - $(use_enable static-libs static) \
136 - $(use_enable openmp) \
137 - ${myconf}
138 -}
139 -
140 -src_compile() {
141 - append-ldflags "-Wl,-z,noexecstack"
142 - if use custom-tune; then
143 - emake && emake ecm-params # need to build all to get benchmark bits, then run benchmark
144 - emake
145 - fi
146 - default
147 -}
148 -
149 -src_install() {
150 - default
151 - mkdir -p "${ED}/usr/include/${PN}/"
152 - cp "${S}"/*.h "${ED}/usr/include/${PN}" || die "Failed to copy headers" # needed by other apps like YAFU
153 -}