Gentoo Archives: gentoo-commits

From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/pastescript: ChangeLog pastescript-1.7.3.ebuild
Date: Thu, 01 Oct 2009 02:33:45
Message-Id: E1MtBUC-0001B2-Qd@stork.gentoo.org
1 arfrever 09/10/01 02:33:40
2
3 Modified: ChangeLog pastescript-1.7.3.ebuild
4 Log:
5 Set SUPPORT_PYTHON_ABIS. Delete "test" USE flag.
6 (Portage version: 14469-svn/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.7 dev-python/pastescript/ChangeLog
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pastescript/ChangeLog?rev=1.7&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pastescript/ChangeLog?rev=1.7&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pastescript/ChangeLog?r1=1.6&r2=1.7
14
15 Index: ChangeLog
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/dev-python/pastescript/ChangeLog,v
18 retrieving revision 1.6
19 retrieving revision 1.7
20 diff -u -r1.6 -r1.7
21 --- ChangeLog 26 Apr 2009 09:53:29 -0000 1.6
22 +++ ChangeLog 1 Oct 2009 02:33:40 -0000 1.7
23 @@ -1,6 +1,10 @@
24 # ChangeLog for dev-python/pastescript
25 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
26 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pastescript/ChangeLog,v 1.6 2009/04/26 09:53:29 patrick Exp $
27 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pastescript/ChangeLog,v 1.7 2009/10/01 02:33:40 arfrever Exp $
28 +
29 + 01 Oct 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
30 + pastescript-1.7.3.ebuild:
31 + Set SUPPORT_PYTHON_ABIS. Delete "test" USE flag.
32
33 *pastescript-1.7.3 (26 Apr 2009)
34
35
36
37
38 1.2 dev-python/pastescript/pastescript-1.7.3.ebuild
39
40 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pastescript/pastescript-1.7.3.ebuild?rev=1.2&view=markup
41 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pastescript/pastescript-1.7.3.ebuild?rev=1.2&content-type=text/plain
42 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pastescript/pastescript-1.7.3.ebuild?r1=1.1&r2=1.2
43
44 Index: pastescript-1.7.3.ebuild
45 ===================================================================
46 RCS file: /var/cvsroot/gentoo-x86/dev-python/pastescript/pastescript-1.7.3.ebuild,v
47 retrieving revision 1.1
48 retrieving revision 1.2
49 diff -u -r1.1 -r1.2
50 --- pastescript-1.7.3.ebuild 26 Apr 2009 09:53:29 -0000 1.1
51 +++ pastescript-1.7.3.ebuild 1 Oct 2009 02:33:40 -0000 1.2
52 @@ -1,57 +1,56 @@
53 # Copyright 1999-2009 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pastescript/pastescript-1.7.3.ebuild,v 1.1 2009/04/26 09:53:29 patrick Exp $
56 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pastescript/pastescript-1.7.3.ebuild,v 1.2 2009/10/01 02:33:40 arfrever Exp $
57
58 -NEED_PYTHON=2.4
59 +EAPI="2"
60 +SUPPORT_PYTHON_ABIS="1"
61
62 inherit distutils
63
64 -KEYWORDS="~amd64 ~x86"
65 -
66 -MY_PN=PasteScript
67 -MY_P=${MY_PN}-${PV}
68 +MY_PN="PasteScript"
69 +MY_P="${MY_PN}-${PV}"
70
71 DESCRIPTION="A pluggable command-line frontend, including commands to setup package file layouts"
72 HOMEPAGE="http://pythonpaste.org/script/"
73 SRC_URI="http://cheeseshop.python.org/packages/source/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
74 +
75 LICENSE="MIT"
76 SLOT="0"
77 -IUSE="doc test"
78 +KEYWORDS="~amd64 ~x86"
79 +IUSE="doc"
80 +#IUSE="doc test"
81
82 RDEPEND="dev-python/paste
83 dev-python/pastedeploy
84 dev-python/cheetah"
85 DEPEND="${RDEPEND}
86 dev-python/setuptools
87 - doc? ( dev-python/buildutils dev-python/pygments dev-python/pudge )
88 - test? ( dev-python/nose )"
89 + doc? ( dev-python/buildutils dev-python/pygments dev-python/pudge )"
90 +# test? ( dev-python/nose )
91 +RESTRICT_PYTHON_ABIS="3.*"
92
93 -# The tests are currently broken, needs further investigation
94 -RESTRICT=test
95 +# Tests are broken.
96 +RESTRICT="test"
97
98 S="${WORKDIR}/${MY_P}"
99 PYTHON_MODNAME="paste/script"
100
101 src_compile() {
102 distutils_src_compile
103 - if use doc ; then
104 + if use doc; then
105 einfo "Generating docs as requested..."
106 PYTHONPATH=. "${python}" setup.py pudge || die "generating docs failed"
107 fi
108 }
109
110 +src_test() {
111 + testing() {
112 + PYTHONPATH="build-${PYTHON_ABI}/lib" nosetests-${PYTHON_ABI}
113 + }
114 + python_execute_function testing
115 +}
116 +
117 src_install() {
118 distutils_src_install
119 use doc && dohtml -r docs/html/*
120 }
121 -
122 -src_test() {
123 - # Tests can't import paste from site-packages
124 - # so we copy them over.
125 - # The files that will be installed are already copied to build/lib
126 - # so this shouldn't generate any collisions.
127 - distutils_python_version
128 - cp -pPR /usr/$(get_libdir)/python${PYVER}/site-packages/paste/* paste/
129 -
130 - PYTHONPATH=. "${python}" setup.py nosetests || die "tests failed"
131 -}