/[gentoo-alt]/trunk/prefix/dev-libs/libpcre/libpcre-6.6.ebuild
Gentoo

Contents of /trunk/prefix/dev-libs/libpcre/libpcre-6.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1381 - (show annotations) (download)
Thu Sep 7 21:31:57 2006 UTC (8 years ago) by grobian
File size: 1326 byte(s)
sync with main tree


1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-libs/libpcre/libpcre-6.6.ebuild,v 1.4 2006/06/22 17:11:06 grobian Exp $
4
5 EAPI="prefix"
6
7 inherit libtool flag-o-matic eutils
8
9 DESCRIPTION="Perl-compatible regular expression library"
10 HOMEPAGE="http://www.pcre.org/"
11 SRC_URI="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-${PV}.tar.bz2"
12
13 LICENSE="BSD"
14 SLOT="3"
15 KEYWORDS="~amd64 ~ppc-macos ~x86"
16 IUSE="doc"
17
18 DEPEND="dev-util/pkgconfig"
19 RDEPEND=""
20 S=${WORKDIR}/pcre-${PV}
21
22 src_unpack() {
23 unpack ${A}
24 cd "${S}"
25 epatch "${FILESDIR}"/pcre-6.3-uclibc-tuple.patch
26 epatch "${FILESDIR}"/pcre-6.4-link.patch
27
28 # TODO: Fix this. Use -fPIC just for the shared objects.
29 # position-independent code must used for all shared objects.
30 ewarn "TODO: Fix this bad -fPIC handling"
31 append-flags -fPIC
32
33 elibtoolize
34 }
35
36 src_compile() {
37 # How about the following flags?
38 # --enable-unicode-properties enable Unicode properties support
39 # --disable-stack-for-recursion disable use of stack recursion when matching
40 econf --enable-utf8 || die
41 emake all libpcrecpp.la || die
42 }
43
44 src_install() {
45 make DESTDIR="${EDEST}" install || die
46
47 dodoc AUTHORS INSTALL NON-UNIX-USE
48 dodoc doc/*.txt doc/Tech.Notes
49 use doc && dohtml doc/html/*
50 }

  ViewVC Help
Powered by ViewVC 1.1.20