From: | "Sebastien Fabbro (bicatali)" <bicatali@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sci-libs/scikits_learn: ChangeLog scikits_learn-0.7.1.ebuild |
Date: | Wed, 30 Mar 2011 19:11:32 |
Message-Id: | 20110330191122.6838320054@flycatcher.gentoo.org |
1 | bicatali 11/03/30 19:11:22 |
2 | |
3 | Modified: ChangeLog |
4 | Added: scikits_learn-0.7.1.ebuild |
5 | Log: |
6 | Bump |
7 | |
8 | (Portage version: 2.1.9.45/cvs/Linux x86_64) |
9 | |
10 | Revision Changes Path |
11 | 1.3 sci-libs/scikits_learn/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/scikits_learn/ChangeLog?rev=1.3&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/scikits_learn/ChangeLog?rev=1.3&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/scikits_learn/ChangeLog?r1=1.2&r2=1.3 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/sci-libs/scikits_learn/ChangeLog,v |
20 | retrieving revision 1.2 |
21 | retrieving revision 1.3 |
22 | diff -u -r1.2 -r1.3 |
23 | --- ChangeLog 7 Mar 2011 20:13:26 -0000 1.2 |
24 | +++ ChangeLog 30 Mar 2011 19:11:22 -0000 1.3 |
25 | @@ -1,6 +1,12 @@ |
26 | # ChangeLog for sci-libs/scikits_learn |
27 | # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/sci-libs/scikits_learn/ChangeLog,v 1.2 2011/03/07 20:13:26 bicatali Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/sci-libs/scikits_learn/ChangeLog,v 1.3 2011/03/30 19:11:22 bicatali Exp $ |
30 | + |
31 | +*scikits_learn-0.7.1 (30 Mar 2011) |
32 | + |
33 | + 30 Mar 2011; Sébastien Fabbro <bicatali@g.o> |
34 | + +scikits_learn-0.7.1.ebuild: |
35 | + Bump |
36 | |
37 | *scikits_learn-0.7 (05 Mar 2011) |
38 | |
39 | |
40 | |
41 | |
42 | 1.1 sci-libs/scikits_learn/scikits_learn-0.7.1.ebuild |
43 | |
44 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/scikits_learn/scikits_learn-0.7.1.ebuild?rev=1.1&view=markup |
45 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/scikits_learn/scikits_learn-0.7.1.ebuild?rev=1.1&content-type=text/plain |
46 | |
47 | Index: scikits_learn-0.7.1.ebuild |
48 | =================================================================== |
49 | # Copyright 1999-2011 Gentoo Foundation |
50 | # Distributed under the terms of the GNU General Public License v2 |
51 | # $Header: /var/cvsroot/gentoo-x86/sci-libs/scikits_learn/scikits_learn-0.7.1.ebuild,v 1.1 2011/03/30 19:11:22 bicatali Exp $ |
52 | |
53 | EAPI="3" |
54 | |
55 | PYTHON_DEPEND="2" |
56 | SUPPORT_PYTHON_ABIS="1" |
57 | RESTRICT_PYTHON_ABIS="3.*" |
58 | DISTUTILS_SRC_TEST="setup.py" |
59 | |
60 | inherit distutils |
61 | |
62 | MY_P="${P/scikits_/scikits.}" |
63 | |
64 | DESCRIPTION="A set of python modules for machine learning and data mining" |
65 | HOMEPAGE="http://scikit-learn.sourceforge.net/" |
66 | SRC_URI="mirror://sourceforge/scikit-learn/${MY_P}.tar.gz" |
67 | |
68 | LICENSE="BSD" |
69 | SLOT="0" |
70 | KEYWORDS="~amd64 ~x86" |
71 | IUSE="doc examples" |
72 | |
73 | CDEPEND="sci-libs/scipy |
74 | >=sci-libs/libsvm-2.91" |
75 | RDEPEND="${CDEPEND} |
76 | sci-libs/scikits |
77 | dev-python/matplotlib" |
78 | DEPEND="${CDEPEND} |
79 | dev-python/cython |
80 | dev-python/setuptools |
81 | doc? ( dev-python/sphinx dev-python/matplotlib )" |
82 | |
83 | S="${WORKDIR}/${MY_P}" |
84 | |
85 | src_prepare() { |
86 | # use stock libsvm |
87 | cat <<-EOF >> site.cfg |
88 | [libsvm] |
89 | libraries=svm |
90 | library_dirs=${EPREFIX}/usr/$(get_libdir) |
91 | include_dirs=${EPREFIX}/usr/include/ |
92 | EOF |
93 | } |
94 | |
95 | src_compile() { |
96 | distutils_src_compile |
97 | if use doc; then |
98 | cd "${S}/doc" |
99 | export VARTEXFONTS="${T}"/fonts |
100 | MPLCONFIGDIR="${S}/build-$(PYTHON -f --ABI)" \ |
101 | PYTHONPATH=$(ls -d "${S}"/build-$(PYTHON -f --ABI)/lib*) \ |
102 | emake html latex || die |
103 | fi |
104 | } |
105 | |
106 | src_install() { |
107 | find "${S}" -name \*LICENSE.txt -delete |
108 | distutils_src_install |
109 | remove_scikits() { |
110 | rm -f "${ED}"$(python_get_sitedir)/scikits/__init__.py || die |
111 | } |
112 | python_execute_function -q remove_scikits |
113 | insinto /usr/share/doc/${PF} |
114 | if use doc; then |
115 | doins "${DISTDIR}"/scikits.learn.pdf || die |
116 | doins -r build/sphinx/html || die |
117 | fi |
118 | if use examples; then |
119 | doins -r examples || die |
120 | fi |
121 | } |