summaryrefslogtreecommitdiff
blob: 045fd82ede204cb3aadec1b5cb8151dbacca9a8b (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/htmlgen/htmlgen-2.2.2.ebuild,v 1.11 2006/04/01 15:01:28 agriffis Exp $

IUSE=""
MY_P="HTMLgen"
DESCRIPTION="HTMLgen - Python modules for the generation of HTML documents"
HOMEPAGE="http://starship.python.net/crew/friedrich/HTMLgen/html/main.html"
SRC_URI="http://starship.python.net/crew/friedrich/${MY_P}.tgz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~ia64 ppc x86"

DEPEND="virtual/python
		dev-python/imaging"

S="${WORKDIR}/${MY_P}"

src_compile() {
	make compileall || die "make failed"
}

src_install() {
	PYTHON_VER=$(python -V 2>&1 | sed -e 's:Python \([0-9].[0-9]\).*:\1:')
	# doing this manually because their build scripts suck
	dodir /usr/lib/python${PYTHON_VER}/site-packages
	insinto /usr/lib/python${PYTHON_VER}/site-packages
	doins HTMLgen.py HTMLcolors.py HTMLutil.py HTMLcalendar.py
	doins barchart.py colorcube.py imgsize.py NavLinks.py
	doins Formtools.py HTMLgen.pyc HTMLcolors.pyc HTMLutil.pyc
	doins HTMLcalendar.pyc barchart.pyc colorcube.pyc imgsize.pyc
	doins NavLinks.pyc Formtools.pyc ImageH.py ImageFileH.py
	doins ImagePaletteH.py GifImagePluginH.py JpegImagePluginH.py
	doins PngImagePluginH.py ImageH.pyc ImageFileH.pyc
	doins ImagePaletteH.pyc GifImagePluginH.pyc JpegImagePluginH.pyc
	doins PngImagePluginH.pyc
}