From 201ce39b804a3295a9469855ebcecbe7144cc077 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Sun, 1 Jan 2023 13:54:46 +0100 Subject: [PATCH] libtomcrypt, new recipe (#7715) --- .../libtomcrypt/libtomcrypt-1.18.2.recipe | 69 +++++++++++++++++++ dev-libs/libtomcrypt/licenses/WTFPL v2 | 29 ++++++++ 2 files changed, 98 insertions(+) create mode 100644 dev-libs/libtomcrypt/libtomcrypt-1.18.2.recipe create mode 100644 dev-libs/libtomcrypt/licenses/WTFPL v2 diff --git a/dev-libs/libtomcrypt/libtomcrypt-1.18.2.recipe b/dev-libs/libtomcrypt/libtomcrypt-1.18.2.recipe new file mode 100644 index 000000000..fd6f266c0 --- /dev/null +++ b/dev-libs/libtomcrypt/libtomcrypt-1.18.2.recipe @@ -0,0 +1,69 @@ +SUMMARY="A fairly comprehensive, modular and portable cryptographic toolkit" +DESCRIPTION="LibTomCrypt is a fairly comprehensive, modular and portable cryptographic toolkit \ +that provides developers with a vast array of well known published block ciphers, one-way hash \ +functions, chaining modes, pseudo-random number generators, public key cryptography and a \ +plethora of other routines. " +HOMEPAGE="https://www.libtom.net/LibTomCrypt/" +COPYRIGHT="2012 Samual Neves + 2008 Cryptico A/S" +LICENSE="Public Domain + WTFPL v2" +REVISION="1" +SOURCE_URI="https://github.com/libtom/libtomcrypt/archive/refs/tags/v$portVersion.tar.gz" +CHECKSUM_SHA256="d870fad1e31cb787c85161a8894abb9d7283c2a654a9d3d4c6d45a1eba59952c" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +libVersion="1.0.1" +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" + +PROVIDES=" + libtomcrypt$secondaryArchSuffix = $portVersion + lib:libtomcrypt$secondaryArchSuffix = $libVersionCompat + " +REQUIRES=" + haiku$secondaryArchSuffix + " + +PROVIDES_devel=" + libtomcrypt${secondaryArchSuffix}_devel = $portVersion + devel:libtomcrypt$secondaryArchSuffix = $libVersionCompat + " +REQUIRES_devel=" + libtomcrypt$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + " +BUILD_PREREQUIRES=" + cmd:cc$secondaryArchSuffix + cmd:libtool$secondaryArchSuffix + cmd:make + " + +BUILD() +{ + true +} + +INSTALL() +{ + export LIBPATH=$libDir + export INCPATH=$includeDir + make -f makefile.shared IGNORE_SPEED=1 install + + rm $libDir/libtomcrypt.{a,la} + + prepareInstalledDevelLibs libtomcrypt + fixPkgconfig + + packageEntries devel $developDir +} + +TEST() +{ + make $jobArgs -f makefile.shared IGNORE_SPEED=1 test + ./test +} diff --git a/dev-libs/libtomcrypt/licenses/WTFPL v2 b/dev-libs/libtomcrypt/licenses/WTFPL v2 new file mode 100644 index 000000000..c4afbc6b5 --- /dev/null +++ b/dev-libs/libtomcrypt/licenses/WTFPL v2 @@ -0,0 +1,29 @@ +LibTomCrypt is licensed under DUAL licensing terms. + +Choose and use the license of your needs. + +[LICENSE #1] + +LibTomCrypt is public domain. As should all quality software be. + +Tom St Denis + +[/LICENSE #1] + +[LICENSE #2] + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2004 Sam Hocevar + + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. + +[/LICENSE #2]