From 17cab0169d458d4a359e1dfa4d5fc36d4e705041 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Fri, 29 Jul 2022 12:18:05 +0200 Subject: [PATCH] ctpl, new recipe (#7080) --- dev-libs/ctpl/ctpl-0.3.4.recipe | 99 +++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 dev-libs/ctpl/ctpl-0.3.4.recipe diff --git a/dev-libs/ctpl/ctpl-0.3.4.recipe b/dev-libs/ctpl/ctpl-0.3.4.recipe new file mode 100644 index 000000000..ca38e1dd2 --- /dev/null +++ b/dev-libs/ctpl/ctpl-0.3.4.recipe @@ -0,0 +1,99 @@ +SUMMARY="A template engine library written in C" +DESCRIPTION="This is CTPL version 0.3.4. CTPL (which stands for C Template (Parser) Library) is \ +a template engine library written in C and distributed under the terms of the GNU GPL. +It allows fast and easy parsing of templates and fine control over template parsing environment." +HOMEPAGE="https://ctpl.tuxfamily.org" +COPYRIGHT="2010 Colomban Wendling" +LICENSE="GNU GPL v3" +REVISION="1" +SOURCE_URI="http://download.tuxfamily.org/ctpl/releases/ctpl-$portVersion.tar.gz" +CHECKSUM_SHA256="3a95fdd03437ed3ae222339cb0de2d2c1240d627faa6c77bf46f1a9b761729fb" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +commandBinDir=$binDir +commandSuffix=$secondaryArchSuffix +if [ "$targetArchitecture" = x86_gcc2 ]; then + commandSuffix= + commandBinDir=$prefix/bin +fi + +libVersion="2.2.2" +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" + +PROVIDES=" + ctpl$secondaryArchSuffix = $portVersion + cmd:ctpl$commandSuffix + lib:libctpl$secondaryArchSuffix = $libVersionCompat + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libiconv$secondaryArchSuffix + lib:libgio_2.0$secondaryArchSuffix + lib:libglib_2.0$secondaryArchSuffix + lib:libgobject_2.0$secondaryArchSuffix + lib:libintl$secondaryArchSuffix + " + +PROVIDES_devel=" + ctpl${secondaryArchSuffix}_devel = $portVersion + devel:libctpl$secondaryArchSuffix = $libVersionCompat + " +REQUIRES_devel=" + ctpl$secondaryArchSuffix == $portVersion base + devel:libffi$secondaryArchSuffix + devel:libglib_2.0$secondaryArchSuffix + devel:libpcre$secondaryArchSuffix + devel:libz$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libiconv$secondaryArchSuffix + devel:libgio_2.0$secondaryArchSuffix + devel:libglib_2.0$secondaryArchSuffix + devel:libgobject_2.0$secondaryArchSuffix + devel:libintl$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autopoint + cmd:autoreconf + cmd:awk + cmd:gcc$secondaryArchSuffix + cmd:gtkdocize + cmd:libtoolize$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + " + +defineDebugInfoPackage ctpl$secondaryArchSuffix \ + $libDir/libctpl.so.$libVersion \ + $commandBinDir/ctpl + +BUILD() +{ + autoreconf -vfi + runConfigure --omit-dirs binDir \ + ./configure --bindir=$commandBinDir + make $jobArgs +} + +INSTALL() +{ + make install + + rm $libDir/*.la + + prepareInstalledDevelLib libctpl + fixPkgconfig + + packageEntries devel \ + $developDir +} + +TEST() +{ + make check +}