/[gentoo-x86]/dev-python/xlwt/xlwt-1.0.0.ebuild
Gentoo

Contents of /dev-python/xlwt/xlwt-1.0.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Sun Jun 21 10:43:10 2015 UTC (4 years, 8 months ago) by maekke
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
add ~arm, bug #549148

(Portage version: 2.2.20/cvs/Linux x86_64, RepoMan options: --include-arches="arm", signed Manifest commit with key 072AD062)

1 idella4 1.1 # Copyright 1999-2015 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 maekke 1.4 # $Header: /var/cvsroot/gentoo-x86/dev-python/xlwt/xlwt-1.0.0.ebuild,v 1.3 2015/06/16 07:21:09 jlec Exp $
4 idella4 1.1
5     EAPI=5
6     PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
7    
8     inherit distutils-r1
9    
10     DESCRIPTION="Python library to create spreadsheet files compatible with Excel"
11     HOMEPAGE="http://pypi.python.org/pypi/xlwt"
12     SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
13    
14     LICENSE="BSD"
15     SLOT="0"
16 maekke 1.4 KEYWORDS="~amd64 ~arm ~ppc64 ~x86 ~amd64-linux ~x86-linux"
17 idella4 1.1 IUSE="doc examples test"
18    
19 jlec 1.3 DEPEND="
20     dev-python/setuptools[${PYTHON_USEDEP}]
21     doc? (
22     >=dev-python/sphinx-1.3.1[${PYTHON_USEDEP}]
23     dev-python/pkginfo[${PYTHON_USEDEP}]
24     )
25 idella4 1.1 test? ( dev-python/nose[${PYTHON_USEDEP}] )"
26    
27     # Prevent d'loading in the doc build
28     PATCHES=( "${FILESDIR}"/docbuild.patch )
29    
30     python_prepare_all() {
31     # Don't install documentation and examples in site-packages directories.
32     sed -e "/package_data/d" -i setup.py || die
33    
34     distutils-r1_python_prepare_all
35     }
36    
37     python_compile_all() {
38     use doc && emake -C docs html
39     }
40    
41     python_test() {
42     nosetests tests || die "tests failed under ${EPYTHON}}"
43     }
44    
45     python_install_all() {
46     use doc && local HTML_DOCS=( docs/_build/html/. )
47     use examples && local EXAMPLES=( examples/. )
48     distutils-r1_python_install_all
49     }

  ViewVC Help
Powered by ViewVC 1.1.20