Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/oosuite: oosuite-0.39.ebuild ChangeLog oosuite-0.37.ebuild
Date: Mon, 09 Jul 2012 21:17:20
Message-Id: 20120709191440.1241C20063@flycatcher.gentoo.org
1 bicatali 12/07/09 19:14:40
2
3 Modified: ChangeLog
4 Added: oosuite-0.39.ebuild
5 Removed: oosuite-0.37.ebuild
6 Log:
7 Version bump. Keyword amd64-linux and x86-linux
8
9 (Portage version: 2.2.01.20757-prefix/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.3 dev-python/oosuite/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/oosuite/ChangeLog?rev=1.3&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/oosuite/ChangeLog?rev=1.3&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/oosuite/ChangeLog?r1=1.2&r2=1.3
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-python/oosuite/ChangeLog,v
21 retrieving revision 1.2
22 retrieving revision 1.3
23 diff -u -r1.2 -r1.3
24 --- ChangeLog 20 Apr 2012 18:21:29 -0000 1.2
25 +++ ChangeLog 9 Jul 2012 19:14:39 -0000 1.3
26 @@ -1,6 +1,12 @@
27 # ChangeLog for dev-python/oosuite
28 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-python/oosuite/ChangeLog,v 1.2 2012/04/20 18:21:29 bicatali Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-python/oosuite/ChangeLog,v 1.3 2012/07/09 19:14:39 bicatali Exp $
31 +
32 +*oosuite-0.39 (09 Jul 2012)
33 +
34 + 09 Jul 2012; Sébastien Fabbro <bicatali@g.o> +oosuite-0.39.ebuild,
35 + -oosuite-0.37.ebuild:
36 + Version bump. Keyword amd64-linux and x86-linux
37
38 *oosuite-0.38 (20 Apr 2012)
39
40 @@ -12,4 +18,3 @@
41 07 Jan 2012; Sébastien Fabbro <bicatali@g.o> +oosuite-0.37.ebuild,
42 +files/oosuite-0.37-no-init-msg.patch, +metadata.xml:
43 Initial import to the main tree
44 -
45
46
47
48 1.1 dev-python/oosuite/oosuite-0.39.ebuild
49
50 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/oosuite/oosuite-0.39.ebuild?rev=1.1&view=markup
51 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/oosuite/oosuite-0.39.ebuild?rev=1.1&content-type=text/plain
52
53 Index: oosuite-0.39.ebuild
54 ===================================================================
55 # Copyright 1999-2012 Gentoo Foundation
56 # Distributed under the terms of the GNU General Public License v2
57 # $Header: /var/cvsroot/gentoo-x86/dev-python/oosuite/oosuite-0.39.ebuild,v 1.1 2012/07/09 19:14:39 bicatali Exp $
58
59 EAPI=4
60
61 # python eclass cruft
62 SUPPORT_PYTHON_ABIS="1"
63 PYTHON_USE_WITH="tk?"
64 RESTRICT_PYTHON_ABIS="2.4"
65
66 inherit distutils eutils
67
68 MYPN="OOSuite"
69 MYPID="f/f3"
70
71 DESCRIPTION="OpenOpt suite of Python modules for numerical optimization"
72 HOMEPAGE="http://openopt.org/"
73 SRC_URI="http://openopt.org/images/${MYPID}/${MYPN}.zip -> ${MYPN}-${PV}.zip"
74
75 LICENSE="BSD"
76 SLOT="0"
77 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
78 IUSE="examples minimal tk"
79
80 RDEPEND="dev-python/numpy
81 !minimal? (
82 dev-python/cvxopt[glpk]
83 dev-python/lp_solve
84 dev-python/matplotlib
85 dev-python/setproctitle
86 sci-libs/nlopt[python]
87 sci-libs/scipy )"
88 DEPEND="app-arch/unzip
89 dev-python/numpy
90 dev-python/setuptools"
91
92 S="${WORKDIR}/PythonPackages"
93
94 src_prepare() {
95 #epatch "${FILESDIR}"/${PN}-0.37-no-init-msg.patch
96 OO_DIRS="DerApproximator FuncDesigner OpenOpt SpaceFuncs"
97 find . -name "*COPYING*" -delete
98 # move all examples and tests to ease installation in proper directory
99 mkdir "${WORKDIR}/examples"
100 local d e
101 for d in ${OO_DIRS}; do
102 mkdir "${WORKDIR}/examples/${d}"
103 for e in $(find ${d} -type d -name examples -or -name tests -or -name doc); do
104 mv ${e} "${WORKDIR}/examples/${d}/" || die
105 done
106 done
107 }
108
109 src_compile() {
110 local d
111 for d in ${OO_DIRS}; do
112 pushd ${d} > /dev/null
113 distutils_src_compile
114 popd > /dev/null
115 done
116 }
117
118 src_test() {
119 testing() {
120 local d t oldpath=${PYTHONPATH}
121 for d in ${OO_DIRS}; do
122 PYTHONPATH="${S}/${d}/build-${PYTHON_ABI}/lib:${PYTHONPATH}"
123 done
124 export PYTHONPATH
125 cd "${WORKDIR}"/examples
126 for t in \
127 DerApproximator/tests/t_check.py \
128 FuncDesigner/examples/sle1.py \
129 OpenOpt/examples/nlp_1.py \
130 SpaceFuncs/examples/triangle.py
131 do
132 "$(PYTHON)" ${t}
133 done
134 export PYTHONPATH=${oldpath}
135 }
136 python_execute_function testing
137 }
138
139 src_install() {
140 local d
141 for d in ${OO_DIRS}; do
142 pushd ${d} > /dev/null
143 distutils_src_install
144 popd > /dev/null
145 done
146 if use examples; then
147 insinto /usr/share/doc/${PF}
148 doins -r "${WORKDIR}"/examples
149 fi
150 }