summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2007-11-18 21:22:31 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2007-11-18 21:22:31 +0000
commitea967cff41ede4afd1b0bec5f84ab4018b79e567 (patch)
treecf2a7046741a8784693223705584e49239b9d5a8 /dev-libs/libpcre
parentInitial revision. (diff)
downloadgentoo-2-ea967cff41ede4afd1b0bec5f84ab4018b79e567.tar.gz
gentoo-2-ea967cff41ede4afd1b0bec5f84ab4018b79e567.tar.bz2
gentoo-2-ea967cff41ede4afd1b0bec5f84ab4018b79e567.zip
Add new ebuild, using EAPI=1. This version installs the documentation in the correct place, and more importantly adds a +cxx USE flag that allows to enable/disable the C++ bindings.
(Portage version: 2.1.3.19)
Diffstat (limited to 'dev-libs/libpcre')
-rw-r--r--dev-libs/libpcre/ChangeLog9
-rw-r--r--dev-libs/libpcre/files/digest-libpcre-7.4-r13
-rw-r--r--dev-libs/libpcre/libpcre-7.4-r1.ebuild52
3 files changed, 63 insertions, 1 deletions
diff --git a/dev-libs/libpcre/ChangeLog b/dev-libs/libpcre/ChangeLog
index 3d4a82daf21f..ab6b2018023d 100644
--- a/dev-libs/libpcre/ChangeLog
+++ b/dev-libs/libpcre/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-libs/libpcre
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libpcre/ChangeLog,v 1.114 2007/10/14 15:56:37 corsair Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libpcre/ChangeLog,v 1.115 2007/11/18 21:22:30 flameeyes Exp $
+
+*libpcre-7.4-r1 (18 Nov 2007)
+
+ 18 Nov 2007; Diego Pettenò <flameeyes@gentoo.org> +libpcre-7.4-r1.ebuild:
+ Add new ebuild, using EAPI=1. This version installs the documentation in the
+ correct place, and more importantly adds a +cxx USE flag that allows to
+ enable/disable the C++ bindings.
14 Oct 2007; Markus Rothe <corsair@gentoo.org> libpcre-7.3-r1.ebuild:
Stable on ppc64; bug #195416
diff --git a/dev-libs/libpcre/files/digest-libpcre-7.4-r1 b/dev-libs/libpcre/files/digest-libpcre-7.4-r1
new file mode 100644
index 000000000000..34b676e3fb78
--- /dev/null
+++ b/dev-libs/libpcre/files/digest-libpcre-7.4-r1
@@ -0,0 +1,3 @@
+MD5 7d05b4fb088ffa6fcf704e36ebb427f9 pcre-7.4.tar.bz2 783044
+RMD160 42bc33e5592c23c7eb337f8fcfab77fb290aed61 pcre-7.4.tar.bz2 783044
+SHA256 a5fb383fcc6d35e694950d203f9d7ef525165854dd4ac2c269e20e57a0d0b3e5 pcre-7.4.tar.bz2 783044
diff --git a/dev-libs/libpcre/libpcre-7.4-r1.ebuild b/dev-libs/libpcre/libpcre-7.4-r1.ebuild
new file mode 100644
index 000000000000..09a599b1d75f
--- /dev/null
+++ b/dev-libs/libpcre/libpcre-7.4-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libpcre/libpcre-7.4-r1.ebuild,v 1.1 2007/11/18 21:22:31 flameeyes Exp $
+
+EAPI=1
+
+inherit libtool eutils
+
+MY_P="pcre-${PV}"
+
+DESCRIPTION="Perl-compatible regular expression library"
+HOMEPAGE="http://www.pcre.org/"
+SRC_URI="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/${MY_P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="3"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+IUSE="doc unicode +cxx"
+
+DEPEND="dev-util/pkgconfig"
+RDEPEND=""
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ elibtoolize
+}
+
+src_compile() {
+ if use unicode; then
+ myconf="--enable-utf8 --enable-unicode-properties"
+ fi
+ myconf="${myconf} --with-match-limit-recursion=8192"
+ # Enable building of static libs too - grep and others
+ # depend on them being built: bug 164099
+ econf ${myconf} \
+ $(use_enable cxx cpp) \
+ --enable-static \
+ --htmldir=/usr/share/doc/${PF}/html \
+ --docdir=/usr/share/doc/${PF} \
+ || die "econf failed"
+ emake all || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+
+ dodoc doc/*.txt AUTHORS
+ use doc && dohtml doc/html/*
+}