Hi,

after switching to Python-2.7 an ebuild of myself fails.
I'm trying to write an ebuild for  dev-python/pyparsing-9999

My attemp fails with 'setup.py' not found.
The package is unpacked into
/var/tmp/portage/dev-python/pyparsing-9999/work/pyparsing-9999

This contains the subdirectories doc examples and src.
And the setup.py files is in src.

Many thanks for a hint,
Helmut.

Here my attempt:

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/pyparsing/
pyparsing-1.4.10.ebuild,v 1.1 2008/01/25 05:06:52 hawking Exp $

EAPI="3"
SUPPORT_PYTHON_ABIS="1"
inherit distutils eutils subversion

DESCRIPTION="pyparsing is an easy-to-use Python module for text 
parsing"
HOMEPAGE="http://pyparsing.wikispaces.com/";

ESVN_REPO_URI="https://pyparsing.svn.sourceforge.net/svnroot/
pyparsing/"
ESVN_PROJECT="${PN}"


LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
IUSE="doc examples"

S="${WORKDIR}/pyparsing-9999"


src-compile() {
      cd "${WORKDIR}/pyparsing-9999/src"
      distutils_src_compile
}

src_install() {
        cd "${WORKDIR}/pyparsing-9999/src"
        distutils_src_install

        dohtml HowToUsePyparsing.html
        dodoc CHANGES

        if use doc; then
                dohtml -r htmldoc/*
                insinto /usr/share/doc/${PF}
                doins docs/*.pdf
        fi

        if use examples; then
                insinto /usr/share/doc/${PF}
                doins -r examples
        fi
}


Reply via email to