blob: de565c93022bcebd7cb5782055b42f587e31f4d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/reportlab/reportlab-2.0.ebuild,v 1.5 2007/07/16 21:35:07 armin76 Exp $
#goofy tarball versioning
vmaj=${PV%%.*}
vmin=${PV##*.}
inherit python distutils
S=${WORKDIR}/${PN}
DESCRIPTION="Tools for generating printable PDF documents from any data source."
SRC_URI="http://www.reportlab.org/ftp/ReportLab_${vmaj}_${vmin}.tgz"
HOMEPAGE="http://www.reportlab.org/"
DEPEND=">=dev-lang/python-2.4.2
>=sys-libs/zlib-0.95
dev-python/imaging
>=sys-apps/sed-4
app-arch/tar"
IUSE=""
SLOT="0"
LICENSE="BSD"
KEYWORDS="alpha ~amd64 hppa ia64 ~ppc ~ppc64 sparc x86"
src_unpack() {
unpack ${A} || die
cd ${WORKDIR}
mv ${PN}_${vmaj}_${vmin}/${PN} . || die
cd ${S}
}
src_install() {
python_version
distutils_src_install
# docs
cd ${S}
dodoc README license.txt
insinto /usr/share/doc/${PF}
doins docs/*
}
pkg_postinst() {
ewarn "There have been changes to fonts and unicode in 2.0"
ewarn "make sure you understand them:"
ewarn "http://www.reportlab.org/whatsnew_2_0.html"
}
|