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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Fri May 25 16:39:29 2012 UTC (3 years, 2 months ago) by vapier
Branch: MAIN
Changes since 1.10: +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-8.02.ebuild,v 1.10 2012/05/04 18:35:45 jdhore Exp $
4
5 EAPI=2
6
7 inherit eutils toolchain-funcs 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 x86 ~sparc-fbsd ~x86-fbsd"
22 IUSE="bzip2 +cxx 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 }
36
37 src_configure() {
38 econf --with-match-limit-recursion=8192 \
39 $(use_enable unicode utf8) $(use_enable unicode unicode-properties) \
40 $(use_enable cxx cpp) \
41 $(use_enable zlib pcregrep-libz) \
42 $(use_enable bzip2 pcregrep-libbz2) \
43 $(use_enable static-libs static) \
44 --enable-shared \
45 --htmldir=/usr/share/doc/${PF}/html \
46 --docdir=/usr/share/doc/${PF} \
47 || die "econf failed"
48 }
49
50 src_install() {
51 emake DESTDIR="${D}" install || die "make install failed"
52 gen_usr_ldscript -a pcre
53 find "${D}" -type f -name '*.la' -exec rm -rf '{}' '+' || die "la removal failed"
54 }
55
56 pkg_postinst() {
57 elog "This version of ${PN} has stopped installing .la files. This may"
58 elog "cause compilation failures in other packages. To fix this problem,"
59 elog "install dev-util/lafilefixer and run:"
60 elog "lafilefixer --justfixit"
61 }

  ViewVC Help
Powered by ViewVC 1.1.20