From: | "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-python/numpy: numpy-1.5.0-r2.ebuild |
Date: | Sat, 30 Oct 2010 00:07:41 |
Message-Id: | 20101030000732.C1DEE20051@flycatcher.gentoo.org |
1 | arfrever 10/10/30 00:07:32 |
2 | |
3 | Modified: numpy-1.5.0-r2.ebuild |
4 | Log: |
5 | Use DOCS. Use $(python_get_sitedir) instead of usr/lib/python*/site-packages. |
6 | |
7 | (Portage version: 2.2.0_alpha2_p1/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.4 dev-python/numpy/numpy-1.5.0-r2.ebuild |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/numpy/numpy-1.5.0-r2.ebuild?rev=1.4&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/numpy/numpy-1.5.0-r2.ebuild?rev=1.4&content-type=text/plain |
14 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/numpy/numpy-1.5.0-r2.ebuild?r1=1.3&r2=1.4 |
15 | |
16 | Index: numpy-1.5.0-r2.ebuild |
17 | =================================================================== |
18 | RCS file: /var/cvsroot/gentoo-x86/dev-python/numpy/numpy-1.5.0-r2.ebuild,v |
19 | retrieving revision 1.3 |
20 | retrieving revision 1.4 |
21 | diff -u -r1.3 -r1.4 |
22 | --- numpy-1.5.0-r2.ebuild 8 Oct 2010 08:32:48 -0000 1.3 |
23 | +++ numpy-1.5.0-r2.ebuild 30 Oct 2010 00:07:32 -0000 1.4 |
24 | @@ -1,6 +1,6 @@ |
25 | # Copyright 1999-2010 Gentoo Foundation |
26 | # Distributed under the terms of the GNU General Public License v2 |
27 | -# $Header: /var/cvsroot/gentoo-x86/dev-python/numpy/numpy-1.5.0-r2.ebuild,v 1.3 2010/10/08 08:32:48 leio Exp $ |
28 | +# $Header: /var/cvsroot/gentoo-x86/dev-python/numpy/numpy-1.5.0-r2.ebuild,v 1.4 2010/10/30 00:07:32 arfrever Exp $ |
29 | |
30 | EAPI="3" |
31 | PYTHON_DEPEND="*" |
32 | @@ -33,6 +33,8 @@ |
33 | |
34 | PYTHON_CFLAGS=("* + -fno-strict-aliasing") |
35 | |
36 | +DOCS="COMPATIBILITY DEV_README.txt THANKS.txt" |
37 | + |
38 | pkg_setup() { |
39 | python_pkg_setup |
40 | |
41 | @@ -133,11 +135,16 @@ |
42 | |
43 | src_install() { |
44 | distutils_src_install ${NUMPY_FCONFIG} |
45 | - dodoc THANKS.txt DEV_README.txt COMPATIBILITY |
46 | - rm -f "${ED}"usr/lib/python*/site-packages/numpy/*.txt || die |
47 | + |
48 | + delete_txt() { |
49 | + rm -f "${ED}"$(python_get_sitedir)/numpy/*.txt |
50 | + } |
51 | + python_execute_function -q delete_txt |
52 | + |
53 | docinto f2py |
54 | dodoc numpy/f2py/docs/*.txt || die "dodoc f2py failed" |
55 | doman numpy/f2py/f2py.1 || die "doman failed" |
56 | + |
57 | if use doc; then |
58 | insinto /usr/share/doc/${PF} |
59 | doins -r "${WORKDIR}"/html || die |