Merge pull request #458 from fbrosson/nettle

nettle: add recipe for 3.2 and reformat 3.1.1
This commit is contained in:
diversys
2016-02-03 10:37:56 +03:00
2 changed files with 82 additions and 13 deletions

View File

@@ -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
}

View File

@@ -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
}