Gentoo Archives: gentoo-user

From: Helmut Jarausch <jarausch@××××××××××××××××.de>
To: gentoo-user@l.g.o
Subject: [gentoo-user] ebuild creation (python-2.7) - please help
Date: Sun, 12 Dec 2010 11:34:35
Message-Id: 1292153593.16590.0@numa-i
1 Hi,
2
3 after switching to Python-2.7 an ebuild of myself fails.
4 I'm trying to write an ebuild for dev-python/pyparsing-9999
5
6 My attemp fails with 'setup.py' not found.
7 The package is unpacked into
8 /var/tmp/portage/dev-python/pyparsing-9999/work/pyparsing-9999
9
10 This contains the subdirectories doc examples and src.
11 And the setup.py files is in src.
12
13 Many thanks for a hint,
14 Helmut.
15
16 Here my attempt:
17
18 # Copyright 1999-2008 Gentoo Foundation
19 # Distributed under the terms of the GNU General Public License v2
20 # $Header: /var/cvsroot/gentoo-x86/dev-python/pyparsing/
21 pyparsing-1.4.10.ebuild,v 1.1 2008/01/25 05:06:52 hawking Exp $
22
23 EAPI="3"
24 SUPPORT_PYTHON_ABIS="1"
25 inherit distutils eutils subversion
26
27 DESCRIPTION="pyparsing is an easy-to-use Python module for text
28 parsing"
29 HOMEPAGE="http://pyparsing.wikispaces.com/"
30
31 ESVN_REPO_URI="https://pyparsing.svn.sourceforge.net/svnroot/
32 pyparsing/"
33 ESVN_PROJECT="${PN}"
34
35
36 LICENSE="MIT"
37 SLOT="0"
38 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
39 IUSE="doc examples"
40
41 S="${WORKDIR}/pyparsing-9999"
42
43
44 src-compile() {
45 cd "${WORKDIR}/pyparsing-9999/src"
46 distutils_src_compile
47 }
48
49 src_install() {
50 cd "${WORKDIR}/pyparsing-9999/src"
51 distutils_src_install
52
53 dohtml HowToUsePyparsing.html
54 dodoc CHANGES
55
56 if use doc; then
57 dohtml -r htmldoc/*
58 insinto /usr/share/doc/${PF}
59 doins docs/*.pdf
60 fi
61
62 if use examples; then
63 insinto /usr/share/doc/${PF}
64 doins -r examples
65 fi
66 }

Replies

Subject Author
[gentoo-user] Re: ebuild creation (python-2.7) - please help walt <w41ter@×××××.com>