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