1 |
commit: f22acba679894d575d5910eb0ee80009434f1dcb |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 12 20:18:54 2022 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 12 20:31:29 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f22acba6 |
7 |
|
8 |
sci-libs/nlopt: drop 2.6.2-r1, 2.7.1 |
9 |
|
10 |
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org> |
11 |
|
12 |
sci-libs/nlopt/Manifest | 1 - |
13 |
sci-libs/nlopt/nlopt-2.6.2-r1.ebuild | 109 ----------------------------------- |
14 |
sci-libs/nlopt/nlopt-2.7.1.ebuild | 97 ------------------------------- |
15 |
3 files changed, 207 deletions(-) |
16 |
|
17 |
diff --git a/sci-libs/nlopt/Manifest b/sci-libs/nlopt/Manifest |
18 |
index bc0bc63e1b06..91292448e091 100644 |
19 |
--- a/sci-libs/nlopt/Manifest |
20 |
+++ b/sci-libs/nlopt/Manifest |
21 |
@@ -1,2 +1 @@ |
22 |
-DIST nlopt-2.6.2.tar.gz 2040229 BLAKE2B f1f4124de574600ddbef8a885bbdd3a4f57b469b2f958ce94bbc831cf9bfa8a845e438fccfe4ab219a73a5675b8d880f6d49e0e7cbe9d0966777b0d2344521d4 SHA512 61e5c01140a57c0ad2a0acd82ad50dce1b5679dc281e55cbbc332e876b19a689013100617545a42b721d8c487df37d6ccd67859171243433fe29468f259b556b |
23 |
DIST nlopt-2.7.1.tar.gz 2044180 BLAKE2B 6d459f94a26ee6dd7f72c73c48992bd047150aa525bc4ad088c8516127afc5c7843f6fbb6726c2f845271b87934c13e0892a063362ab50df51f92e81979111fb SHA512 e23cb522fc696010574c14b72be85acc0f8ccf0bf208bf2b8789c57d6c5a6e6d419ee10330581518b1c1567018ae909b626ce7761d4fbd5bf112916871e420e2 |
24 |
|
25 |
diff --git a/sci-libs/nlopt/nlopt-2.6.2-r1.ebuild b/sci-libs/nlopt/nlopt-2.6.2-r1.ebuild |
26 |
deleted file mode 100644 |
27 |
index 01368b67d508..000000000000 |
28 |
--- a/sci-libs/nlopt/nlopt-2.6.2-r1.ebuild |
29 |
+++ /dev/null |
30 |
@@ -1,109 +0,0 @@ |
31 |
-# Copyright 1999-2021 Gentoo Authors |
32 |
-# Distributed under the terms of the GNU General Public License v2 |
33 |
- |
34 |
-EAPI=7 |
35 |
- |
36 |
-PYTHON_COMPAT=( python3_{8..10} ) |
37 |
- |
38 |
-inherit python-r1 cmake fortran-2 |
39 |
- |
40 |
-DESCRIPTION="Non-linear optimization library" |
41 |
-HOMEPAGE="https://ab-initio.mit.edu/nlopt/" |
42 |
-SRC_URI="https://github.com/stevengj/nlopt/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
43 |
- |
44 |
-LICENSE="LGPL-2.1 MIT" |
45 |
-KEYWORDS="amd64 ~arm64 x86 ~amd64-linux ~x86-linux" |
46 |
-SLOT="0" |
47 |
-IUSE="cxx guile octave python static-libs test" |
48 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
49 |
-RESTRICT="!test? ( test )" |
50 |
- |
51 |
-RDEPEND=" |
52 |
- guile? ( dev-scheme/guile:* ) |
53 |
- octave? ( sci-mathematics/octave ) |
54 |
- python? ( |
55 |
- ${PYTHON_DEPS} |
56 |
- dev-python/numpy[${PYTHON_USEDEP}] |
57 |
- ) |
58 |
- " |
59 |
-DEPEND=" |
60 |
- ${RDEPEND} |
61 |
- python? ( dev-lang/swig ) |
62 |
- " |
63 |
- |
64 |
-src_prepare() { |
65 |
- cmake_src_prepare |
66 |
- use python && python_copy_sources |
67 |
-} |
68 |
- |
69 |
-src_configure() { |
70 |
- local mycmakeargs=( |
71 |
- -DNLOPT_CXX=$(usex cxx) |
72 |
- -DNLOPT_FORTRAN=$(usex test) |
73 |
- -DNLOPT_GUILE=$(usex guile) |
74 |
- -DNLOPT_OCTAVE=$(usex octave) |
75 |
- -DNLOPT_PYTHON=$(usex python) |
76 |
- -DNLOPT_SWIG=$(usex python) |
77 |
- -DNLOPT_TESTS=$(usex test) |
78 |
- ) |
79 |
- if use python; then |
80 |
- python_foreach_impl run_in_build_dir cmake_src_configure |
81 |
- else |
82 |
- cmake_src_configure |
83 |
- fi |
84 |
- if use static-libs; then |
85 |
- mycmakeargs+=( |
86 |
- -DBUILD_SHARED_LIBS=OFF |
87 |
- ) |
88 |
- BUILD_DIR="${S}_static-libs" run_in_build_dir cmake_src_configure |
89 |
- fi |
90 |
-} |
91 |
- |
92 |
-src_compile() { |
93 |
- if use python; then |
94 |
- python_foreach_impl run_in_build_dir cmake_src_compile |
95 |
- else |
96 |
- cmake_src_compile |
97 |
- fi |
98 |
- if use static-libs; then |
99 |
- BUILD_DIR="${S}_static-libs" run_in_build_dir cmake_src_compile |
100 |
- fi |
101 |
-} |
102 |
- |
103 |
-src_test() { |
104 |
- do_test() { |
105 |
- local a f |
106 |
- cd "${BUILD_DIR}"/test |
107 |
- for a in {1..$(usex cxx 9 7)}; do |
108 |
- for f in {5..9}; do |
109 |
- ./testopt -a $a -o $f || die "algorithm $a function $f failed" |
110 |
- done |
111 |
- done |
112 |
- } |
113 |
- if use python; then |
114 |
- python_foreach_impl run_in_build_dir do_test |
115 |
- else |
116 |
- do_test |
117 |
- fi |
118 |
- if use static-libs; then |
119 |
- BUILD_DIR="${S}_static-libs" run_in_build_dir do_test |
120 |
- fi |
121 |
-} |
122 |
- |
123 |
-nlopt_install() { |
124 |
- cmake_src_install |
125 |
- python_optimize |
126 |
-} |
127 |
- |
128 |
-src_install() { |
129 |
- if use python; then |
130 |
- python_foreach_impl run_in_build_dir nlopt_install |
131 |
- else |
132 |
- cmake_src_install |
133 |
- fi |
134 |
- if use static-libs; then |
135 |
- BUILD_DIR="${S}_static-libs" run_in_build_dir dolib.a libnlopt.a |
136 |
- fi |
137 |
- local r |
138 |
- for r in */README; do newdoc ${r} README.$(dirname ${r}); done |
139 |
-} |
140 |
|
141 |
diff --git a/sci-libs/nlopt/nlopt-2.7.1.ebuild b/sci-libs/nlopt/nlopt-2.7.1.ebuild |
142 |
deleted file mode 100644 |
143 |
index 10e6b998d4e3..000000000000 |
144 |
--- a/sci-libs/nlopt/nlopt-2.7.1.ebuild |
145 |
+++ /dev/null |
146 |
@@ -1,97 +0,0 @@ |
147 |
-# Copyright 1999-2022 Gentoo Authors |
148 |
-# Distributed under the terms of the GNU General Public License v2 |
149 |
- |
150 |
-EAPI=7 |
151 |
- |
152 |
-PYTHON_COMPAT=( python3_{8..10} ) |
153 |
- |
154 |
-inherit python-r1 cmake fortran-2 |
155 |
- |
156 |
-DESCRIPTION="Non-linear optimization library" |
157 |
-HOMEPAGE="https://github.com/stevengj/nlopt" |
158 |
-SRC_URI="https://github.com/stevengj/nlopt/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
159 |
- |
160 |
-LICENSE="LGPL-2.1 MIT" |
161 |
-KEYWORDS="amd64 ~arm64 x86 ~amd64-linux ~x86-linux" |
162 |
-SLOT="0" |
163 |
-IUSE="cxx guile octave python test" |
164 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
165 |
-RESTRICT="!test? ( test )" |
166 |
- |
167 |
-RDEPEND=" |
168 |
- guile? ( dev-scheme/guile:* ) |
169 |
- octave? ( >=sci-mathematics/octave-6 ) |
170 |
- python? ( |
171 |
- ${PYTHON_DEPS} |
172 |
- dev-python/numpy[${PYTHON_USEDEP}] |
173 |
- ) |
174 |
- " |
175 |
-DEPEND=" |
176 |
- ${RDEPEND} |
177 |
- python? ( dev-lang/swig ) |
178 |
- " |
179 |
- |
180 |
-src_prepare() { |
181 |
- cmake_src_prepare |
182 |
- use python && python_copy_sources |
183 |
-} |
184 |
- |
185 |
-src_configure() { |
186 |
- # MATLAB detection causes problems (as in bug 826774) if we don't |
187 |
- # explicitly disable it. |
188 |
- local mycmakeargs=( |
189 |
- -DNLOPT_CXX=$(usex cxx) |
190 |
- -DNLOPT_FORTRAN=$(usex test) |
191 |
- -DNLOPT_GUILE=$(usex guile) |
192 |
- -DNLOPT_OCTAVE=$(usex octave) |
193 |
- -DNLOPT_MATLAB=OFF |
194 |
- -DNLOPT_PYTHON=$(usex python) |
195 |
- -DNLOPT_SWIG=$(usex python) |
196 |
- -DNLOPT_TESTS=$(usex test) |
197 |
- ) |
198 |
- if use python; then |
199 |
- python_foreach_impl run_in_build_dir cmake_src_configure |
200 |
- else |
201 |
- cmake_src_configure |
202 |
- fi |
203 |
-} |
204 |
- |
205 |
-src_compile() { |
206 |
- if use python; then |
207 |
- python_foreach_impl run_in_build_dir cmake_src_compile |
208 |
- else |
209 |
- cmake_src_compile |
210 |
- fi |
211 |
-} |
212 |
- |
213 |
-src_test() { |
214 |
- do_test() { |
215 |
- local a f |
216 |
- cd "${BUILD_DIR}"/test |
217 |
- for a in {1..$(usex cxx 9 7)}; do |
218 |
- for f in {5..9}; do |
219 |
- ./testopt -a $a -o $f || die "algorithm $a function $f failed" |
220 |
- done |
221 |
- done |
222 |
- } |
223 |
- if use python; then |
224 |
- python_foreach_impl run_in_build_dir do_test |
225 |
- else |
226 |
- do_test |
227 |
- fi |
228 |
-} |
229 |
- |
230 |
-nlopt_install() { |
231 |
- cmake_src_install |
232 |
- python_optimize |
233 |
-} |
234 |
- |
235 |
-src_install() { |
236 |
- if use python; then |
237 |
- python_foreach_impl run_in_build_dir nlopt_install |
238 |
- else |
239 |
- cmake_src_install |
240 |
- fi |
241 |
- local r |
242 |
- for r in */README; do newdoc ${r} README.$(dirname ${r}); done |
243 |
-} |