diff options
author | Peter Alfredsen <loki_val@gentoo.org> | 2009-10-19 15:47:13 +0000 |
---|---|---|
committer | Peter Alfredsen <loki_val@gentoo.org> | 2009-10-19 15:47:13 +0000 |
commit | 5d7f76889cfefcd3fe590128128749191b07a4cb (patch) | |
tree | 59ab499ffcc93d5c3df03391e928825058b47d8c /dev-libs/libpcre | |
parent | amd64 stable wrt #289745 (diff) | |
download | gentoo-2-5d7f76889cfefcd3fe590128128749191b07a4cb.tar.gz gentoo-2-5d7f76889cfefcd3fe590128128749191b07a4cb.tar.bz2 gentoo-2-5d7f76889cfefcd3fe590128128749191b07a4cb.zip |
Add 8.00. No keywords until I have tested it doesn't break stuff randomly.
(Portage version: 2.2_rc46/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/libpcre')
-rw-r--r-- | dev-libs/libpcre/ChangeLog | 7 | ||||
-rw-r--r-- | dev-libs/libpcre/libpcre-8.00.ebuild | 61 |
2 files changed, 67 insertions, 1 deletions
diff --git a/dev-libs/libpcre/ChangeLog b/dev-libs/libpcre/ChangeLog index 58122cefa51a..1f89d3682e79 100644 --- a/dev-libs/libpcre/ChangeLog +++ b/dev-libs/libpcre/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-libs/libpcre # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/libpcre/ChangeLog,v 1.160 2009/10/17 07:53:03 maekke Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libpcre/ChangeLog,v 1.161 2009/10/19 15:47:13 loki_val Exp $ + +*libpcre-8.00 (19 Oct 2009) + + 19 Oct 2009; Peter Alfredsen <loki_val@gentoo.org> +libpcre-8.00.ebuild: + Add 8.00. No keywords until I have tested it doesn't break stuff randomly. 17 Oct 2009; Markus Meier <maekke@gentoo.org> metadata.xml: remove static-libs description as it is global now diff --git a/dev-libs/libpcre/libpcre-8.00.ebuild b/dev-libs/libpcre/libpcre-8.00.ebuild new file mode 100644 index 000000000000..49af7ed28054 --- /dev/null +++ b/dev-libs/libpcre/libpcre-8.00.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libpcre/libpcre-8.00.ebuild,v 1.1 2009/10/19 15:47:13 loki_val Exp $ + +EAPI=2 + +inherit libtool eutils toolchain-funcs + +DESCRIPTION="Perl-compatible regular expression library" +HOMEPAGE="http://www.pcre.org/" +if [[ ${PV} == ${PV/_rc} ]] +then + MY_P="pcre-${PV}" + SRC_URI="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/${MY_P}.tar.bz2" +else + MY_P="pcre-${PV/_rc/-RC}" + SRC_URI="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/Testing/${MY_P}.tar.bz2" +fi +LICENSE="BSD" +SLOT="3" +#KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" +KEYWORDS="" +IUSE="bzip2 +cxx unicode zlib static-libs" + +RDEPEND="bzip2? ( app-arch/bzip2 ) + zlib? ( sys-libs/zlib )" +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + sed -i -e "s:libdir=@libdir@:libdir=/$(get_libdir):" libpcre.pc.in || die "Fixing libpcre pkgconfig files failed" + sed -i -e "s:-lpcre ::" libpcrecpp.pc.in || die "Fixing libpcrecpp pkgconfig files failed" +} + +src_configure() { + econf --with-match-limit-recursion=8192 \ + $(use_enable unicode utf8) $(use_enable unicode unicode-properties) \ + $(use_enable cxx cpp) \ + $(use_enable zlib pcregrep-libz) \ + $(use_enable bzip2 pcregrep-libbz2) \ + $(use_enable static-libs static) \ + --enable-shared \ + --htmldir=/usr/share/doc/${PF}/html \ + --docdir=/usr/share/doc/${PF} \ + || die "econf failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" + gen_usr_ldscript -a pcre + find "${D}" -type f -name '*.la' -exec rm -rf '{}' '+' || die "la removal failed" +} + +pkg_postinst() { + elog "This version of ${PN} has stopped installing .la files. This may" + elog "cause compilation failures in other packages. To fix this problem," + elog "install dev-util/lafilefixer and run:" + elog "lafilefixer --justfixit" +} |