Gentoo Archives: gentoo-dev

From: Helmut Jarausch <jarausch@××××××××××××××××.de>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] ebuild for python-dev package - need some help
Date: Wed, 22 Dec 2010 10:34:49
Message-Id: 1293014034.16176.8@numa-i
1 Hi,
2 I'd like to build a package dev-python/pyparsing-9999
3 This has worked early, but anyhow it stopped working after
4 upgrading to Python-2.7.1 previously.
5 The package is unpacked into
6 /var/tmp/portage/dev-python/pyparsing-9999/work/pyparsing-9999
7 which contains the folders
8 doc examples and src.
9 And setup.py is contained in src.
10 My attempt (see below) fails with
11 python2.7 setup.py build -b build-2.7
12 python2.7: can't open file 'setup.py': [Errno 2] No such file or
13 directory
14
15 Any help is very much appreciated,
16 Helmut.
17
18 Here my attempt:
19
20 EAPI="3"
21 SUPPORT_PYTHON_ABIS="1"
22 inherit distutils eutils subversion
23
24 DESCRIPTION="pyparsing is an easy-to-use Python module for text
25 parsing"
26 HOMEPAGE="http://pyparsing.wikispaces.com/"
27
28 ESVN_REPO_URI="https://pyparsing.svn.sourceforge.net/svnroot/
29 pyparsing/"
30 ESVN_PROJECT="${PN}"
31
32
33 LICENSE="MIT"
34 SLOT="0"
35 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
36 IUSE="doc examples"
37
38 S="${WORKDIR}/pyparsing-9999"
39
40
41 src-compile() {
42 cd "${WORKDIR}/pyparsing-9999/src"
43 distutils_src_compile
44 }
45
46 src_install() {
47 cd "${WORKDIR}/pyparsing-9999/src"
48 distutils_src_install
49
50 dohtml HowToUsePyparsing.html
51 dodoc CHANGES
52
53 if use doc; then
54 dohtml -r htmldoc/*
55 insinto /usr/share/doc/${PF}
56 doins docs/*.pdf
57 fi
58
59 if use examples; then
60 insinto /usr/share/doc/${PF}
61 doins -r examples
62 fi
63 }
64
65
66
67 --
68 Helmut Jarausch
69 Lehrstuhl fuer Numerische Mathematik
70 RWTH - Aachen University
71 D 52056 Aachen, Germany

Replies