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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri May 4 18:35:45 2012 UTC (23 months, 2 weeks ago) by jdhore
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +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.13.ebuild,v 1.1 2011/09/01 06:26:43 radhermit Exp $
4
5 EAPI=4
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} ]] ; then
12 MY_P="pcre-${PV}"
13 # Only the final releases are available here.
14 SRC_URI="mirror://sourceforge/pcre/${MY_P}.tar.bz2
15 ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/${MY_P}.tar.bz2"
16 else
17 MY_P="pcre-${PV/_rc/-RC}"
18 SRC_URI="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/Testing/${MY_P}.tar.bz2"
19 fi
20 LICENSE="BSD"
21 SLOT="3"
22 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"
23 IUSE="bzip2 +cxx unicode zlib static-libs +recursion-limit"
24
25 RDEPEND="bzip2? ( app-arch/bzip2 )
26 zlib? ( sys-libs/zlib )"
27 DEPEND="${RDEPEND}
28 virtual/pkgconfig
29 userland_GNU? ( >=sys-apps/findutils-4.4.0 )"
30
31 S=${WORKDIR}/${MY_P}
32
33 src_prepare() {
34 sed -i -e "s:-lpcre ::" libpcrecpp.pc.in || die "Fixing libpcrecpp pkgconfig files failed"
35 elibtoolize
36 }
37
38 src_configure() {
39 [[ ${CHOST} == *-mint* ]] && CXXFLAGS="${CXXFLAGS} -D_GNU_SOURCE"
40 econf --with-match-limit-recursion=$(use recursion-limit && echo 8192 || echo MATCH_LIMIT) \
41 $(use_enable unicode utf8) $(use_enable unicode unicode-properties) \
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="${EPREFIX}"/usr/share/doc/${PF}/html \
48 --docdir="${EPREFIX}"/usr/share/doc/${PF}
49 }
50
51 src_install() {
52 emake DESTDIR="${D}" install
53 gen_usr_ldscript -a pcre
54 find "${D}" -type f -name '*.la' -exec rm -rf '{}' '+' || die "la removal failed"
55 }

  ViewVC Help
Powered by ViewVC 1.1.20