1 |
bicatali 14/06/09 04:12:12 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: nlopt-2.4.2.ebuild |
5 |
Log: |
6 |
Version bump. Worked out some kind of multibuild for both C and C++ libraries |
7 |
|
8 |
(Portage version: HEAD/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360) |
9 |
|
10 |
Revision Changes Path |
11 |
1.6 sci-libs/nlopt/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/nlopt/metadata.xml?rev=1.6&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/nlopt/metadata.xml?rev=1.6&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/nlopt/metadata.xml?r1=1.5&r2=1.6 |
16 |
|
17 |
Index: metadata.xml |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sci-libs/nlopt/metadata.xml,v |
20 |
retrieving revision 1.5 |
21 |
retrieving revision 1.6 |
22 |
diff -u -r1.5 -r1.6 |
23 |
--- metadata.xml 24 Apr 2013 12:20:01 -0000 1.5 |
24 |
+++ metadata.xml 9 Jun 2014 04:12:12 -0000 1.6 |
25 |
@@ -1,13 +1,13 @@ |
26 |
<?xml version="1.0" encoding="UTF-8"?> |
27 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
28 |
<pkgmetadata> |
29 |
- <herd>sci</herd> |
30 |
- <longdescription lang="en"> |
31 |
+<herd>sci</herd> |
32 |
+<longdescription lang="en"> |
33 |
NLopt is a library for nonlinear optimization, |
34 |
providing a common interface for a number of different free |
35 |
optimization routines available online as well as original |
36 |
implementations of various other algorithms. Its features include: |
37 |
- * Callable from variety of languages (C, C++, Fortran, Python, Octave,...) |
38 |
+ * Callable from variety of languages (C, C++, Fortran, Python, Octave) |
39 |
* A common interface for many different algorithms—try a different |
40 |
algorithm just by changing one parameter. |
41 |
* Both global and local optimization algorithms. |
42 |
@@ -15,7 +15,7 @@ |
43 |
* Algorithms for unconstrained optimization, bound-constrained |
44 |
optimization, and general nonlinear inequality constraints. |
45 |
</longdescription> |
46 |
- <use> |
47 |
- <flag name="octave">Add plugin for <pkg>sci-mathematics/octave</pkg></flag> |
48 |
- </use> |
49 |
+<use> |
50 |
+ <flag name="octave">Add plugin for <pkg>sci-mathematics/octave</pkg></flag> |
51 |
+</use> |
52 |
</pkgmetadata> |
53 |
|
54 |
|
55 |
|
56 |
1.23 sci-libs/nlopt/ChangeLog |
57 |
|
58 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/nlopt/ChangeLog?rev=1.23&view=markup |
59 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/nlopt/ChangeLog?rev=1.23&content-type=text/plain |
60 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/nlopt/ChangeLog?r1=1.22&r2=1.23 |
61 |
|
62 |
Index: ChangeLog |
63 |
=================================================================== |
64 |
RCS file: /var/cvsroot/gentoo-x86/sci-libs/nlopt/ChangeLog,v |
65 |
retrieving revision 1.22 |
66 |
retrieving revision 1.23 |
67 |
diff -u -r1.22 -r1.23 |
68 |
--- ChangeLog 24 Apr 2013 12:20:01 -0000 1.22 |
69 |
+++ ChangeLog 9 Jun 2014 04:12:12 -0000 1.23 |
70 |
@@ -1,6 +1,12 @@ |
71 |
# ChangeLog for sci-libs/nlopt |
72 |
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
73 |
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/nlopt/ChangeLog,v 1.22 2013/04/24 12:20:01 jlec Exp $ |
74 |
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
75 |
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/nlopt/ChangeLog,v 1.23 2014/06/09 04:12:12 bicatali Exp $ |
76 |
+ |
77 |
+*nlopt-2.4.2 (09 Jun 2014) |
78 |
+ |
79 |
+ 09 Jun 2014; SĂ©bastien Fabbro <bicatali@g.o> +nlopt-2.4.2.ebuild, |
80 |
+ metadata.xml: |
81 |
+ Version bump. Worked out some kind of multibuild for both C and C++ libraries |
82 |
|
83 |
24 Apr 2013; Justin Lecher <jlec@g.o> nlopt-2.2.4.ebuild, |
84 |
nlopt-2.3-r1.ebuild, nlopt-2.3-r2.ebuild, metadata.xml: |
85 |
|
86 |
|
87 |
|
88 |
1.1 sci-libs/nlopt/nlopt-2.4.2.ebuild |
89 |
|
90 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/nlopt/nlopt-2.4.2.ebuild?rev=1.1&view=markup |
91 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/nlopt/nlopt-2.4.2.ebuild?rev=1.1&content-type=text/plain |
92 |
|
93 |
Index: nlopt-2.4.2.ebuild |
94 |
=================================================================== |
95 |
# Copyright 1999-2014 Gentoo Foundation |
96 |
# Distributed under the terms of the GNU General Public License v2 |
97 |
# $Header: /var/cvsroot/gentoo-x86/sci-libs/nlopt/nlopt-2.4.2.ebuild,v 1.1 2014/06/09 04:12:12 bicatali Exp $ |
98 |
|
99 |
EAPI=5 |
100 |
|
101 |
PYTHON_COMPAT=( python{2_6,2_7} ) |
102 |
AUTOTOOLS_AUTORECONF=1 |
103 |
|
104 |
inherit python-r1 autotools-utils |
105 |
|
106 |
DESCRIPTION="Non-linear optimization library" |
107 |
HOMEPAGE="http://ab-initio.mit.edu/nlopt/" |
108 |
SRC_URI="${HOMEPAGE}/${P}.tar.gz" |
109 |
|
110 |
LICENSE="LGPL-2.1 MIT" |
111 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
112 |
SLOT="0" |
113 |
IUSE="cxx guile octave python static-libs" |
114 |
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
115 |
DEPEND=" |
116 |
guile? ( dev-scheme/guile ) |
117 |
octave? ( sci-mathematics/octave ) |
118 |
python? ( dev-python/numpy[${PYTHON_USEDEP}] )" |
119 |
RDEPEND="${DEPEND}" |
120 |
|
121 |
PATCHES=( |
122 |
"${FILESDIR}"/${PN}-2.3-pkgconfig.patch |
123 |
"${FILESDIR}"/${PN}-2.3-as-needed.patch |
124 |
) |
125 |
|
126 |
src_prepare() { |
127 |
autotools-utils_src_prepare |
128 |
use cxx && BUILD_CXX="${S}_cxx" |
129 |
use python && python_copy_sources |
130 |
} |
131 |
|
132 |
src_configure() { |
133 |
if use octave; then |
134 |
export OCT_INSTALL_DIR="$(octave-config -p LOCALOCTFILEDIR)" |
135 |
export M_INSTALL_DIR="$(octave-config -p LOCALFCNFILEDIR)" |
136 |
|
137 |
else |
138 |
export MKOCTFILE=None |
139 |
fi |
140 |
local myeconfargs=( |
141 |
$(use_with guile) |
142 |
) |
143 |
if use python; then |
144 |
python_foreach_impl run_in_build_dir autotools-utils_src_configure |
145 |
else |
146 |
autotools-utils_src_configure |
147 |
fi |
148 |
if use cxx; then |
149 |
myeconfargs+=( --with-cxx --without-octave --without-python ) |
150 |
BUILD_DIR="${BUILD_CXX}" autotools-utils_src_configure |
151 |
fi |
152 |
} |
153 |
|
154 |
src_compile() { |
155 |
if use python; then |
156 |
python_foreach_impl run_in_build_dir autotools-utils_src_compile |
157 |
else |
158 |
autotools-utils_src_compile |
159 |
fi |
160 |
use cxx && BUILD_DIR="${BUILD_CXX}" autotools-utils_src_compile |
161 |
#-C "${BUILD_DIR}_cxx" |
162 |
} |
163 |
|
164 |
src_test() { |
165 |
do_test() { |
166 |
local a f |
167 |
cd "${BUILD_DIR}"/test |
168 |
for a in {1..7}; do |
169 |
for f in {5..9}; do |
170 |
./testopt -a $a -o $f || die "algorithm $a function $f failed" |
171 |
done |
172 |
done |
173 |
} |
174 |
if use python; then |
175 |
python_foreach_impl run_in_build_dir do_test |
176 |
else |
177 |
do_test |
178 |
fi |
179 |
cd "${BUILD_CXX}"/test |
180 |
for a in {1..9}; do |
181 |
for f in {5..9}; do |
182 |
./testopt -a $a -o $f || die "algorithm $a function $f failed" |
183 |
done |
184 |
done |
185 |
} |
186 |
|
187 |
src_install() { |
188 |
# build cxx first so the c lib overwrites the pc file |
189 |
use cxx && BUILD_DIR="${BUILD_CXX}" autotools-utils_src_install |
190 |
if use python; then |
191 |
python_foreach_impl run_in_build_dir autotools-utils_src_install |
192 |
else |
193 |
autotools-utils_src_install |
194 |
fi |
195 |
local r |
196 |
for r in */README; do newdoc ${r} README.$(dirname ${r}); done |
197 |
} |