/[gentoo-x86]/dev-python/xlrd/xlrd-0.9.2.ebuild
Gentoo

Contents of /dev-python/xlrd/xlrd-0.9.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (hide annotations) (download)
Mon Mar 3 23:48:29 2014 UTC (5 years, 1 month ago) by pacho
Branch: MAIN
Changes since 1.5: +2 -2 lines
amd64 stable, bug #495644

(Portage version: 2.2.8-r1/cvs/Linux x86_64, RepoMan options: --include-arches="amd64", signed Manifest commit with key A188FBD4)

1 phajdan.jr 1.5 # Copyright 1999-2014 Gentoo Foundation
2 patrick 1.1 # Distributed under the terms of the GNU General Public License v2
3 pacho 1.6 # $Header: /var/cvsroot/gentoo-x86/dev-python/xlrd/xlrd-0.9.2.ebuild,v 1.5 2014/02/24 00:37:56 phajdan.jr Exp $
4 patrick 1.1
5     EAPI="5"
6 pacho 1.4 PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} pypy2_0 )
7 patrick 1.1
8     inherit distutils-r1
9    
10     DESCRIPTION="Library for developers to extract data from Microsoft Excel (tm) spreadsheet files"
11     HOMEPAGE="http://pypi.python.org/pypi/xlrd"
12     SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
13    
14     LICENSE="BSD"
15     SLOT="0"
16 pacho 1.6 KEYWORDS="amd64 x86 ~ppc-aix ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
17 patrick 1.1 IUSE="doc examples"
18    
19     DEPEND=""
20     RDEPEND=""
21    
22     src_prepare() {
23     distutils-r1_src_prepare
24     # add shebang to runxlrd.py
25     sed -i -e '1i#!/usr/bin/encompdoc.html xlrd.htmlv python' scripts/runxlrd.py || die
26     }
27    
28     python_install_all() {
29 jlec 1.3 distutils-r1_python_install_all
30    
31 patrick 1.1 if use doc; then
32     dohtml ${PN}/doc/{compdoc.html,xlrd.html}
33     fi
34    
35     if use examples; then
36     docompress -x usr/share/doc/${P}/examples/
37     insinto usr/share/doc/${P}/examples
38     doins ${PN}/examples/*
39     fi
40     }

  ViewVC Help
Powered by ViewVC 1.1.20