diff options
author | Mike Gilbert <floppym@gentoo.org> | 2013-06-08 16:03:05 +0000 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2013-06-08 16:03:05 +0000 |
commit | 8f65a190b6ca62071df7b36132c95bd85beceafe (patch) | |
tree | 36d330dd499350f36ec5041ab850088574a52db1 /dev-python/empy | |
parent | Version bump. Fix bug 472598. (diff) | |
download | gentoo-2-8f65a190b6ca62071df7b36132c95bd85beceafe.tar.gz gentoo-2-8f65a190b6ca62071df7b36132c95bd85beceafe.tar.bz2 gentoo-2-8f65a190b6ca62071df7b36132c95bd85beceafe.zip |
Convert to distutils-r1.
(Portage version: 2.2.0_alpha177/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)
Diffstat (limited to 'dev-python/empy')
-rw-r--r-- | dev-python/empy/ChangeLog | 10 | ||||
-rw-r--r-- | dev-python/empy/empy-3.3-r1.ebuild | 53 |
2 files changed, 60 insertions, 3 deletions
diff --git a/dev-python/empy/ChangeLog b/dev-python/empy/ChangeLog index 62dc5725b363..1a07883377d3 100644 --- a/dev-python/empy/ChangeLog +++ b/dev-python/empy/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-python/empy -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/empy/ChangeLog,v 1.15 2010/03/28 17:31:31 arfrever Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/empy/ChangeLog,v 1.16 2013/06/08 16:03:05 floppym Exp $ + +*empy-3.3-r1 (08 Jun 2013) + + 08 Jun 2013; Mike Gilbert <floppym@gentoo.org> +empy-3.3-r1.ebuild: + Convert to distutils-r1. 28 Mar 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> empy-3.3.ebuild: @@ -53,4 +58,3 @@ 23 Oct 2003; Rob Cakebread <pythonhead@gentoo.org> empy-3.2.ebuild: Initial commit. Thank you Chris Bainbridge <chrb@dcs.ed.ac.uk> (Bug #28274) - diff --git a/dev-python/empy/empy-3.3-r1.ebuild b/dev-python/empy/empy-3.3-r1.ebuild new file mode 100644 index 000000000000..8f57b9c4e75f --- /dev/null +++ b/dev-python/empy/empy-3.3-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/empy/empy-3.3-r1.ebuild,v 1.1 2013/06/08 16:03:05 floppym Exp $ + +EAPI="5" +PYTHON_COMPAT=( python{2_5,2_6,2_7} pypy{1_9,2_0} ) + +inherit distutils-r1 + +DESCRIPTION="A powerful and robust templating system for Python" +HOMEPAGE="http://www.alcyone.com/software/empy/" +SRC_URI="http://www.alcyone.com/software/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~ppc ~x86" +IUSE="doc" + +DEPEND="" +RDEPEND="" + +python_prepare_all() { + sed -e "s:/usr/local/bin/python:/usr/bin/python:g" -i em.py || die "sed failed" + distutils-r1_python_prepare_all +} + +python_test() { + "${PYTHON}" em.py sample.em | diff sample.bench - + if [[ ${PIPESTATUS[0]} -ne 0 || ${PIPESTATUS[1]} -ne 0 ]]; then + die "Testing failed with ${EPYTHON}" + fi +} + +python_install() { + distutils-r1_python_install + python_export PYTHON_SITEDIR + dosym "${PYTHON_SITEDIR}/em.py" /usr/bin/em.py-${EPYTHON} +} + +python_install_all() { + distutils-r1_python_install_all + dosym python-exec /usr/bin/em.py + + if use doc; then + dodir /usr/share/doc/"${PF}"/examples + insinto /usr/share/doc/"${PF}"/examples + doins sample.em sample.bench + #3.3 has the html in this funny place. Fix in later version: + dohtml doc/home/max/projects/empy/doc/em/* + dohtml doc/home/max/projects/empy/doc/em.html + dohtml doc/index.html + fi +} |