diff options
author | Mounir Lamouri <volkmar@gentoo.org> | 2009-12-24 12:50:28 +0000 |
---|---|---|
committer | Mounir Lamouri <volkmar@gentoo.org> | 2009-12-24 12:50:28 +0000 |
commit | 2c135e94146b7b200384c9b11412a273715eef78 (patch) | |
tree | 81d038b129ee0a59d604c5d62f087bb8279a3c29 /dev-python/graphy | |
parent | Initial commit for the cs2009q1 scratchbox toolchain (diff) | |
download | gentoo-2-2c135e94146b7b200384c9b11412a273715eef78.tar.gz gentoo-2-2c135e94146b7b200384c9b11412a273715eef78.tar.bz2 gentoo-2-2c135e94146b7b200384c9b11412a273715eef78.zip |
Initial commit
(Portage version: 14755-svn/cvs/Linux ppc)
Diffstat (limited to 'dev-python/graphy')
-rw-r--r-- | dev-python/graphy/ChangeLog | 10 | ||||
-rw-r--r-- | dev-python/graphy/graphy-1.0.ebuild | 69 | ||||
-rw-r--r-- | dev-python/graphy/metadata.xml | 10 |
3 files changed, 89 insertions, 0 deletions
diff --git a/dev-python/graphy/ChangeLog b/dev-python/graphy/ChangeLog new file mode 100644 index 000000000000..0d7a9e6a2330 --- /dev/null +++ b/dev-python/graphy/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-python/graphy +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/graphy/ChangeLog,v 1.1 2009/12/24 12:50:28 volkmar Exp $ + +*graphy-1.0 (24 Dec 2009) + + 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.ebuild b/dev-python/graphy/graphy-1.0.ebuild new file mode 100644 index 000000000000..70fca2cbdf7c --- /dev/null +++ b/dev-python/graphy/graphy-1.0.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/graphy/graphy-1.0.ebuild,v 1.1 2009/12/24 12:50:28 volkmar Exp $ + +EAPI="2" + +SUPPORT_PYTHON_ABIS="1" + +inherit python + +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="~ppc ~x86" +IUSE="examples" + +DEPEND="" +RDEPEND="" + +RESTRICT_PYTHON_ABIS="3.*" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + python_convert_shebangs -r 2 . +} + +src_test() { + testing() { + PYTHONPATH=. "$(PYTHON)" ${PN}/all_tests.pyy || die "tests failed" + } + python_execute_function testing +} + +src_install() { + # we don't want to install tests, removing them + rm ${PN}/*_test.py ${PN}/all_tests.py || die "rm failed" + + # installing everything + installation() { + insinto $(python_get_sitedir)/${PN} + doins ${PN}/*.py || die "doins failed" + insinto $(python_get_sitedir)/${PN}/backends + doins ${PN}/backends/*.py || die "doins failed" + insinto $(python_get_sitedir)/${PN}/backends/google_chart_api + doins ${PN}/backends/google_chart_api/*.py || die "doins failed" + } + python_execute_function installation + + dodoc README || die "dodoc failed" + + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins examples/*.py || die "doins failed" + fi +} + +pkg_postinst() { + python_mod_optimize ${PN} +} + +pkg_postrm() { + python_mod_cleanup ${PN} +} diff --git a/dev-python/graphy/metadata.xml b/dev-python/graphy/metadata.xml new file mode 100644 index 000000000000..54a0c2342351 --- /dev/null +++ b/dev-python/graphy/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>volkmar@gentoo.org</email> + <name>Mounir Lamouri</name> + </maintainer> + <herd>no-herd</herd> +</pkgmetadata> + |