blob: 6b96d9079b4b4811a0b1e5eefcf98f535955f69d (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/clientform/clientform-0.2.6.ebuild,v 1.1 2007/03/25 19:37:05 lucass Exp $
inherit distutils
MY_P="ClientForm-${PV}"
DESCRIPTION="Parse, fill out, and return HTML forms on the client side"
HOMEPAGE="http://wwwsearch.sourceforge.net/ClientForm/"
SRC_URI="http://wwwsearch.sourceforge.net/ClientForm/src/${MY_P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~ia64 ~ppc ~x86"
IUSE="examples"
S="${WORKDIR}/${MY_P}"
DOCS="*.txt"
src_unpack() {
unpack ${A}
cd "${S}"
# use distutils instead of setuptools
sed -i \
-e 's/not hasattr(sys, "version_info")/1/' \
setup.py || die "sed failed"
}
src_test() {
${python} test.py || die "test.py failed"
}
src_install() {
# remove to prevent distutils_src_install from installing it
dohtml *.html
rm README.html*
distutils_src_install
if use examples; then
insinto /usr/share/doc/${PF}
doins -r examples
fi
}
|