diff options
author | 2008-03-01 15:45:01 +0000 | |
---|---|---|
committer | 2008-03-01 15:45:01 +0000 | |
commit | 07908d17e56857e36740d69cab55474ff05c3907 (patch) | |
tree | aed9393ac8a44491a32f614751e7720b0312fe2d /dev-python/simpleparse/simpleparse-2.1.0_alpha1.ebuild | |
parent | stable ppc, bug #209875 (diff) | |
download | gentoo-2-07908d17e56857e36740d69cab55474ff05c3907.tar.gz gentoo-2-07908d17e56857e36740d69cab55474ff05c3907.tar.bz2 gentoo-2-07908d17e56857e36740d69cab55474ff05c3907.zip |
Version bump (bug #207045).
(Portage version: 2.1.4.4)
Diffstat (limited to 'dev-python/simpleparse/simpleparse-2.1.0_alpha1.ebuild')
-rw-r--r-- | dev-python/simpleparse/simpleparse-2.1.0_alpha1.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/dev-python/simpleparse/simpleparse-2.1.0_alpha1.ebuild b/dev-python/simpleparse/simpleparse-2.1.0_alpha1.ebuild new file mode 100644 index 000000000000..06ee3fac4d85 --- /dev/null +++ b/dev-python/simpleparse/simpleparse-2.1.0_alpha1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/simpleparse/simpleparse-2.1.0_alpha1.ebuild,v 1.1 2008/03/01 15:45:01 dev-zero Exp $ + +inherit distutils + +MY_P="SimpleParse-${PV/_alpha/a}" + +DESCRIPTION="A Parser Generator for mxTextTools." +HOMEPAGE="http://simpleparse.sourceforge.net" +SRC_URI="mirror://sourceforge/simpleparse/${MY_P}.zip" +LICENSE="as-is eGenixPublic-1.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86" +IUSE="doc examples" + +RDEPEND="" +DEPEND="app-arch/unzip" + +S=${WORKDIR}/${MY_P} + +# Maintainer notes: +# * not calling distutils_src_unpack by intention (otherwise the ez_setup.py gets installed) +# * this package contains a patched copy of mxTextTools (from egenix-mx-base) but that copy +# can't be replaced by the original one (tests fail badly). + +src_unpack() { + unpack ${A} + cd "${S}" + + sed -i \ + -e '/data_files/d' \ + setup.py || die "sed failed" + + rm {examples,tests}/__init__.py +} + +src_install() { + distutils_src_install + + if use doc ; then + dohtml -r doc/* + fi + if use examples ; then + insinto /usr/share/doc/${PF} + doins -r examples + fi +} + +src_test() { + distutils_python_version + PYTHONPATH="$(ls -d build/lib.*):." "${python}" tests/test.py || die "tests failed" +} |