From bc3ff999bd6ef750eccffbb20c132c44c81202c9 Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Mon, 17 Feb 2014 19:04:51 +0000 Subject: [PATCH] libpcre: added libpcre0 containing only libpcre.so.0. * updated 8.33 provides section. --- dev-libs/libpcre/libpcre-8.33.recipe | 10 ++-- dev-libs/libpcre/libpcre0-8.21.recipe | 70 +++++++++++++++++++++++++++ 2 files changed, 75 insertions(+), 5 deletions(-) create mode 100644 dev-libs/libpcre/libpcre0-8.21.recipe diff --git a/dev-libs/libpcre/libpcre-8.33.recipe b/dev-libs/libpcre/libpcre-8.33.recipe index ca108a252..354ac78a7 100644 --- a/dev-libs/libpcre/libpcre-8.33.recipe +++ b/dev-libs/libpcre/libpcre-8.33.recipe @@ -15,15 +15,15 @@ COPYRIGHT=" " SRC_URI="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.33.tar.bz2" CHECKSUM_MD5="21514018448ac10062ece7a668fca949" -REVISION="1" +REVISION="2" ARCHITECTURES="x86_gcc2 x86 x86_64" SECONDARY_ARCHITECTURES="x86 x86_gcc2" PROVIDES=" libpcre${secondaryArchSuffix} = $portVersion lib:libpcre${secondaryArchSuffix} = 1.2.1 compat >= 1 - lib:libpcrecpp${secondaryArchSuffix} = 1.2.1 compat >= 1 - lib:libpcreposix${secondaryArchSuffix} = 1.2.1 compat >= 1 + lib:libpcrecpp${secondaryArchSuffix} = 0.0.1 compat >= 0 + lib:libpcreposix${secondaryArchSuffix} = 0.0.2 compat >= 0 " if [ -z "$secondaryArchSuffix" ];then @@ -93,8 +93,8 @@ PROVIDES_devel=" libpcre${secondaryArchSuffix}_devel = $portVersion cmd:pcre_config = $portVersion compat >= 8 devel:libpcre$secondaryArchSuffix = 1.2.1 compat >= 1 - devel:libpcrecpp$secondaryArchSuffix = 1.2.1 compat >= 1 - devel:libpcreposix$secondaryArchSuffix = 1.2.1 compat >= 1 + devel:libpcrecpp$secondaryArchSuffix = 0.0.1 compat >= 0 + devel:libpcreposix$secondaryArchSuffix = 0.0.2 compat >= 0 " REQUIRES_devel=" libpcre$secondaryArchSuffix == $portVersion base diff --git a/dev-libs/libpcre/libpcre0-8.21.recipe b/dev-libs/libpcre/libpcre0-8.21.recipe new file mode 100644 index 000000000..e36e20b43 --- /dev/null +++ b/dev-libs/libpcre/libpcre0-8.21.recipe @@ -0,0 +1,70 @@ +SUMMARY="Perl5 Compatible Regular Expressions" +DESCRIPTION=" + The PCRE library is a set of functions that implement regular expression + pattern matching using the same syntax and semantics as Perl 5. PCRE has + its own native API, as well as a set of wrapper functions that correspond + to the POSIX regular expression API. The PCRE library is free, even for + building proprietary software. + This package contains the native API. + " +HOMEPAGE="http://www.pcre.org/" +LICENSE="PCRE" +COPYRIGHT=" + 1997-2011 University of Cambridge + 2007-2011, Google Inc. All rights reserved. + " +SRC_URI="http://sourceforge.net/projects/pcre/files/pcre/8.21/pcre-8.21.tar.bz2" +CHECKSUM_MD5="0a7b592bea64b7aa7f4011fc7171a730" +REVISION="6" +ARCHITECTURES="x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="x86 x86_gcc2" + +PROVIDES=" + libpcre0${secondaryArchSuffix} = $portVersion + lib:libpcre${secondaryArchSuffix} = 0.0.1 compat >= 0 + " + +REQUIRES=" + haiku$secondaryArchSuffix >= $haikuVersion + " +BUILD_REQUIRES=" + " +BUILD_PREREQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + cmd:aclocal + cmd:autoconf + cmd:automake + cmd:gcc$secondaryArchSuffix + cmd:make + cmd:ld$secondaryArchSuffix + cmd:libtoolize + " + +SOURCE_DIR="pcre-$portVersion" + +BUILD() +{ + libtoolize --force --copy --install + aclocal + autoconf + automake --add-missing + runConfigure ./configure \ + --enable-utf8 \ + --enable-unicode-properties \ + --with-pic --disable-cpp --disable-static + make $jobArgs +} + +INSTALL() +{ + make install-exec-am + + rm -Rf $binDir $libDir/libpcreposix* \ + $libDir/libpcre.la $libDir/libpcre.so +} + +TEST() +{ + make check +} +