gnutls: bump to 3.5.17, use libidn2, add debuginfo. (#2136)

This commit is contained in:
fbrosson
2018-01-18 14:19:17 +00:00
committed by GitHub
parent 3b5a0e2373
commit 9c69e19006
2 changed files with 25 additions and 8 deletions

View File

@@ -6,24 +6,32 @@ communications protocols as well as APIs to parse and write X.509, PKCS #12, \
OpenPGP and other required structures. It is aimed to be portable and \
efficient with focus on security and interoperability."
HOMEPAGE="https://www.gnutls.org/"
COPYRIGHT="2000-2017 Free Software Fundation Inc.
COPYRIGHT="2000-2018 Free Software Fundation Inc.
2004-2008 Simon Josefsson
2000-2004 Nikos Mavrogiannopoulos"
LICENSE="GNU LGPL v2.1"
REVISION="1"
SOURCE_URI="ftp://ftp.gnutls.org/gcrypt/gnutls/v${portVersion%\.*}/gnutls-$portVersion.tar.xz"
CHECKSUM_SHA256="046081108b8b1fe455a13a4c5a4eaa0368e185b678f1670fe09a11a2d7ecfad5"
CHECKSUM_SHA256="86b142afef587c118d63f72ccf307f3321dbc40357aae528202b65d913d20919"
SOURCE_DIR="gnutls-$portVersion"
PATCHES="gnutls-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 x86 x86_64 ?arm ?ppc"
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
libgnutls_opensslVersion="27.0.2"
libgnutlsVersion="30.14.9"
libgnutlsxxVersion="28.1.0"
libgnutls_opensslVersionCompat="$libgnutls_opensslVersion compat >= ${libgnutls_opensslVersion%%.*}"
libgnutlsVersionCompat="$libgnutlsVersion compat >= ${libgnutlsVersion%%.*}"
libgnutlsxxVersionCompat="$libgnutlsxxVersion compat >= ${libgnutlsxxVersion%%.*}"
PROVIDES="
gnutls35$secondaryArchSuffix = $portVersion
lib:libgnutls_openssl$secondaryArchSuffix = 27.0.2 compat >= 27
lib:libgnutls$secondaryArchSuffix = 30.14.7 compat >= 30
lib:libgnutlsxx$secondaryArchSuffix = 28.1.0 compat >= 28
lib:libgnutls_openssl$secondaryArchSuffix = $libgnutls_opensslVersionCompat
lib:libgnutls$secondaryArchSuffix = $libgnutlsVersionCompat
lib:libgnutlsxx$secondaryArchSuffix = $libgnutlsxxVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
@@ -32,6 +40,7 @@ REQUIRES="
lib:libnettle$secondaryArchSuffix
lib:libgmp$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libidn2$secondaryArchSuffix
lib:libtasn1$secondaryArchSuffix
lib:libunistring$secondaryArchSuffix
lib:libz$secondaryArchSuffix
@@ -59,6 +68,7 @@ REQUIRES_bin="
lib:libnettle$secondaryArchSuffix
lib:libgmp$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libidn2$secondaryArchSuffix
lib:libtasn1$secondaryArchSuffix
lib:libunistring$secondaryArchSuffix
lib:libz$secondaryArchSuffix
@@ -71,9 +81,9 @@ CONFLICTS_bin="
PROVIDES_devel="
gnutls35${secondaryArchSuffix}_devel = $portVersion
devel:libgnutls_openssl$secondaryArchSuffix = 27.0.2 compat >= 27
devel:libgnutls$secondaryArchSuffix = 30.14.7 compat >= 30
devel:libgnutlsxx$secondaryArchSuffix = 28.1.0 compat >= 28
devel:libgnutls_openssl$secondaryArchSuffix = $libgnutls_opensslVersionCompat
devel:libgnutls$secondaryArchSuffix = $libgnutlsVersionCompat
devel:libgnutlsxx$secondaryArchSuffix = $libgnutlsxxVersionCompat
"
REQUIRES_devel="
gnutls35$secondaryArchSuffix == $portVersion base
@@ -96,6 +106,7 @@ BUILD_REQUIRES="
devel:libnettle$secondaryArchSuffix
devel:libgmp$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
devel:libidn2$secondaryArchSuffix
devel:libtasn1$secondaryArchSuffix
devel:libunistring$secondaryArchSuffix
devel:libz$secondaryArchSuffix
@@ -116,6 +127,11 @@ BUILD_PREREQUIRES="
cmd:pkg_config$secondaryArchSuffix
"
defineDebugInfoPackage gnutls35$secondaryArchSuffix \
$libDir/libgnutls-openssl.so.$libgnutls_opensslVersion \
$libDir/libgnutls.so.$libgnutlsVersion \
$libDir/libgnutlsxx.so.$libgnutlsxxVersion
BUILD()
{
runConfigure ./configure --without-p11-kit --disable-nls \
@@ -127,6 +143,7 @@ INSTALL()
{
make install
rm -f $infoDir/dir
rm -f $libDir/libgnutls*.la
prepareInstalledDevelLibs libgnutls-openssl libgnutls libgnutlsxx