Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 312179 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-19 / +24 lines)
Line  Link Here
0
-- clearsilver-0.10.5-r1.ebuild
0
++ clearsilver-0.10.5-r1.ebuild
Lines 7-13 Link Here
7
#
7
#
8
# dju@gentoo.org, 4th July 2005
8
# dju@gentoo.org, 4th July 2005
9
9
10
inherit eutils perl-app multilib autotools
10
EAPI="4"
11
GENTOO_DEPEND_ON_PERL="no"
12
PYTHON_DEPEND="python? 2"
13
14
inherit autotools eutils multilib perl-app python
11
15
12
DESCRIPTION="Clearsilver is a fast, powerful, and language-neutral HTML template system."
16
DESCRIPTION="Clearsilver is a fast, powerful, and language-neutral HTML template system."
13
HOMEPAGE="http://www.clearsilver.net/"
17
HOMEPAGE="http://www.clearsilver.net/"
Lines 18-37 Link Here
18
KEYWORDS="amd64 ppc ppc64 ~sparc x86 ~x86-fbsd"
22
KEYWORDS="amd64 ppc ppc64 ~sparc x86 ~x86-fbsd"
19
IUSE="perl python zlib"
23
IUSE="perl python zlib"
20
24
21
DEPEND="python? ( dev-lang/python )
25
DEPEND="perl? ( dev-lang/perl )
22
	perl? ( dev-lang/perl )
23
	zlib? ( sys-libs/zlib )"
26
	zlib? ( sys-libs/zlib )"
27
RDEPEND="${DEPEND}"
28
29
DOCS=(README INSTALL)
24
30
25
DOCS="README INSTALL"
31
pkg_setup() {
32
	if use python; then
33
		DOCS+=(README.python)
26
34
27
if use python ; then
35
		python_set_active_version 2
28
	DOCS="${DOCS} README.python"
36
		python_pkg_setup
29
fi
37
	fi
30
38
}
31
src_unpack() {
32
	unpack ${A}
33
	cd "${S}"
34
39
40
src_prepare() {
35
	epatch "${FILESDIR}"/${P}-perl_installdir.patch
41
	epatch "${FILESDIR}"/${P}-perl_installdir.patch
36
42
37
	use zlib && epatch "${FILESDIR}"/${P}-libz.patch
43
	use zlib && epatch "${FILESDIR}"/${P}-libz.patch
Lines 44-50 Link Here
44
	[[ "${ARCH}" == FreeBSD ]] && touch ${S}/features.h ${S}/cgi/features.h
50
	[[ "${ARCH}" == FreeBSD ]] && touch ${S}/features.h ${S}/cgi/features.h
45
}
51
}
46
52
47
src_compile() {
53
src_configure() {
48
	econf \
54
	econf \
49
		$(use_enable perl) \
55
		$(use_enable perl) \
50
		$(use_with perl perl /usr/bin/perl) \
56
		$(use_with perl perl /usr/bin/perl) \
Lines 54-69 Link Here
54
		"--disable-apache" \
60
		"--disable-apache" \
55
		"--disable-ruby" \
61
		"--disable-ruby" \
56
		"--disable-java" \
62
		"--disable-java" \
57
		"--disable-csharp" \
63
		"--disable-csharp"
58
		|| die "./configure failed"
64
}
59
65
60
	emake || die "emake failed"
66
src_compile() {
67
	default
61
}
68
}
62
69
63
src_install () {
70
src_install () {
64
	make DESTDIR="${D}" install || die "make install failed"
71
	default
65
66
	dodoc ${DOCS} || die "dodoc failed"
67
72
68
	if use perl ; then
73
	if use perl ; then
69
		fixlocalpod || die "fixlocalpod failed"
74
		fixlocalpod || die "fixlocalpod failed"

Return to bug 312179