blob: 18fe9436ac36c7280126e574f99c659125a23f52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libpcre/libpcre-4.5.ebuild,v 1.11 2005/01/29 03:48:41 j4rg0n Exp $
inherit libtool flag-o-matic eutils gnuconfig
DESCRIPTION="Perl-compatible regular expression library"
HOMEPAGE="http://www.pcre.org/"
SRC_URI="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-${PV}.tar.bz2"
LICENSE="as-is"
SLOT="3"
KEYWORDS="x86 ~ppc sparc alpha arm hppa amd64 ia64 ~ppc64 s390 mips ppc-macos sh"
IUSE=""
DEPEND="virtual/libc"
S=${WORKDIR}/pcre-${PV}
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/pcre-4.4-uclibc-tuple.patch
epatch ${FILESDIR}/pcre-4.2-link.patch
use ppc-macos && epatch ${FILESDIR}/pcre-4.2-macos.patch
# position-independent code must used for all shared objects.
append-flags -fPIC
elibtoolize
gnuconfig_update
}
src_compile() {
econf --enable-utf8 || die
make || die
}
src_install() {
make DESTDIR=${D} install || die
dodoc AUTHORS INSTALL NON-UNIX-USE
dodoc doc/*.txt
dodoc doc/Tech.Notes
dohtml -r doc
}
|