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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Dec 2 02:43:36 2012 UTC (19 months, 3 weeks ago) by flameeyes
Branch: MAIN
Version bump.

(Portage version: 2.2.0_alpha143/cvs/Linux x86_64, signed Manifest commit with key 1CD13C8AD4301342)

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.31.ebuild,v 1.2 2012/07/12 11:05:15 grobian Exp $
4
5 EAPI="4"
6
7 inherit eutils multilib libtool flag-o-matic toolchain-funcs
8
9 DESCRIPTION="Perl-compatible regular expression library"
10 HOMEPAGE="http://www.pcre.org/"
11 MY_P="pcre-${PV/_rc/-RC}"
12 if [[ ${PV} != *_rc* ]] ; then
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 SRC_URI="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/Testing/${MY_P}.tar.bz2"
18 fi
19
20 LICENSE="BSD"
21 SLOT="3"
22 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~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 +jit libedit pcre16 +readline +recursion-limit static-libs unicode zlib"
24 REQUIRED_USE="readline? ( !libedit )
25 libedit? ( !readline )"
26
27 RDEPEND="bzip2? ( app-arch/bzip2 )
28 zlib? ( sys-libs/zlib )
29 libedit? ( dev-libs/libedit )
30 readline? ( sys-libs/readline )"
31 DEPEND="${RDEPEND}
32 virtual/pkgconfig
33 userland_GNU? ( >=sys-apps/findutils-4.4.0 )"
34
35 S=${WORKDIR}/${MY_P}
36
37 src_prepare() {
38 sed -i -e "s:-lpcre ::" libpcrecpp.pc.in || die
39 elibtoolize
40 }
41
42 src_configure() {
43 [[ ${CHOST} == *-mint* ]] && append-cppflags -D_GNU_SOURCE
44 econf \
45 --with-match-limit-recursion=$(usex recursion-limit 8192 MATCH_LIMIT) \
46 $(use_enable bzip2 pcregrep-libbz2) \
47 $(use_enable cxx cpp) \
48 $(use_enable jit) $(use_enable jit pcregrep-jit) \
49 $(use_enable pcre16) \
50 $(use_enable libedit pcretest-libedit) \
51 $(use_enable readline pcretest-libreadline) \
52 $(use_enable static-libs static) \
53 $(use_enable unicode utf) $(use_enable unicode unicode-properties) \
54 $(use_enable zlib pcregrep-libz) \
55 --enable-pcre8 \
56 --enable-shared \
57 --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
58 --docdir="${EPREFIX}"/usr/share/doc/${PF}
59 }
60
61 src_install() {
62 emake DESTDIR="${D}" install
63 gen_usr_ldscript -a pcre
64 prune_libtool_files
65 }
66
67 pkg_preinst() {
68 preserve_old_lib /$(get_libdir)/libpcre.so.0
69 }
70
71 pkg_postinst() {
72 preserve_old_lib_notify /$(get_libdir)/libpcre.so.0
73 }

  ViewVC Help
Powered by ViewVC 1.1.20