# $Id$ PNAME="libpcre" PVER="8.42" PBUILD="r1" PCAT="dev-libs" DESCRIPTION="PCRE - Perl Compatible Regular Expressions." HOMEPAGE="http://www.pcre.org/" DEPEND=">= sys-libs/libstdc++-5.3" SRCFILE="${PNAME/lib/}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME/lib/}-${PVER}" sminclude mbuild SRC_URI=( https://ftp.pcre.org/pub/pcre/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd https://ftp.pcre.org/pub/pcre/ | grep '${PNAME/lib/}-' | highesttarball" src_compile() { cd ${SRCDIR} export CFLAGS="${CFLAGS} -fPIC" export CXXFLAGS="${CFLAGS}" mconfigure --enable-utf8 || die # does not like optimations > -j1 mmake -j1 || die }