/[gentoo-x86]/dev-python/htmlgen/htmlgen-2.2.2-r1.ebuild
Gentoo

Contents of /dev-python/htmlgen/htmlgen-2.2.2-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Wed Apr 8 08:05:28 2015 UTC (5 years, 3 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +3 -3 lines
Drop old Python implementations

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/htmlgen/htmlgen-2.2.2-r1.ebuild,v 1.7 2014/03/18 16:43:28 ago Exp $
4
5 EAPI="5"
6 PYTHON_COMPAT=( python2_7 )
7
8 inherit eutils python-r1
9
10 MY_P="HTMLgen"
11 DESCRIPTION="HTMLgen - Python modules for the generation of HTML documents"
12 HOMEPAGE="http://starship.python.net/crew/friedrich/HTMLgen/html/main.html"
13 SRC_URI="http://starship.python.net/crew/friedrich/${MY_P}.tgz"
14
15 LICENSE="BSD"
16 SLOT="0"
17 KEYWORDS="amd64 ia64 ppc x86"
18 IUSE="doc"
19
20 DEPEND="${PYTHON_DEPS}
21 virtual/python-imaging[${PYTHON_USEDEP}]"
22 RDEPEND="${DEPEND}"
23 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
24
25 S="${WORKDIR}/${MY_P}"
26
27 src_prepare() {
28 epatch "${FILESDIR}/${P}-python-2.5.patch"
29 epatch "${FILESDIR}/${PN}-pillow.patch"
30 }
31
32 src_compile() {
33 return 0
34 }
35
36 src_install() {
37 # doing this manually because their build scripts suck
38 local files="HTMLgen.py HTMLcolors.py HTMLutil.py HTMLcalendar.py
39 barchart.py colorcube.py imgsize.py NavLinks.py Formtools.py
40 ImageH.py ImageFileH.py ImagePaletteH.py GifImagePluginH.py
41 JpegImagePluginH.py PngImagePluginH.py"
42
43 mkdir htmlgen || die
44 touch htmlgen/__init__.py || die
45 ln ${files} htmlgen/ || die
46 python_parallel_foreach_impl python_domodule htmlgen
47
48 if use doc; then
49 # fix the image locations in the docs
50 sed -i -e "s;../image/;image/;g" html/* || die "sed failed"
51 dohtml html/*
52 dohtml -r image
53 fi
54 dodoc README
55 }
56
57 pkg_postinst() {
58 ewarn "htmlgen now resides in its own subdirectory"
59 ewarn "so you need to do \"from htmlgen import HTMLgen\" instead of \"import HTMLgen\""
60 }

  ViewVC Help
Powered by ViewVC 1.1.20