Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Side by Side Diff: dev-libs/libpcre/libpcre-8.12.ebuild

Issue 6793049: dev-libs/libpcre: import 8.12 version from main tree. (Closed) Base URL: http://git.chromium.org/git/portage-stable.git@master
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 1999-2011 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.6 20 11/04/05 05:16:42 maekke Exp $
4
5 EAPI=2
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}.ta r.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"
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 dev-util/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 pkgco nfig files failed"
36 elibtoolize
37 }
38
39 src_configure() {
40 econf --with-match-limit-recursion=$(use recursion-limit && echo 8192 || echo MATCH_LIMIT) \
41 $(use_enable unicode utf8) $(use_enable unicode unicode-properti es) \
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=/usr/share/doc/${PF}/html \
48 --docdir=/usr/share/doc/${PF} \
49 || die "econf failed"
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 remova l failed"
56 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698