summaryrefslogtreecommitdiff
blob: 9745fde3c8fe673439726f10fb3c468f4069ac06 (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-2004 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.7 2004/06/25 01:31:10 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="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
}