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="3" |
|
|
11 |
|
12 |
PYTHON_DEPEND="*:2.6" |
13 |
|
14 |
inherit eutils perl-app multilib autotools 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-50
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} |
24 |
|
28 |
|
25 |
DOCS="README INSTALL" |
29 |
DOCS=( "README INSTALL" ) |
26 |
|
30 |
|
27 |
if use python ; then |
31 |
if use python ; then |
28 |
DOCS="${DOCS} README.python" |
32 |
DOCS="${DOCS} README.python" |
29 |
fi |
33 |
fi |
30 |
|
34 |
|
31 |
src_unpack() { |
35 |
pkg_setup() { |
32 |
unpack ${A} |
36 |
python_pkg_setup |
33 |
cd "${S}" |
37 |
} |
34 |
|
|
|
35 |
epatch "${FILESDIR}"/${P}-perl_installdir.patch |
36 |
|
38 |
|
|
|
39 |
src_prepare() { |
37 |
use zlib && epatch "${FILESDIR}"/${P}-libz.patch |
40 |
use zlib && epatch "${FILESDIR}"/${P}-libz.patch |
38 |
|
41 |
epatch "${FILESDIR}"/${P}-perl_installdir.patch \ |
39 |
epatch "${FILESDIR}"/${P}-libdir.patch |
42 |
"${FILESDIR}"/${P}-libdir.patch |
40 |
sed -i -e "s:GENTOO_LIBDIR:$(get_libdir):" configure.in |
43 |
sed -i -e "s:GENTOO_LIBDIR:$(get_libdir):" configure.in |
41 |
eautoreconf || die "eautoreconf failed" |
44 |
|
42 |
|
|
|
43 |
# Fix for Gentoo/Freebsd |
45 |
# Fix for Gentoo/Freebsd |
44 |
[[ "${ARCH}" == FreeBSD ]] && touch ${S}/features.h ${S}/cgi/features.h |
46 |
[[ "${ARCH}" == FreeBSD ]] && touch ${S}/features.h ${S}/cgi/features.h |
|
|
47 |
eautoreconf || die "eautoreconf failed" |
45 |
} |
48 |
} |
46 |
|
49 |
|
47 |
src_compile() { |
50 |
src_configure() { |
48 |
econf \ |
51 |
econf \ |
49 |
$(use_enable perl) \ |
52 |
$(use_enable perl) \ |
50 |
$(use_with perl perl /usr/bin/perl) \ |
53 |
$(use_with perl perl /usr/bin/perl) \ |
Lines 56-71
Link Here
|
56 |
"--disable-java" \ |
59 |
"--disable-java" \ |
57 |
"--disable-csharp" \ |
60 |
"--disable-csharp" \ |
58 |
|| die "./configure failed" |
61 |
|| die "./configure failed" |
|
|
62 |
} |
59 |
|
63 |
|
|
|
64 |
src_compile() { |
60 |
emake || die "emake failed" |
65 |
emake || die "emake failed" |
61 |
} |
66 |
} |
62 |
|
67 |
|
63 |
src_install () { |
68 |
src_install () { |
64 |
make DESTDIR="${D}" install || die "make install failed" |
69 |
make DESTDIR="${ED}" install || die "make install failed" |
65 |
|
70 |
|
66 |
dodoc ${DOCS} || die "dodoc failed" |
71 |
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" |
70 |
fi |
75 |
fi |
71 |
} |
76 |
python_convert_shebangs -r 2 "${ED}" |
|
|
77 |
} |