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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Fri Jan 16 08:11:18 2015 UTC (3 years, 11 months ago) by idella4
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
rm old

(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)

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

  ViewVC Help
Powered by ViewVC 1.1.20