From 2a7ddf3ef37bd0f17b3cac58bd040117bc339582 Mon Sep 17 00:00:00 2001 From: miqlas <5569059+extrowerk@users.noreply.github.com> Date: Mon, 17 Dec 2018 19:57:43 +0100 Subject: [PATCH] Libfstrcmp: new recipe (#3473) --- dev-libs/libfstrcmp/libfstrcmp-0.7.recipe | 84 +++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 dev-libs/libfstrcmp/libfstrcmp-0.7.recipe diff --git a/dev-libs/libfstrcmp/libfstrcmp-0.7.recipe b/dev-libs/libfstrcmp/libfstrcmp-0.7.recipe new file mode 100644 index 000000000..dfdbf0f53 --- /dev/null +++ b/dev-libs/libfstrcmp/libfstrcmp-0.7.recipe @@ -0,0 +1,84 @@ +SUMMARY="Make fuzzy comparisons of strings and byte arrays" +DESCRIPTION="The fstrcmp project provides a library that is used to make \ +fuzzy comparisons of strings and byte arrays, including multi-byte \ +character strings. +This can be useful in error messages, enabling the suggestion of likely \ +valid alternatives. In compilers, this can reduce the cascade of secondary \ +errors." +HOMEPAGE="http://fstrcmp.sourceforge.net/" +COPYRIGHT="2009 Peter Miller" +LICENSE="GNU GPL v3" +REVISION="1" +SOURCE_URI="http://fstrcmp.sourceforge.net/fstrcmp-$portVersion.D001.tar.gz" +CHECKSUM_SHA256="e4018e850f80700acee8da296e56e15b1eef711ab15157e542e7d7e1237c3476" +SOURCE_FILENAME="libfstrcmp-$portVersion.tar.gz" +SOURCE_DIR="fstrcmp-$portVersion.D001" + +ARCHITECTURES="?x86_gcc2 ?x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +libVersion="0.6.0" +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" + +PROVIDES=" + libfstrcmp$secondaryArchSuffix = $portVersion + cmd:fstrcmp$secondaryArchSuffix = $portVersion + lib:libfstrcmp$secondaryArchSuffix = $libVersionCompat + " +REQUIRES=" + haiku$secondaryArchSuffix + " + +PROVIDES_devel=" + libfstrcmp${secondaryArchSuffix}_devel = $portVersion + devel:libfstrcmp$secondaryArchSuffix = $libVersionCompat + " +REQUIRES_devel=" + libfstrcmp$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + " +BUILD_PREREQUIRES=" + cmd:gcc$secondaryArchSuffix + cmd:groff + cmd:ld$secondaryArchSuffix + cmd:libtoolize + cmd:make + cmd:pkg_config$secondaryArchSuffix + cmd:ps2pdf + cmd:refer + cmd:soelim + " + +defineDebugInfoPackage libfstrcmp$secondaryArchSuffix \ + "$libDir"/libfstrcmp.so.$libVersion + +BUILD() +{ + runConfigure ./configure + + make $jobArgs +} + +INSTALL() +{ + make install + + # Cleanup + rm -rf $libDir/*.la + + # prepare develop/lib + prepareInstalledDevelLibs libfstrcmp + fixPkgconfig + + # devel package + packageEntries devel \ + $developDir +} + +TEST() +{ + make test +}