From e898e28e09712f3b6b131444b4c780c87e813fc7 Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Fri, 3 Oct 2014 18:01:20 +0000 Subject: [PATCH] libpcre: add recipe for version 8.36. --- dev-libs/libpcre/libpcre-8.36.recipe | 101 +++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 dev-libs/libpcre/libpcre-8.36.recipe diff --git a/dev-libs/libpcre/libpcre-8.36.recipe b/dev-libs/libpcre/libpcre-8.36.recipe new file mode 100644 index 000000000..181461f29 --- /dev/null +++ b/dev-libs/libpcre/libpcre-8.36.recipe @@ -0,0 +1,101 @@ +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="https://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-$portVersion.tar.bz2" +CHECKSUM_SHA256="ef833457de0c40e82f573e34528f43a751ff20257ad0e86d272ed5637eb845bb" +REVISION="1" +ARCHITECTURES="x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="x86 x86_gcc2" + +PROVIDES=" + libpcre${secondaryArchSuffix} = $portVersion + lib:libpcre${secondaryArchSuffix} = 1.2.4 compat >= 1 + lib:libpcrecpp${secondaryArchSuffix} = 0.0.1 compat >= 0 + lib:libpcreposix${secondaryArchSuffix} = 0.0.3 compat >= 0 + " + +if [ -z "$secondaryArchSuffix" ];then +PROVIDES="$PROVIDES + cmd:pcregrep = $portVersion compat >= 8 + cmd:pcretest = $portVersion compat >= 8 + " +fi + +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 + make $jobArgs +} + +INSTALL() +{ + make install + + # prepare develop/lib + prepareInstalledDevelLibs libpcre libpcrecpp libpcreposix + fixPkgconfig + + # fix pcre-config + fixDevelopLibDirReferences $binDir/pcre-config + + # devel package + packageEntries devel \ + $binDir/pcre-config \ + $developDir \ + $manDir/man3 +} + +TEST() +{ + make check +} + +# ----- devel package ------------------------------------------------------- + +PROVIDES_devel=" + libpcre${secondaryArchSuffix}_devel = $portVersion + cmd:pcre_config = $portVersion compat >= 8 + devel:libpcre$secondaryArchSuffix = 1.2.4 compat >= 1 + devel:libpcrecpp$secondaryArchSuffix = 0.0.1 compat >= 0 + devel:libpcreposix$secondaryArchSuffix = 0.0.3 compat >= 0 + " +REQUIRES_devel=" + libpcre$secondaryArchSuffix == $portVersion base + "