1 |
bicatali 13/02/27 21:57:45 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: oosuite-0.43.ebuild |
5 |
Removed: oosuite-0.38.ebuild oosuite-0.39.ebuild |
6 |
Log: |
7 |
Version bump. Switch to python-r1 framework. Re-organize SpaceFuncs to make it work |
8 |
|
9 |
(Portage version: 2.2.01.21688-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360) |
10 |
|
11 |
Revision Changes Path |
12 |
1.2 dev-python/oosuite/metadata.xml |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/oosuite/metadata.xml?rev=1.2&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/oosuite/metadata.xml?rev=1.2&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/oosuite/metadata.xml?r1=1.1&r2=1.2 |
17 |
|
18 |
Index: metadata.xml |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/oosuite/metadata.xml,v |
21 |
retrieving revision 1.1 |
22 |
retrieving revision 1.2 |
23 |
diff -u -r1.1 -r1.2 |
24 |
--- metadata.xml 7 Jan 2012 20:39:27 -0000 1.1 |
25 |
+++ metadata.xml 27 Feb 2013 21:57:45 -0000 1.2 |
26 |
@@ -4,7 +4,7 @@ |
27 |
<herd>sci-mathematics</herd> |
28 |
<longdescription lang='en'> |
29 |
The OpenOpt suite of Python packages contains the following modules: |
30 |
- * OpenOpt: universal numerical optimization package with |
31 |
+ * openopt: universal numerical optimization package with |
32 |
several solvers (e.g. ralg) and connections to tens of other, |
33 |
graphical output of convergence. |
34 |
* FuncDesigner: tool to rapidly build functions over |
35 |
|
36 |
|
37 |
|
38 |
1.7 dev-python/oosuite/ChangeLog |
39 |
|
40 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/oosuite/ChangeLog?rev=1.7&view=markup |
41 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/oosuite/ChangeLog?rev=1.7&content-type=text/plain |
42 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/oosuite/ChangeLog?r1=1.6&r2=1.7 |
43 |
|
44 |
Index: ChangeLog |
45 |
=================================================================== |
46 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/oosuite/ChangeLog,v |
47 |
retrieving revision 1.6 |
48 |
retrieving revision 1.7 |
49 |
diff -u -r1.6 -r1.7 |
50 |
--- ChangeLog 1 Nov 2012 19:30:56 -0000 1.6 |
51 |
+++ ChangeLog 27 Feb 2013 21:57:45 -0000 1.7 |
52 |
@@ -1,6 +1,13 @@ |
53 |
# ChangeLog for dev-python/oosuite |
54 |
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
55 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/oosuite/ChangeLog,v 1.6 2012/11/01 19:30:56 bicatali Exp $ |
56 |
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
57 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/oosuite/ChangeLog,v 1.7 2013/02/27 21:57:45 bicatali Exp $ |
58 |
+ |
59 |
+*oosuite-0.43 (27 Feb 2013) |
60 |
+ |
61 |
+ 27 Feb 2013; Sébastien Fabbro <bicatali@g.o> +oosuite-0.43.ebuild, |
62 |
+ -oosuite-0.38.ebuild, -oosuite-0.39.ebuild, metadata.xml: |
63 |
+ Version bump. Switch to python-r1 framework. Re-organize SpaceFuncs to make it |
64 |
+ work |
65 |
|
66 |
*oosuite-0.42 (01 Nov 2012) |
67 |
|
68 |
|
69 |
|
70 |
|
71 |
1.1 dev-python/oosuite/oosuite-0.43.ebuild |
72 |
|
73 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/oosuite/oosuite-0.43.ebuild?rev=1.1&view=markup |
74 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/oosuite/oosuite-0.43.ebuild?rev=1.1&content-type=text/plain |
75 |
|
76 |
Index: oosuite-0.43.ebuild |
77 |
=================================================================== |
78 |
# Copyright 1999-2013 Gentoo Foundation |
79 |
# Distributed under the terms of the GNU General Public License v2 |
80 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/oosuite/oosuite-0.43.ebuild,v 1.1 2013/02/27 21:57:45 bicatali Exp $ |
81 |
|
82 |
EAPI=5 |
83 |
|
84 |
PYTHON_COMPAT=( python{2_6,2_7} ) |
85 |
PYTHON_REQ_USE='tk?' |
86 |
|
87 |
inherit distutils-r1 eutils |
88 |
|
89 |
MYPN="OOSuite" |
90 |
MYPID="f/f3" |
91 |
|
92 |
DESCRIPTION="OpenOpt suite of Python modules for numerical optimization" |
93 |
HOMEPAGE="http://openopt.org/" |
94 |
SRC_URI="http://openopt.org/images/${MYPID}/${MYPN}.zip -> ${MYPN}-${PV}.zip" |
95 |
|
96 |
LICENSE="BSD" |
97 |
SLOT="0" |
98 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
99 |
IUSE="examples minimal tk" |
100 |
|
101 |
RDEPEND=" |
102 |
dev-python/numpy[${PYTHON_USEDEP}] |
103 |
!minimal? ( |
104 |
dev-python/cvxopt[glpk,${PYTHON_USEDEP}] |
105 |
dev-python/lp_solve[${PYTHON_USEDEP}] |
106 |
dev-python/matplotlib[${PYTHON_USEDEP}] |
107 |
dev-python/setproctitle[${PYTHON_USEDEP}] |
108 |
sci-libs/nlopt[python] |
109 |
sci-libs/scipy[${PYTHON_USEDEP}] )" |
110 |
DEPEND=" |
111 |
app-arch/unzip |
112 |
dev-python/numpy[${PYTHON_USEDEP}] |
113 |
dev-python/setuptools[${PYTHON_USEDEP}]" |
114 |
|
115 |
S="${WORKDIR}/PythonPackages" |
116 |
|
117 |
OO_DIRS="DerApproximator FuncDesigner OpenOpt SpaceFuncs" |
118 |
|
119 |
python_prepare() { |
120 |
# reorganize SpaceFuncs |
121 |
pushd SpaceFuncs > /dev/null |
122 |
mkdir SpaceFuncs |
123 |
cp __version__.py SpaceFuncs || die |
124 |
mv SpaceFuncs.py __init__.py kernel SpaceFuncs || die |
125 |
popd > /dev/null |
126 |
local d |
127 |
for d in ${OO_DIRS}; do |
128 |
pushd ${d} > /dev/null |
129 |
find . -name "*COPYING*" -delete |
130 |
find . -type d -name examples -or -name tests -or -name doc \ |
131 |
-exec rm -r '{}' + |
132 |
distutils-r1_python_prepare |
133 |
popd > /dev/null |
134 |
done |
135 |
} |
136 |
|
137 |
src_prepare() { |
138 |
distutils-r1_src_prepare |
139 |
# move all examples and tests to ease installation in proper directory |
140 |
mkdir "${WORKDIR}/examples" |
141 |
local d e |
142 |
for d in ${OO_DIRS}; do |
143 |
mkdir "${WORKDIR}/examples/${d}" || die |
144 |
for e in $(find ${d} -type d -name examples -or -name tests -or -name doc); do |
145 |
mv ${e} "${WORKDIR}/examples/${d}/" || die |
146 |
done |
147 |
done |
148 |
} |
149 |
|
150 |
python_compile() { |
151 |
local d |
152 |
for d in ${OO_DIRS}; do |
153 |
pushd ${d} > /dev/null |
154 |
distutils-r1_python_compile |
155 |
popd > /dev/null |
156 |
done |
157 |
} |
158 |
|
159 |
python_test() { |
160 |
local d t oldpath=${PYTHONPATH} |
161 |
for d in ${OO_DIRS}; do |
162 |
PYTHONPATH="${BUILD_DIR}/${d}/build/lib:${PYTHONPATH}" |
163 |
done |
164 |
export PYTHONPATH |
165 |
cd "${WORKDIR}"/examples |
166 |
# limit the tests, other need more dependencies |
167 |
for t in \ |
168 |
DerApproximator/tests/t_check.py \ |
169 |
FuncDesigner/examples/sle1.py \ |
170 |
OpenOpt/examples/nlp_1.py \ |
171 |
SpaceFuncs/examples/triangle.py |
172 |
do |
173 |
"${PYTHON}" ${t} || die "test ${t} failed" |
174 |
done |
175 |
export PYTHONPATH=${oldpath} |
176 |
} |
177 |
|
178 |
python_install() { |
179 |
local d |
180 |
for d in ${OO_DIRS}; do |
181 |
pushd ${d} > /dev/null |
182 |
distutils-r1_python_install |
183 |
popd > /dev/null |
184 |
done |
185 |
use examples && EXAMPLES="${WORKDIR}"/examples |
186 |
} |