diff options
author | Michał Górny <mgorny@gentoo.org> | 2013-07-31 22:58:21 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2013-07-31 22:58:21 +0000 |
commit | 976e4e344fe7f15f856d455f7f925f0a5c999c49 (patch) | |
tree | 05690dab476ef983b731d2421e9c872fed2af1f0 /dev-python/graphy | |
parent | Update HOMEPAGE wrt bug #478980. (diff) | |
download | gentoo-2-976e4e344fe7f15f856d455f7f925f0a5c999c49.tar.gz gentoo-2-976e4e344fe7f15f856d455f7f925f0a5c999c49.tar.bz2 gentoo-2-976e4e344fe7f15f856d455f7f925f0a5c999c49.zip |
Migrate to distutils-r1, bug #479292.
(Portage version: 2.2.0_alpha191/cvs/Linux x86_64, signed Manifest commit with key 9627F456F9DA7643!)
Diffstat (limited to 'dev-python/graphy')
-rw-r--r-- | dev-python/graphy/ChangeLog | 10 | ||||
-rw-r--r-- | dev-python/graphy/graphy-1.0-r1.ebuild | 55 |
2 files changed, 62 insertions, 3 deletions
diff --git a/dev-python/graphy/ChangeLog b/dev-python/graphy/ChangeLog index f558d830a598..d171e26f9475 100644 --- a/dev-python/graphy/ChangeLog +++ b/dev-python/graphy/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-python/graphy -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/graphy/ChangeLog,v 1.3 2012/06/16 07:43:36 pacho Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/graphy/ChangeLog,v 1.4 2013/07/31 22:58:21 mgorny Exp $ + +*graphy-1.0-r1 (31 Jul 2013) + + 31 Jul 2013; Michał Górny <mgorny@gentoo.org> +graphy-1.0-r1.ebuild: + Migrate to distutils-r1, bug #479292. 16 Jun 2012; Pacho Ramos <pacho@gentoo.org> metadata.xml: Drop maintainer as he is not able to maintain this anymore. @@ -13,4 +18,3 @@ 24 Dec 2009; Mounir Lamouri <volkmar@gentoo.org> +graphy-1.0.ebuild, +metadata.xml: Initial commit - diff --git a/dev-python/graphy/graphy-1.0-r1.ebuild b/dev-python/graphy/graphy-1.0-r1.ebuild new file mode 100644 index 000000000000..04938f2a6eaa --- /dev/null +++ b/dev-python/graphy/graphy-1.0-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/graphy/graphy-1.0-r1.ebuild,v 1.1 2013/07/31 22:58:21 mgorny Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python{2_5,2_6,2_7} pypy{1_9,2_0} ) + +inherit distutils-r1 + +MY_P=${PN}_${PV} + +DESCRIPTION="Simple Chart Library for Python" +HOMEPAGE="http://code.google.com/p/graphy/" +SRC_URI="http://${PN}.googlecode.com/files/${MY_P}.tar.bz2" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="examples" + +S=${WORKDIR}/${MY_P} + +python_prepare_all() { + # drop Python version (2.4) from shebangs + find -name '*.py' -exec sed -i -e '1s:python2\.4:python:' {} + \ + || die "shebang sed failed" + # clean up + find graphy/ -name '*.pyc' -delete || die + find graphy/ -name '.svn' -exec rm -rf {} + || die + + distutils-r1_python_prepare_all +} + +python_compile() { + : +} + +python_test() { + local PYTHONPATH + mkdir -p "${BUILD_DIR}"/lib || die + cp -r graphy "${BUILD_DIR}"/lib/ || die + "${PYTHON}" "${BUILD_DIR}"/lib/graphy/all_tests.py \ + || die "Tests fail with ${EPYTHON}" +} + +python_install() { + python_domodule graphy +} + +python_install_all() { + use examples && local EXAMPLES=( examples/. ) + + distutils-r1_python_install_all +} |