OLD | NEW |
(Empty) | |
| 1 # Copyright 1999-2011 Gentoo Foundation |
| 2 # Distributed under the terms of the GNU General Public License v2 |
| 3 # $Header: /var/cvsroot/gentoo-x86/dev-libs/libpcre/libpcre-8.12.ebuild,v 1.6 20
11/04/05 05:16:42 maekke Exp $ |
| 4 |
| 5 EAPI=2 |
| 6 |
| 7 inherit libtool eutils toolchain-funcs |
| 8 |
| 9 DESCRIPTION="Perl-compatible regular expression library" |
| 10 HOMEPAGE="http://www.pcre.org/" |
| 11 if [[ ${PV} == ${PV/_rc} ]] |
| 12 then |
| 13 MY_P="pcre-${PV}" |
| 14 # Only the final releases are available here. |
| 15 SRC_URI="mirror://sourceforge/pcre/${MY_P}.tar.bz2 |
| 16 ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/${MY_P}.ta
r.bz2" |
| 17 else |
| 18 MY_P="pcre-${PV/_rc/-RC}" |
| 19 SRC_URI="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/Testing/$
{MY_P}.tar.bz2" |
| 20 fi |
| 21 LICENSE="BSD" |
| 22 SLOT="3" |
| 23 KEYWORDS="~alpha amd64 arm hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc x86
~sparc-fbsd ~x86-fbsd" |
| 24 IUSE="bzip2 +cxx unicode zlib static-libs +recursion-limit" |
| 25 |
| 26 RDEPEND="bzip2? ( app-arch/bzip2 ) |
| 27 zlib? ( sys-libs/zlib )" |
| 28 DEPEND="${RDEPEND} |
| 29 dev-util/pkgconfig |
| 30 userland_GNU? ( >=sys-apps/findutils-4.4.0 )" |
| 31 |
| 32 S=${WORKDIR}/${MY_P} |
| 33 |
| 34 src_prepare() { |
| 35 sed -i -e "s:-lpcre ::" libpcrecpp.pc.in || die "Fixing libpcrecpp pkgco
nfig files failed" |
| 36 elibtoolize |
| 37 } |
| 38 |
| 39 src_configure() { |
| 40 econf --with-match-limit-recursion=$(use recursion-limit && echo 8192 ||
echo MATCH_LIMIT) \ |
| 41 $(use_enable unicode utf8) $(use_enable unicode unicode-properti
es) \ |
| 42 $(use_enable cxx cpp) \ |
| 43 $(use_enable zlib pcregrep-libz) \ |
| 44 $(use_enable bzip2 pcregrep-libbz2) \ |
| 45 $(use_enable static-libs static) \ |
| 46 --enable-shared \ |
| 47 --htmldir=/usr/share/doc/${PF}/html \ |
| 48 --docdir=/usr/share/doc/${PF} \ |
| 49 || die "econf failed" |
| 50 } |
| 51 |
| 52 src_install() { |
| 53 emake DESTDIR="${D}" install || die "make install failed" |
| 54 gen_usr_ldscript -a pcre |
| 55 find "${D}" -type f -name '*.la' -exec rm -rf '{}' '+' || die "la remova
l failed" |
| 56 } |
OLD | NEW |