/[gentoo-x86]/dev-libs/libpcre/libpcre-8.12.ebuild
Gentoo

Contents of /dev-libs/libpcre/libpcre-8.12.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Fri May 4 18:35:45 2012 UTC (2 years, 4 months ago) by jdhore
Branch: MAIN
Changes since 1.8: +3 -3 lines
dev-util/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101/cvs/Linux i686)

1 # Copyright 1999-2012 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.8 2011/08/09 18:31:50 darkside Exp $
4
5 EAPI=3
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}.tar.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 ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
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 virtual/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 pkgconfig files failed"
36 elibtoolize
37 }
38
39 src_configure() {
40 [[ ${CHOST} == *-mint* ]] && CXXFLAGS="${CXXFLAGS} -D_GNU_SOURCE"
41 econf --with-match-limit-recursion=$(use recursion-limit && echo 8192 || echo MATCH_LIMIT) \
42 $(use_enable unicode utf8) $(use_enable unicode unicode-properties) \
43 $(use_enable cxx cpp) \
44 $(use_enable zlib pcregrep-libz) \
45 $(use_enable bzip2 pcregrep-libbz2) \
46 $(use_enable static-libs static) \
47 --enable-shared \
48 --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
49 --docdir="${EPREFIX}"/usr/share/doc/${PF}
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 removal failed"
56 }

  ViewVC Help
Powered by ViewVC 1.1.20