From 2f0a07ad975e1e290901f53ccb7581e4ef5b30c0 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Wed, 19 Jun 2024 09:35:27 +0200 Subject: [PATCH] minizip-ng, new recipe (#10611) --- sys-libs/minizip-ng/licenses/Zlib | 17 +++++ sys-libs/minizip-ng/minizip_ng-4.0.7.recipe | 82 +++++++++++++++++++++ 2 files changed, 99 insertions(+) create mode 100644 sys-libs/minizip-ng/licenses/Zlib create mode 100644 sys-libs/minizip-ng/minizip_ng-4.0.7.recipe diff --git a/sys-libs/minizip-ng/licenses/Zlib b/sys-libs/minizip-ng/licenses/Zlib new file mode 100644 index 000000000..3b6c4e142 --- /dev/null +++ b/sys-libs/minizip-ng/licenses/Zlib @@ -0,0 +1,17 @@ +Condition of use and distribution are the same as zlib: + +This software is provided 'as-is', without any express or implied +warranty. In no event will the authors be held liable for any damages +arising from the use of this software. + +Permission is granted to anyone to use this software for any purpose, +including commercial applications, and to alter it and redistribute it +freely, subject to the following restrictions: + +1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgement in the product documentation would be + appreciated but is not required. +2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. +3. This notice may not be removed or altered from any source distribution. diff --git a/sys-libs/minizip-ng/minizip_ng-4.0.7.recipe b/sys-libs/minizip-ng/minizip_ng-4.0.7.recipe new file mode 100644 index 000000000..b8cf25b4f --- /dev/null +++ b/sys-libs/minizip-ng/minizip_ng-4.0.7.recipe @@ -0,0 +1,82 @@ +SUMMARY="Fork of the popular zip manipulation library found in the zlib distribution" +DESCRIPTION="minizip-ng is a zip manipulation library written in C that is supported on Windows, \ +macOS, and Linux." +HOMEPAGE="https://github.com/zlib-ng/minizip-ng" +COPYRIGHT="1995-2013 Jean-loup Gailly and Mark Adler" +LICENSE="Zlib" +REVISION="1" +SOURCE_URI="https://github.com/zlib-ng/minizip-ng/archive/refs/tags/$portVersion.tar.gz" +CHECKSUM_SHA256="a87f1f734f97095fe1ef0018217c149d53d0f78438bcb77af38adc21dff2dfbc" +SOURCE_FILENAME="minizip-ng-$portVersion.tar.gz" +SOURCE_DIR="minizip-ng-$portVersion" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + minizip_ng$secondaryArchSuffix = $portVersion + lib:libminizip_ng$secondaryArchSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libbz2$secondaryArchSuffix + lib:libcrypto$secondaryArchSuffix + lib:libiconv$secondaryArchSuffix + lib:liblzma$secondaryArchSuffix + lib:libssl$secondaryArchSuffix + lib:libzstd$secondaryArchSuffix + lib:libz$secondaryArchSuffix + " + +PROVIDES_devel=" + minizip_ng${secondaryArchSuffix}_devel = $portVersion + devel:libminizip_ng$secondaryArchSuffix = $portVersion + " +REQUIRES_devel=" + minizip_ng$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libbz2$secondaryArchSuffix + devel:libiconv$secondaryArchSuffix + devel:liblzma$secondaryArchSuffix + devel:libssl$secondaryArchSuffix + devel:libzstd$secondaryArchSuffix + devel:libz$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:gcc$secondaryArchSuffix + cmd:ninja + cmd:pkg_config$secondaryArchSuffix + " + +defineDebugInfoPackage minizip_ng$secondaryArchSuffix \ + $libDir/libminizip-ng.so.$libVersion + +BUILD() +{ + cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \ + $cmakeDirArgs -GNinja \ + -DMZ_LIB_SUFFIX="-ng" \ + -DBUILD_SHARED_LIBS=ON + ninja -Cbuild $jobArgs +} + +INSTALL() +{ + ninja -Cbuild install + + prepareInstalledDevelLib \ + libminizip-ng + fixPkgconfig + + packageEntries devel \ + $developDir +} + +TEST() +{ + make check +}