diff --git a/net-dns/c_ares/c_ares-1.18.1.recipe b/net-dns/c_ares/c_ares-1.19.0.recipe similarity index 73% rename from net-dns/c_ares/c_ares-1.18.1.recipe rename to net-dns/c_ares/c_ares-1.19.0.recipe index 2869a668d..5e47868c4 100644 --- a/net-dns/c_ares/c_ares-1.18.1.recipe +++ b/net-dns/c_ares/c_ares-1.19.0.recipe @@ -14,22 +14,19 @@ COPYRIGHT="2004-2018 by Daniel Stenberg et al 2012 Marko Kreen 2005 Dominick Meglio" LICENSE="MIT" -REVISION="2" +REVISION="1" SOURCE_URI="https://c-ares.haxx.se/download/c-ares-$portVersion.tar.gz" -CHECKSUM_SHA256="1a7d52a8a84a9fbffb1be9133c0f6e17217d91ea5a6fa61f6b4729cda78ebbcf" +CHECKSUM_SHA256="bfceba37e23fd531293829002cac0401ef49a6dc55923f7f92236585b7ad1dd3" SOURCE_DIR="c-ares-$portVersion" ARCHITECTURES="all x86_gcc2" SECONDARY_ARCHITECTURES="x86_gcc2 x86" -libVersion="2.5.1" +libVersion="2.6.0" libVersionCompat="$libVersion compat >= ${libVersion%%.*}" PROVIDES=" c_ares$secondaryArchSuffix = $portVersion compat >= 1 - cmd:acountry$secondaryArchSuffix = $portVersion - cmd:adig$secondaryArchSuffix = $portVersion - cmd:ahost$secondaryArchSuffix = $portVersion lib:libcares$secondaryArchSuffix = $libVersionCompat " REQUIRES=" @@ -44,6 +41,18 @@ REQUIRES_devel=" c_ares$secondaryArchSuffix == $portVersion base " +if [ -z "$secondaryArchSuffix" ]; then + PROVIDES_tools=" + c_ares${secondaryArchSuffix}_tools = $portVersion compat >= 1 + cmd:acountry$secondaryArchSuffix = $portVersion + cmd:adig$secondaryArchSuffix = $portVersion + cmd:ahost$secondaryArchSuffix = $portVersion + " + REQUIRES_tools="$REQUIRES + c_ares$secondaryArchSuffix == $portVersion base + " +fi + BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel " @@ -76,4 +85,14 @@ INSTALL() "$developDir" \ "$libDir/cmake" \ "$manDir/man3" + + if [ -z "$secondaryArchSuffix" ]; then + packageEntries tools \ + "$documentationDir" \ + "$binDir" + fi + + if [ -n "$secondaryArchSuffix" ]; then + rm -rf "$documentationDir" "$binDir" + fi }