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

Contents of /dev-libs/libpcre/libpcre-7.9-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (show annotations) (download)
Fri May 25 16:39:29 2012 UTC (2 years, 3 months ago) by vapier
Branch: MAIN
Changes since 1.13: +2 -2 lines
Add missing inherits, and drop other unused ones.

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-7.9-r1.ebuild,v 1.13 2012/05/04 18:35:45 jdhore Exp $
4
5 EAPI=2
6
7 inherit libtool eutils toolchain-funcs autotools multilib
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 SRC_URI="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/${MY_P}.tar.bz2"
15 else
16 MY_P="pcre-${PV/_rc/-RC}"
17 SRC_URI="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/Testing/${MY_P}.tar.bz2"
18 fi
19 LICENSE="BSD"
20 SLOT="3"
21 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
22 IUSE="bzip2 +cxx doc unicode zlib static-libs"
23
24 RDEPEND="bzip2? ( app-arch/bzip2 )
25 zlib? ( sys-libs/zlib )"
26 DEPEND="${RDEPEND}
27 virtual/pkgconfig
28 userland_GNU? ( >=sys-apps/findutils-4.4.0 )"
29
30 S=${WORKDIR}/${MY_P}
31
32 src_prepare() {
33 sed -i -e "s:libdir=@libdir@:libdir=/$(get_libdir):" libpcre.pc.in || die "Fixing libpcre pkgconfig files failed"
34 sed -i -e "s:-lpcre ::" libpcrecpp.pc.in || die "Fixing libpcrecpp pkgconfig files failed"
35 echo "Requires: libpcre = @PACKAGE_VERSION@" >> libpcrecpp.pc.in
36 epatch "${FILESDIR}"/libpcre-7.9-pkg-config.patch
37 eautoreconf
38 elibtoolize
39 }
40
41 src_configure() {
42 econf --with-match-limit-recursion=8192 \
43 $(use_enable unicode utf8) $(use_enable unicode unicode-properties) \
44 $(use_enable cxx cpp) \
45 $(use_enable zlib pcregrep-libz) \
46 $(use_enable bzip2 pcregrep-libbz2) \
47 $(use_enable static-libs static) \
48 --enable-shared \
49 --htmldir=/usr/share/doc/${PF}/html \
50 --docdir=/usr/share/doc/${PF} \
51 || die "econf failed"
52 }
53
54 src_install() {
55 emake DESTDIR="${D}" install || die "make install failed"
56
57 gen_usr_ldscript -a pcre
58
59 dodoc doc/*.txt AUTHORS
60 use doc && dohtml doc/html/*
61 find "${D}" -type f -name '*.la' -exec rm -rf '{}' '+' || die "la removal failed"
62 }
63
64 pkg_postinst() {
65 elog "This version of ${PN} has stopped installing .la files. This may"
66 elog "cause compilation failures in other packages. To fix this problem,"
67 elog "install dev-util/lafilefixer and run:"
68 elog "lafilefixer --justfixit"
69 }

  ViewVC Help
Powered by ViewVC 1.1.20