From bead54e7805244dceac3399cfbf5799d363b6550 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Tue, 28 Mar 2023 15:11:37 +0200 Subject: [PATCH] argp_standalone, new recipe for missing function arg_parse (#8144) --- .../argp_standalone-1.5.0.recipe | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 sys-libs/argp_standalone/argp_standalone-1.5.0.recipe diff --git a/sys-libs/argp_standalone/argp_standalone-1.5.0.recipe b/sys-libs/argp_standalone/argp_standalone-1.5.0.recipe new file mode 100644 index 000000000..201c4e320 --- /dev/null +++ b/sys-libs/argp_standalone/argp_standalone-1.5.0.recipe @@ -0,0 +1,60 @@ +SUMMARY="A argp library" +DESCRIPTION="This is a continuation of Niels Möller's work on an argp library for systems which \ +don't provide one themselves (most non-GNU ones). + +After noticing issues with executables built against argp-standalone 1.3, I decided to fork it \ +and continue the effort. + +This repository is the result of making a timeline with releases 1.0 to 1.3 obtained from \ +https://www.lysator.liu.se/~nisse/misc/ of the original argp-standalone, copying files from glibc \ +2.33 and fixing them up for compatibility, and finally some general clean up. I commited many \ +trivial changes from the glibc version in order to make updating easier." +HOMEPAGE="https://github.com/argp-standalone/argp-standalone" +COPYRIGHT="2000-2004 Niels Möller + 2021 Érico Nogueira + 2022 Wolf Vollprecht" +LICENSE="GNU GPL v2" +REVISION="1" +SOURCE_URI="$HOMEPAGE/archive/refs/tags/1.5.0.tar.gz" +CHECKSUM_SHA256="c29eae929dfebd575c38174f2c8c315766092cec99a8f987569d0cad3c6d64f6" +SOURCE_DIR="argp-standalone-$portVersion" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + argp_standalone$secondaryArchSuffix = $portVersion + devel:libargp$secondaryArchSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libintl$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libintl$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:gcc$secondaryArchSuffix + cmd:meson + cmd:ninja + " + +BUILD() +{ + meson build --buildtype=release \ + --libdir=$developLibDir \ + --includedir=$includeDir + ninja -C build +} + +INSTALL() +{ + ninja -C build install +} + +TEST() +{ + ninja -C build test +}