1 |
bicatali 09/01/15 10:22:07 |
2 |
|
3 |
Added: metadata.xml ChangeLog codetools-3.0.1.ebuild |
4 |
Log: |
5 |
Initial import |
6 |
(Portage version: 2.2_rc20/cvs/Linux 2.6.25-gentoo-r7 x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 dev-python/codetools/metadata.xml |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/codetools/metadata.xml?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/codetools/metadata.xml?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: metadata.xml |
15 |
=================================================================== |
16 |
<?xml version="1.0" encoding="UTF-8"?> |
17 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
18 |
<pkgmetadata> |
19 |
<herd>python</herd> |
20 |
<longdescription lang="en"> |
21 |
The CodeTools project from the Enthought Tool Suite |
22 |
includes packages that simplify meta-programming |
23 |
and help the programmer separate data from code in Python. This |
24 |
library contains classes that allow defining simple snippets, or |
25 |
"blocks", of Python code, analyze variable dependencies in the code |
26 |
block, and use these dependencies to construct or restrict an |
27 |
execution graph. These (restricted) code blocks can then be executed |
28 |
in any namespace. However, this project also provides a |
29 |
Traits-event-enhanced namespace, called a "context", which can be used |
30 |
in place of a vanilla namespace to allow actions to be performed |
31 |
whenever variables are assigned or retrieved from the namespace. This |
32 |
project is used as the foundation for the BlockCanvas project. |
33 |
</longdescription> |
34 |
</pkgmetadata> |
35 |
|
36 |
|
37 |
|
38 |
1.1 dev-python/codetools/ChangeLog |
39 |
|
40 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/codetools/ChangeLog?rev=1.1&view=markup |
41 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/codetools/ChangeLog?rev=1.1&content-type=text/plain |
42 |
|
43 |
Index: ChangeLog |
44 |
=================================================================== |
45 |
# ChangeLog for dev-python/codetools |
46 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
47 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/codetools/ChangeLog,v 1.1 2009/01/15 10:22:06 bicatali Exp $ |
48 |
|
49 |
*codetools-3.0.1 (15 Jan 2009) |
50 |
|
51 |
15 Jan 2009; Sébastien Fabbro <bicatali@g.o> +metadata.xml, |
52 |
+codetools-3.0.1.ebuild: |
53 |
Initial import |
54 |
|
55 |
|
56 |
|
57 |
|
58 |
1.1 dev-python/codetools/codetools-3.0.1.ebuild |
59 |
|
60 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/codetools/codetools-3.0.1.ebuild?rev=1.1&view=markup |
61 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/codetools/codetools-3.0.1.ebuild?rev=1.1&content-type=text/plain |
62 |
|
63 |
Index: codetools-3.0.1.ebuild |
64 |
=================================================================== |
65 |
# Copyright 1999-2009 Gentoo Foundation |
66 |
# Distributed under the terms of the GNU General Public License v2 |
67 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/codetools/codetools-3.0.1.ebuild,v 1.1 2009/01/15 10:22:07 bicatali Exp $ |
68 |
|
69 |
EAPI=2 |
70 |
inherit distutils |
71 |
|
72 |
MY_PN="CodeTools" |
73 |
MY_P="${MY_PN}-${PV}" |
74 |
DESCRIPTION="Enthought Tool Suite code analysis and execution tools" |
75 |
HOMEPAGE="http://code.enthought.com/projects/code_tools.php" |
76 |
SRC_URI="http://pypi.python.org/packages/source/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" |
77 |
|
78 |
IUSE="doc examples test" |
79 |
SLOT="0" |
80 |
KEYWORDS="~amd64 ~x86" |
81 |
LICENSE="BSD" |
82 |
|
83 |
RDEPEND=">=dev-python/numpy-1.1 |
84 |
dev-python/traits" |
85 |
DEPEND="dev-python/setuptools |
86 |
doc? ( dev-python/setupdocs ) |
87 |
test? ( >=dev-python/nose-0.10.3 |
88 |
dev-python/apptools |
89 |
dev-python/blockcanvas )" |
90 |
|
91 |
S="${WORKDIR}/${MY_P}" |
92 |
|
93 |
PYTHON_MODNAME="enthought" |
94 |
|
95 |
src_prepare() { |
96 |
sed -i -e "/self.run_command('build_docs')/d" setup.py || die |
97 |
} |
98 |
|
99 |
src_compile() { |
100 |
distutils_src_compile |
101 |
if use doc; then |
102 |
${python} setup.py build_docs --formats=html,pdf \ |
103 |
|| die "doc building failed" |
104 |
fi |
105 |
} |
106 |
|
107 |
src_test() { |
108 |
PYTHONPATH=build/lib ${python} setup.py test || die "tests failed" |
109 |
} |
110 |
|
111 |
src_install() { |
112 |
find "${S}" -name \*LICENSE.txt -delete |
113 |
distutils_src_install |
114 |
insinto /usr/share/doc/${PF} |
115 |
if use doc; then |
116 |
doins -r build/docs/html || die |
117 |
doins build/docs/latex/*.pdf || die |
118 |
fi |
119 |
if use examples; then |
120 |
doins -r examples || die |
121 |
fi |
122 |
} |