mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 11:10:07 +02:00
nettle: fixes for prerequisites, provides and compat
Added missing build prerequisite: cmd:find. Fixed the versioning of lib:libnettle and devel:libnettle. Added lib:libhogweed and devel:libhogweed. Added compat versions. Added conditional provides for the 5 commands: nettle-hash, nettle-lfib-stream, nettle-pbkdf2, pkcs1-conv and sexp-conv.
This commit is contained in:
@@ -10,13 +10,24 @@ 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"
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
|
||||
|
||||
PROVIDES="
|
||||
nettle$secondaryArchSuffix = $portVersion
|
||||
lib:libnettle$secondaryArchSuffix = $portVersion
|
||||
lib:libnettle$secondaryArchSuffix = 6.2 compat >= 6
|
||||
lib:libhogweed$secondaryArchSuffix = 4.2 compat >= 4
|
||||
"
|
||||
if [ -z "$secondaryArchSuffix" ]; then
|
||||
PROVIDES="$PROVIDES
|
||||
cmd:nettle_hash
|
||||
cmd:nettle_lfib_stream
|
||||
cmd:nettle_pbkdf2
|
||||
cmd:pkcs1_conv
|
||||
cmd:sexp_conv
|
||||
"
|
||||
fi
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libgmp$secondaryArchSuffix
|
||||
@@ -24,7 +35,8 @@ REQUIRES="
|
||||
|
||||
PROVIDES_devel="
|
||||
nettle${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libnettle$secondaryArchSuffix = $portVersion
|
||||
devel:libnettle$secondaryArchSuffix = 6.2 compat >= 6
|
||||
devel:libhogweed$secondaryArchSuffix = 4.2 compat >= 4
|
||||
"
|
||||
REQUIRES_devel="
|
||||
nettle$secondaryArchSuffix == $portVersion base
|
||||
@@ -37,6 +49,7 @@ BUILD_REQUIRES="
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:autoconf
|
||||
cmd:automake
|
||||
cmd:find
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:libtoolize
|
||||
@@ -61,9 +74,16 @@ INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
prepareInstalledDevelLibs libnettle
|
||||
prepareInstalledDevelLibs libnettle libhogweed
|
||||
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel $developDir
|
||||
|
||||
# Remove stuff we don't need in the secondary architecture base package,
|
||||
# since we make it depend on the primary package.
|
||||
if [ -n "$secondaryArchSuffix" ]; then
|
||||
rm -rf $binDir
|
||||
rm -rf $documentationDir
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user