From 6c58f21b44ab2e0ac770db46bf9770585f265ddb Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Sun, 24 May 2015 20:40:58 +0000 Subject: [PATCH] liboauth: added recipe for version 1.0.3. --- net-libs/liboauth/liboauth-1.0.3.recipe | 83 +++++++++++++++++++ .../liboauth/patches/liboauth-1.0.3.patchset | 22 +++++ 2 files changed, 105 insertions(+) create mode 100644 net-libs/liboauth/liboauth-1.0.3.recipe create mode 100644 net-libs/liboauth/patches/liboauth-1.0.3.patchset diff --git a/net-libs/liboauth/liboauth-1.0.3.recipe b/net-libs/liboauth/liboauth-1.0.3.recipe new file mode 100644 index 000000000..8e8e6b2be --- /dev/null +++ b/net-libs/liboauth/liboauth-1.0.3.recipe @@ -0,0 +1,83 @@ +SUMMARY="A collection of C functions implementing the http://oauth.net API" +DESCRIPTION=" +liboauth provides functions to escape and encode stings according to \ +OAuth specifications and offers high-level functionality built on top to sign \ +requests or verify signatures using either NSS or OpenSSL for calculating \ +the hash/signatures. +" +HOMEPAGE="http://liboauth.sourceforge.net" +COPYRIGHT=" + 2007-2014 Robin Gareus + " +LICENSE=" + GNU GPL v2 + MIT + " +SRC_URI="http://downloads.sourceforge.net/project/liboauth/liboauth-$portVersion.tar.gz" +CHECKSUM_SHA256="0df60157b052f0e774ade8a8bac59d6e8d4b464058cc55f9208d72e41156811f" +REVISION="1" +ARCHITECTURES="x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="x86_gcc2 x86" + +PATCHES="liboauth-$portVersion.patchset" + +PROVIDES=" + liboauth$secondaryArchSuffix = $portVersion compat >= 1 + lib:liboauth$secondaryArchSuffix = 0.8.7 compat >= 0 + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libcrypto$secondaryArchSuffix + lib:libcurl$secondaryArchSuffix + lib:libssl$secondaryArchSuffix + lib:libz$secondaryArchSuffix + " +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libcrypto$secondaryArchSuffix + devel:libcurl$secondaryArchSuffix + devel:libssl$secondaryArchSuffix + devel:libz$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoconf + cmd:automake + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:libtoolize + cmd:make + cmd:pkg_config$secondaryArchSuffix + " + +BUILD() +{ + autoreconf -fi + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install + + rm $libDir/liboauth.la + + prepareInstalledDevelLibs liboauth + fixPkgconfig + + # devel package + packageEntries devel \ + $manDir/man3 \ + $developDir +} + +# ----- devel package ------------------------------------------------------- + +PROVIDES_devel=" + liboauth${secondaryArchSuffix}_devel = $portVersion compat >= 1 + devel:liboauth$secondaryArchSuffix = 0.8.7 compat >= 0 + " +REQUIRES_devel=" + liboauth$secondaryArchSuffix == $portVersion base + " diff --git a/net-libs/liboauth/patches/liboauth-1.0.3.patchset b/net-libs/liboauth/patches/liboauth-1.0.3.patchset new file mode 100644 index 000000000..b2a0adea2 --- /dev/null +++ b/net-libs/liboauth/patches/liboauth-1.0.3.patchset @@ -0,0 +1,22 @@ +From 0a1842365f336e558983b45986379029b10d5748 Mon Sep 17 00:00:00 2001 +From: Jerome Duval +Date: Sun, 24 May 2015 20:19:50 +0000 +Subject: Haiku patch + + +diff --git a/configure.ac b/configure.ac +index 828f730..0dbdd7f 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -25,7 +25,7 @@ AC_CANONICAL_TARGET([]) + AC_COPYRIGHT([Copyright (C) Robin Gareus 2007-2012]) + AM_INIT_AUTOMAKE(liboauth,$VERSION) + +-AM_CONFIG_HEADER(src/config.h) ++AC_CONFIG_HEADERS(src/config.h) + + AC_SUBST(VERSION) + AC_SUBST(VERSION_INFO) +-- +1.8.3.4 +