summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Pawlik <none@none>2012-02-26 13:41:28 +0100
committerKrzysztof Pawlik <none@none>2012-02-26 13:41:28 +0100
commit5430babe6ba7f3f6d2408e9820a6c7d0f349ff70 (patch)
tree2bdd5140eedba1feb52c153c38680906abacd675 /dev-python/xlwt/xlwt-0.7.2-r256.ebuild
parentAdd ebuilds testing python-distutils-ng.eclass. (diff)
downloadnelchael-5430babe6ba7f3f6d2408e9820a6c7d0f349ff70.tar.gz
nelchael-5430babe6ba7f3f6d2408e9820a6c7d0f349ff70.tar.bz2
nelchael-5430babe6ba7f3f6d2408e9820a6c7d0f349ff70.zip
Add ebuilds testing python-distutils-ng.eclass.
(Portage version: 2.1.10.49/hg/Linux x86_64, signed Manifest commit with key 0xF6A80E46)
Diffstat (limited to 'dev-python/xlwt/xlwt-0.7.2-r256.ebuild')
-rw-r--r--dev-python/xlwt/xlwt-0.7.2-r256.ebuild66
1 files changed, 66 insertions, 0 deletions
diff --git a/dev-python/xlwt/xlwt-0.7.2-r256.ebuild b/dev-python/xlwt/xlwt-0.7.2-r256.ebuild
new file mode 100644
index 0000000..0616d5e
--- /dev/null
+++ b/dev-python/xlwt/xlwt-0.7.2-r256.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header$
+
+EAPI="4"
+
+#USE_PYTHON="python25 python26 python27"
+PYTHON_OPTIONAL="no"
+
+inherit python-distutils-ng
+
+DESCRIPTION="Python library to create spreadsheet files compatible with Excel"
+HOMEPAGE="http://pypi.python.org/pypi/xlwt"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc-aix ~hppa-hpux ~ia64-hpux ~x86-interix ~x86-linux ~sparc-solaris ~x86-solaris"
+IUSE="examples"
+
+DEPEND=""
+RDEPEND=""
+
+python_unpack_all() {
+ : echo " ### python_unpack_all ### (${@}) PYTHON=${PYTHON}"
+ unpack ${A} # Not needed
+}
+
+python_prepare_all() {
+ : echo " ### python_prepare_all ### (${@}) PYTHON=${PYTHON}"
+ sed -i \
+ -e "s,'doc,# 'doc,g" \
+ -e "s,'exa,# 'exa,g" \
+ setup.py || die
+}
+
+python_prepare() {
+ : echo " ### python_prepare ### (${@}) PYTHON=${PYTHON}"
+}
+
+python_configure() {
+ : echo " ### python_configure ### (${@}) PYTHON=${PYTHON}"
+}
+
+python_compile() {
+ : echo " ### python_compile ### (${@}) PYTHON=${PYTHON}"
+ ${PYTHON} setup.py build || die
+}
+
+python_test() {
+ : echo " ### python_test ### (${@}) PYTHON=${PYTHON}"
+}
+
+python_install() {
+ : echo " ### python_install ### (${@}) PYTHON=${PYTHON}"
+ ${PYTHON} setup.py install --no-compile --root="${D}/" || die
+}
+
+python_install_all() {
+ : echo " ### python_install_all ### (${@}) PYTHON=${PYTHON}"
+ dohtml xlwt/doc/*.html
+ if use examples; then
+ insinto "/usr/share/doc/${PF}"
+ doins -r xlwt/examples
+ fi
+}