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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1166 - (show annotations) (download)
Sat Mar 25 22:08:50 2006 UTC (8 years, 5 months ago) by kito
File size: 1310 byte(s)
PREFIX->EPREFIX DEST->EDEST
1 # Copyright 1999-2005 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.3.ebuild,v 1.9 2005/08/24 00:01:18 vapier 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="alpha amd64 arm hppa ia64 m68k mips ppc ppc-macos ppc64 s390 sh sparc x86"
16 IUSE="doc"
17
18 DEPEND="dev-util/pkgconfig"
19
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
27 # TODO: Fix this. Use -fPIC just for the shared objects.
28 # position-independent code must used for all shared objects.
29 ewarn "TODO: Fix this bad -fPIC handling"
30 append-flags -fPIC
31 }
32
33 src_compile() {
34 # How about the following flags?
35 # --enable-unicode-properties enable Unicode properties support
36 # --disable-stack-for-recursion disable use of stack recursion when matching
37 econf --enable-utf8 || die
38 emake all libpcrecpp.la || die
39 }
40
41 src_install() {
42 make DESTDIR="${EDEST}" install || die
43
44 dodoc AUTHORS INSTALL NON-UNIX-USE
45 dodoc doc/*.txt doc/Tech.Notes
46 use doc && dohtml doc/html/*
47 }

  ViewVC Help
Powered by ViewVC 1.1.20