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

(-)clearsilver.orig/clearsilver-0.10.5-r1.ebuild (-18 / +29 lines)
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
DEPEND_PYTHON="python? 2"
12
13
inherit eutils perl-app multilib autotools python
11
14
12
DESCRIPTION="Clearsilver is a fast, powerful, and language-neutral HTML template system."
15
DESCRIPTION="Clearsilver is a fast, powerful, and language-neutral HTML template system."
13
HOMEPAGE="http://www.clearsilver.net/"
16
HOMEPAGE="http://www.clearsilver.net/"
Lines 21-50 Link Here
21
DEPEND="python? ( dev-lang/python )
24
DEPEND="python? ( dev-lang/python )
22
	perl? ( dev-lang/perl )
25
	perl? ( dev-lang/perl )
23
	zlib? ( sys-libs/zlib )"
26
	zlib? ( sys-libs/zlib )"
24
	
27
25
RDEPEND=${DEPEND}
28
RDEPEND=${DEPEND}
26
DOCS="README INSTALL"
29
DOCS=( README INSTALL )
27
30
28
if use python ; then
31
if use python ; then
29
	DOCS="${DOCS} README.python"
32
	DOCS="${DOCS} README.python"
30
fi
33
fi
31
34
32
src_unpack() {
35
pkg_setup() {
33
	unpack ${A}
36
	if use python; then
34
	cd "${S}"
37
		python_set_active_version 2
35
38
		python_pkg_setup
36
	epatch "${FILESDIR}"/${P}-perl_installdir.patch
39
	fi
40
}
37
41
42
src_prepare() {
38
	use zlib && epatch "${FILESDIR}"/${P}-libz.patch
43
	use zlib && epatch "${FILESDIR}"/${P}-libz.patch
39
44
	epatch "${FILESDIR}"/${P}-perl_installdir.patch \
40
	epatch "${FILESDIR}"/${P}-libdir.patch
45
		"${FILESDIR}"/${P}-libdir.patch
41
	sed -i -e "s:GENTOO_LIBDIR:$(get_libdir):" configure.in
46
	sed -i -e "s:GENTOO_LIBDIR:$(get_libdir):" configure.in || die
42
	eautoreconf || die "eautoreconf failed"
43
47
44
	# Fix for Gentoo/Freebsd
48
	# Fix for Gentoo/Freebsd
45
	[[ "${ARCH}" == FreeBSD ]] && touch ${S}/features.h ${S}/cgi/features.h
49
	[[ "${ARCH}" == FreeBSD ]] && touch ${S}/features.h ${S}/cgi/features.h
50
51
	eautoreconf
46
}
52
}
47
src_compile() {
53
54
src_configure() {
48
	econf \
55
	econf \
49
		$(use_enable perl) \
56
		$(use_enable perl) \
50
		$(use_with perl perl /usr/bin/perl) \
57
		$(use_with perl perl /usr/bin/perl) \
Lines 54-71 Link Here
54
		"--disable-apache" \
61
		"--disable-apache" \
55
		"--disable-ruby" \
62
		"--disable-ruby" \
56
		"--disable-java" \
63
		"--disable-java" \
57
		"--disable-csharp" \
64
		"--disable-csharp"
58
		|| die "./configure failed"
65
}
59
66
60
	emake || die "emake failed"
67
src_compile() {
68
	emake
61
}
69
}
62
70
63
src_install () {
71
src_install () {
64
72
65
	dodoc ${DOCS} || die "dodoc failed"
73
	dodoc ${DOCS[@]}
66
74
67
	if use perl ; then
75
	if use perl ; then
68
		fixlocalpod || die "fixlocalpod failed"
76
		fixlocalpod
69
	fi
77
	fi
70
       fi
78
       fi
79
       if use python; then
80
                python_convert_shebangs -r 2 "${ED}"
81
       fi
71
}
82
}

Return to bug 312179