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-0.10.5-r1.ebuild (-14 / +22 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
inherit eutils perl-app multilib autotools python
11
13
12
DESCRIPTION="Clearsilver is a fast, powerful, and language-neutral HTML template system."
14
DESCRIPTION="Clearsilver is a fast, powerful, and language-neutral HTML template system."
13
HOMEPAGE="http://www.clearsilver.net/"
15
HOMEPAGE="http://www.clearsilver.net/"
Lines 18-25 Link Here
18
KEYWORDS="amd64 ppc ppc64 ~sparc x86 ~x86-fbsd"
20
KEYWORDS="amd64 ppc ppc64 ~sparc x86 ~x86-fbsd"
19
IUSE="perl python zlib"
21
IUSE="perl python zlib"
20
22
21
DEPEND="python? ( dev-lang/python )
23
DEPEND="perl? ( dev-lang/perl )
22
	perl? ( dev-lang/perl )
23
	zlib? ( sys-libs/zlib )"
24
	zlib? ( sys-libs/zlib )"
24
25
25
DOCS="README INSTALL"
26
DOCS="README INSTALL"
Lines 28-50 Link Here
28
	DOCS="${DOCS} README.python"
29
	DOCS="${DOCS} README.python"
29
fi
30
fi
30
31
31
src_unpack() {
32
src_prepare() {
32
	unpack ${A}
33
	cd "${S}"
34
35
	epatch "${FILESDIR}"/${P}-perl_installdir.patch
33
	epatch "${FILESDIR}"/${P}-perl_installdir.patch
36
34
37
	use zlib && epatch "${FILESDIR}"/${P}-libz.patch
35
	use zlib && epatch "${FILESDIR}"/${P}-libz.patch
38
36
39
	epatch "${FILESDIR}"/${P}-libdir.patch
37
	epatch "${FILESDIR}"/${P}-libdir.patch
40
	sed -i -e "s:GENTOO_LIBDIR:$(get_libdir):" configure.in
38
	sed -i -e "s:GENTOO_LIBDIR:$(get_libdir):" configure.in
39
40
	# heck to installed instance of ruby
41
	if [[ $(qlist dev-lang/ruby) ]]; then
42
		ewarn ""
43
		ewarn "YOU NEED TO REMOVE DEV-LANG/RUBY FROM THE SYSTEM."
44
		ewarn "LACK OF CURRENT SUPPORT OF RUBY RESULTS IN FAILURE OF INSTALLATION"
45
		ewarn ""
46
		die
47
	fi
41
	eautoreconf || die "eautoreconf failed"
48
	eautoreconf || die "eautoreconf failed"
42
49
43
	# Fix for Gentoo/Freebsd
50
	# Fix for Gentoo/Freebsd
44
	[[ "${ARCH}" == FreeBSD ]] && touch ${S}/features.h ${S}/cgi/features.h
51
	[[ "${ARCH}" == FreeBSD ]] && touch ${S}/features.h ${S}/cgi/features.h
45
}
52
}
46
53
47
src_compile() {
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
	make DESTDIR="${D}" install || die "make install failed"
72
	make DESTDIR="${D}" install
65
73
66
	dodoc ${DOCS} || die "dodoc failed"
74
	 dodoc ${DOCS}
67
75
68
	if use perl ; then
76
	if use perl ; then
69
		fixlocalpod || die "fixlocalpod failed"
77
		fixlocalpod
70
	fi
78
	fi
71
}
79
}

Return to bug 312179