# $Header: /magellan-cvs/smage/clearsilver/clearsilver-0.10.5-r2.smage2,v 1.1 2008/04/23 08:08:26 niro Exp $ PNAME="clearsilver" PVER="0.10.5" PBUILD="r2" PCATEGORIE="dev-libs" STATE="testing" DESCRIPTION="Clearsilver is a fast, powerful, and language-neutral HTML template system." HOMEPAGE="http://www.clearsilver.net/" DEPEND=">= dev-lang/python-2.5 >= dev-lang/perl-5.8.8" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" # include mbuild at last, to overwrite all build functions! sminclude mtools python perl mbuild SRC_URI=( http://www.clearsilver.net/downloads/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-lib64.patch ) src_prepare() { munpack ${SRCFILE} cd ${SRCDIR} # fix lib64 issues if [[ $(mlibdir) = lib64 ]] then mpatch ${PNAME}-${PVER}-lib64.patch || die #autoreconf --install --force || die autoconf --force || die fi } src_compile() { cd ${SRCDIR} mconfigure \ --enable-perl \ --with-perl=/usr/bin/perl \ --enable-python \ --with-python=/usr/bin/python \ --disable-apache \ --disable-ruby \ --disable-java \ --disable-csharp \ || die mmake || die }