From e4d3146a38ca1cb1c93f5003b97becc8adb23e36 Mon Sep 17 00:00:00 2001 From: fbrosson Date: Tue, 2 Feb 2016 21:36:02 +0100 Subject: [PATCH] nettle: add recipe for 3.2 and reformat 3.1.1 --- net-libs/nettle/nettle-3.1.1.recipe | 26 +++++------ net-libs/nettle/nettle-3.2.recipe | 69 +++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+), 13 deletions(-) create mode 100644 net-libs/nettle/nettle-3.2.recipe diff --git a/net-libs/nettle/nettle-3.1.1.recipe b/net-libs/nettle/nettle-3.1.1.recipe index 292be1eb3..fcc9e6491 100644 --- a/net-libs/nettle/nettle-3.1.1.recipe +++ b/net-libs/nettle/nettle-3.1.1.recipe @@ -1,14 +1,14 @@ SUMMARY="Low-level cryptographic library" -DESCRIPTION="Nettle is a cryptographic library that is designed to fit easily in \ -more or less any context: In crypto toolkits for object-oriented languages (C++, \ -Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel space. \ -" -HOMEPAGE="http://www.lysator.liu.se/~nisse/nettle/" +DESCRIPTION="Nettle is a cryptographic library that is designed to fit easily \ +in more or less any context: In crypto toolkits for object-oriented languages \ +(C++, Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel \ +space." +HOMEPAGE="https://www.lysator.liu.se/~nisse/nettle/" +COPYRIGHT="2001-2015 Niels Möller" +LICENSE="GNU LGPL v2.1" +REVISION="1" SOURCE_URI="ftp://ftp.gnu.org/gnu/nettle/nettle-$portVersion.tar.gz" CHECKSUM_SHA256="5fd4d25d64d8ddcb85d0d897572af73b05b4d163c6cc49438a5bfbb8ff293d4c" -LICENSE="GNU LGPL v2.1" -COPYRIGHT="Niels Möller" -REVISION="1" ARCHITECTURES="!x86_gcc2 x86 x86_64" SECONDARY_ARCHITECTURES="!x86_gcc2 x86" @@ -26,16 +26,14 @@ PROVIDES_devel=" nettle${secondaryArchSuffix}_devel = $portVersion devel:libnettle$secondaryArchSuffix = $portVersion " - REQUIRES_devel=" nettle$secondaryArchSuffix == $portVersion base - " + " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel devel:libgmp$secondaryArchSuffix " - BUILD_PREREQUIRES=" cmd:autoconf cmd:automake @@ -45,11 +43,14 @@ BUILD_PREREQUIRES=" cmd:make " -BUILD() +PATCH() { sed -i 's/-lm/-lroot/g' $sourceDir/Makefile.in sed -i 's/-lm/-lroot/g' $sourceDir/examples/Makefile.in +} +BUILD() +{ libtoolize --force --copy --install autoconf runConfigure ./configure @@ -66,4 +67,3 @@ INSTALL() packageEntries devel $developDir } - diff --git a/net-libs/nettle/nettle-3.2.recipe b/net-libs/nettle/nettle-3.2.recipe new file mode 100644 index 000000000..01c190024 --- /dev/null +++ b/net-libs/nettle/nettle-3.2.recipe @@ -0,0 +1,69 @@ +SUMMARY="Low-level cryptographic library" +DESCRIPTION="Nettle is a cryptographic library that is designed to fit easily \ +in more or less any context: In crypto toolkits for object-oriented languages \ +(C++, Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel \ +space." +HOMEPAGE="https://www.lysator.liu.se/~nisse/nettle/" +COPYRIGHT="2001-2016 Niels Möller" +LICENSE="GNU LGPL v2.1" +REVISION="1" +SOURCE_URI="ftp://ftp.gnu.org/gnu/nettle/nettle-$portVersion.tar.gz" +CHECKSUM_SHA256="ea4283def236413edab5a4cf9cf32adf540c8df1b9b67641cfc2302fca849d97" + +ARCHITECTURES="?x86_gcc2 x86 x86_64 ?arm ?ppc" +SECONDARY_ARCHITECTURES="?x86_gcc2 x86 ?x86_64 ?arm ?ppc" + +PROVIDES=" + nettle$secondaryArchSuffix = $portVersion + lib:libnettle$secondaryArchSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libgmp$secondaryArchSuffix + " + +PROVIDES_devel=" + nettle${secondaryArchSuffix}_devel = $portVersion + devel:libnettle$secondaryArchSuffix = $portVersion + " +REQUIRES_devel=" + nettle$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libgmp$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:autoconf + cmd:automake + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:libtoolize + cmd:make + " + +PATCH() +{ + sed -i 's/-lm/-lroot/g' $sourceDir/Makefile.in + sed -i 's/-lm/-lroot/g' $sourceDir/examples/Makefile.in +} + +BUILD() +{ + libtoolize --force --copy --install + autoconf + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install + + prepareInstalledDevelLibs libnettle + + fixPkgconfig + + packageEntries devel $developDir +}