1 |
bicatali 11/07/28 23:51:14 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: nlopt-2.2.4.ebuild |
5 |
Removed: nlopt-2.2.3.ebuild nlopt-2.2.1.ebuild |
6 |
Log: |
7 |
Version bump |
8 |
|
9 |
(Portage version: 2.1.10.7/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.9 sci-libs/nlopt/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/nlopt/ChangeLog?rev=1.9&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/nlopt/ChangeLog?rev=1.9&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/nlopt/ChangeLog?r1=1.8&r2=1.9 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sci-libs/nlopt/ChangeLog,v |
21 |
retrieving revision 1.8 |
22 |
retrieving revision 1.9 |
23 |
diff -u -r1.8 -r1.9 |
24 |
--- ChangeLog 9 Jun 2011 21:32:16 -0000 1.8 |
25 |
+++ ChangeLog 28 Jul 2011 23:51:13 -0000 1.9 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for sci-libs/nlopt |
28 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/nlopt/ChangeLog,v 1.8 2011/06/09 21:32:16 bicatali Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/nlopt/ChangeLog,v 1.9 2011/07/28 23:51:13 bicatali Exp $ |
31 |
+ |
32 |
+*nlopt-2.2.4 (28 Jul 2011) |
33 |
+ |
34 |
+ 28 Jul 2011; Sébastien Fabbro <bicatali@g.o> -nlopt-2.2.1.ebuild, |
35 |
+ -nlopt-2.2.3.ebuild, +nlopt-2.2.4.ebuild: |
36 |
+ Version bump |
37 |
|
38 |
*nlopt-2.2.3 (09 Jun 2011) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 sci-libs/nlopt/nlopt-2.2.4.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/nlopt/nlopt-2.2.4.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/nlopt/nlopt-2.2.4.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: nlopt-2.2.4.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2011 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/sci-libs/nlopt/nlopt-2.2.4.ebuild,v 1.1 2011/07/28 23:51:14 bicatali Exp $ |
53 |
|
54 |
EAPI=3 |
55 |
|
56 |
SUPPORT_PYTHON_ABIS="1" |
57 |
PYTHON_DEPEND="python? *" |
58 |
RESTRICT_PYTHON_ABIS="3.*" |
59 |
|
60 |
inherit eutils python |
61 |
|
62 |
DESCRIPTION="Non-linear optimization library" |
63 |
HOMEPAGE="http://ab-initio.mit.edu/nlopt/" |
64 |
SRC_URI="${HOMEPAGE}/${P}.tar.gz" |
65 |
|
66 |
LICENSE="LGPL-2.1 MIT" |
67 |
KEYWORDS="~amd64 ~x86" |
68 |
SLOT="0" |
69 |
IUSE="cxx guile octave python static-libs" |
70 |
|
71 |
DEPEND=" |
72 |
guile? ( dev-scheme/guile ) |
73 |
octave? ( sci-mathematics/octave ) |
74 |
python? ( dev-python/numpy )" |
75 |
RDEPEND="${DEPEND}" |
76 |
|
77 |
src_prepare() { |
78 |
if use python; then |
79 |
sed -i \ |
80 |
-e '/^LTLIBRARIES/s:$(pyexec_LTLIBRARIES)::g' \ |
81 |
swig/Makefile.in || die |
82 |
echo '#!/bin/sh' > py-compile |
83 |
fi |
84 |
} |
85 |
|
86 |
src_configure() { |
87 |
if use octave; then |
88 |
export OCT_INSTALL_DIR="${EPREFIX}"/usr/libexec/octave/site/oct/${CHOST} |
89 |
export M_INSTALL_DIR="${EPREFIX}"/usr/share/octave/site/m |
90 |
else |
91 |
export MKOCTFILE=None |
92 |
fi |
93 |
econf \ |
94 |
--enable-shared \ |
95 |
$(use_enable static-libs static) \ |
96 |
$(use_with cxx) \ |
97 |
$(use_with guile) \ |
98 |
$(use_with octave) \ |
99 |
$(use_with python) |
100 |
use python && python_copy_sources swig |
101 |
} |
102 |
|
103 |
src_compile() { |
104 |
default |
105 |
if use python; then |
106 |
compilation() { |
107 |
emake \ |
108 |
PYTHON_CPPFLAGS="-I$(python_get_includedir)" \ |
109 |
PYTHON_LDFLAGS="$(python_get_library -l)" \ |
110 |
PYTHON_SITE_PKG="$(python_get_sitedir)" \ |
111 |
PYTHON_VERSION="$(python_get_version)" \ |
112 |
pyexecdir="$(python_get_sitedir)" |
113 |
} |
114 |
python_execute_function -s --source-dir swig compilation |
115 |
fi |
116 |
} |
117 |
|
118 |
src_install() { |
119 |
emake DESTDIR="${D}" install || die "emake install failed" |
120 |
if use python; then |
121 |
installation() { |
122 |
emake \ |
123 |
DESTDIR="${D}" \ |
124 |
pyexecdir="$(python_get_sitedir)" \ |
125 |
pythondir="$(python_get_sitedir)" \ |
126 |
install |
127 |
} |
128 |
python_execute_function -s --source-dir swig installation |
129 |
python_clean_installation_image |
130 |
fi |
131 |
|
132 |
dodoc AUTHORS ChangeLog NEWS README || die |
133 |
for r in */README; do newdoc ${r} README.$(dirname ${r}); done |
134 |
} |
135 |
|
136 |
pkg_postinst() { |
137 |
use python && python_mod_optimize ${PN}.py |
138 |
} |
139 |
|
140 |
pkg_postrm() { |
141 |
use python && python_mod_cleanup ${PN}.py |
142 |
} |