mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
Merge pull request #458 from fbrosson/nettle
nettle: add recipe for 3.2 and reformat 3.1.1
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
69
net-libs/nettle/nettle-3.2.recipe
Normal file
69
net-libs/nettle/nettle-3.2.recipe
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user