summaryrefslogtreecommitdiff
blob: b256fc5ed1c95c7d914f7aa257f59f8dfd0328f9 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/jonpy/jonpy-0.06.ebuild,v 1.5 2006/07/12 15:42:49 agriffis Exp $

inherit distutils

IUSE=""

HOMEPAGE="http://jonpy.sourceforge.net/"
DESCRIPTION="Powerful multi-threaded object-oriented CGI/FastCGI/mod_python/html-templating facilities"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"

SLOT="0"
LICENSE="as-is"
KEYWORDS="ia64 x86"

DEPEND=">=dev-lang/python-2.2"
RDEPEND="${DEPEND}"

src_install() {
	distutils_src_install

	insinto /usr/share/${P}/wt-examples
	doins ${S}/example/printenv.html ${S}/example/wt/printenv.html.py
	insinto /usr/share/${P}/wt-examples/cgi-bin
	doins ${S}/example/cgi-bin/wt.py

	for file in `ls ${S}/doc/`; do
		dohtml ${S}/doc/${file}
	done

	dodoc LICENCE README
}

pkg_postinst() {
	echo
	einfo "Examples for the 'wt' module have been installed in /usr/share/${P}/wt-examples"
	echo
}