From c7b2fb749dd9f153bf6db8331c64b116a3912dc9 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Sat, 9 Dec 2017 12:38:57 +0100 Subject: [PATCH] libpipeline: new recipe (#1827) --- dev-libs/libpipeline/libpipeline-1.5.0.recipe | 86 +++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 dev-libs/libpipeline/libpipeline-1.5.0.recipe diff --git a/dev-libs/libpipeline/libpipeline-1.5.0.recipe b/dev-libs/libpipeline/libpipeline-1.5.0.recipe new file mode 100644 index 000000000..b9df578cd --- /dev/null +++ b/dev-libs/libpipeline/libpipeline-1.5.0.recipe @@ -0,0 +1,86 @@ +SUMMARY="A C library for setting up and running pipelines" +DESCRIPTION="libpipeline is a C library for setting up and running pipelines \ +of processes, without needing to involve shell command-line parsing which is \ +often error-prone and insecure. This alleviates programmers of the need to \ +laboriously construct pipelines using lower-level primitives such as fork(2) \ +and execve(2)." +HOMEPAGE="http://libpipeline.nongnu.org/" +COPYRIGHT="1994 Markus Armbruster. + 1989, 1990, 1991, 1992, 2000, 2001, 2002, 2003, 2004, 2005, + 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. + 2003-2017 Colin Watson" +LICENSE="GNU GPL v3" +REVISION="1" +SOURCE_URI="http://download.savannah.nongnu.org/releases/libpipeline/libpipeline-$portVersion.tar.gz" +CHECKSUM_SHA256="0d72e12e4f2afff67fd7b9df0a24d7ba42b5a7c9211ac5b3dcccc5cd8b286f2b" + +ARCHITECTURES="x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +libVersion=$portVersion +libVersionCompat="$libVersion compat >= 1" + +PROVIDES=" + libpipeline$secondaryArchSuffix = $portVersion + lib:libpipeline$secondaryArchSuffix = $libVersionCompat + " +REQUIRES=" + haiku$secondaryArchSuffix + " + +PROVIDES_devel=" + libpipeline${secondaryArchSuffix}_devel = $portVersion + devel:libpipeline$secondaryArchSuffix = $libVersion + " +REQUIRES_devel=" + libpipeline$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoconf + cmd:awk + cmd:gcc$secondaryArchSuffix + cmd:libtoolize$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + " + +defineDebugInfoPackage libpipeline$secondaryArchSuffix \ + $libDir/libpipeline.so.$libVersion + +BUILD() +{ + autoreconf -vfi + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install + + #remove libtool file + rm $libDir/*.la + + # prepare develop/lib + prepareInstalledDevelLib libpipeline + fixPkgconfig + + if [ -n "$secondaryArchSuffix" ]; then + rm -rf $manDir + maybe_manDir= + else + maybe_manDir=$manDir + fi + + # devel package + packageEntries devel \ + $developDir \ + $maybe_manDir + + rmdir $documentationDir +}