Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/liboauth/files: liboauth-0.8.8-pkgconfig.patch liboauth-0.8.8-asneeded.patch liboauth-0.8.8-tests.patch
Date: Fri, 27 Aug 2010 19:57:16
Message-Id: 20100827195712.E157B20054@flycatcher.gentoo.org
1 flameeyes 10/08/27 19:57:12
2
3 Added: liboauth-0.8.8-pkgconfig.patch
4 liboauth-0.8.8-asneeded.patch
5 liboauth-0.8.8-tests.patch
6 Log:
7 Import to main tree.
8
9 (Portage version: 2.2_rc69/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.1 net-libs/liboauth/files/liboauth-0.8.8-pkgconfig.patch
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/liboauth/files/liboauth-0.8.8-pkgconfig.patch?rev=1.1&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/liboauth/files/liboauth-0.8.8-pkgconfig.patch?rev=1.1&content-type=text/plain
16
17 Index: liboauth-0.8.8-pkgconfig.patch
18 ===================================================================
19 Index: liboauth-0.8.8/configure.ac
20 ===================================================================
21 --- liboauth-0.8.8.orig/configure.ac
22 +++ liboauth-0.8.8/configure.ac
23 @@ -78,9 +78,9 @@ if test "${enable_curl}" != "no"; then
24 fi
25
26 dnl ** check for libcurl
27 -if test "${enable_libcurl}" != "no"; then
28 +AS_IF([test "${enable_libcurl}" != "no"], [
29 PKG_CHECK_MODULES(CURL, libcurl, [ AC_DEFINE(HAVE_CURL, 1) HAVE_CURL=1 PC_REQ="$PC_REQ libcurl" PC_LIB="$PC_LIB -lcurl" report_curl="libcurl" ])
30 -fi
31 +])
32
33 report_curltimeout="-"
34 if test -n "${with_curltimeout}"; then
35 @@ -99,12 +99,12 @@ AC_SUBST(CURL_CFLAGS)
36 AC_SUBST(CURL_LIBS)
37
38 dnl ** crypto/hash lib (OpenSSL or NSS)
39 -if test "${enable_nss}" == "yes"; then
40 +AS_IF([test "${enable_nss}" == "yes"], [
41 PKG_CHECK_MODULES(NSS, nss, [ AC_DEFINE(USE_NSS, 1) USE_NSS=1 PC_REQ="$PC_REQ nss" ])
42 HASH_LIBS=${NSS_LIBS}
43 HASH_CFLAGS=${NSS_CFLAGS}
44 report_hash="NSS"
45 -else
46 +], [
47 AC_CHECK_HEADERS(openssl/hmac.h)
48 if test -z "${HASH_LIBS}"; then
49 HASH_LIBS="-lcrypto"
50 @@ -129,7 +129,7 @@ else
51
52 see http://people.gnome.org/~markmc/openssl-and-the-gpl.html
53 ])
54 -fi
55 +])
56
57 AC_SUBST(HASH_LIBS)
58 AC_SUBST(HASH_CFLAGS)
59
60
61
62 1.1 net-libs/liboauth/files/liboauth-0.8.8-asneeded.patch
63
64 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/liboauth/files/liboauth-0.8.8-asneeded.patch?rev=1.1&view=markup
65 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/liboauth/files/liboauth-0.8.8-asneeded.patch?rev=1.1&content-type=text/plain
66
67 Index: liboauth-0.8.8-asneeded.patch
68 ===================================================================
69 Index: liboauth-0.8.8/configure.ac
70 ===================================================================
71 --- liboauth-0.8.8.orig/configure.ac
72 +++ liboauth-0.8.8/configure.ac
73 @@ -113,8 +113,8 @@ AS_IF([test "${enable_nss}" == "yes"], [
74 HASH_CFLAGS=""
75 fi
76 report_hash="OpenSSL"
77 - PC_LIB="$PC_LIB -lssl"
78 - PC_REQ="$PC_REQ libssl"
79 + PC_LIB="$PC_LIB -lcrypto"
80 + PC_REQ="$PC_REQ libcrypto"
81 AC_MSG_NOTICE([
82
83 NOTE: OpenSSL is not compatible with GPL applications.
84 Index: liboauth-0.8.8/src/Makefile.am
85 ===================================================================
86 --- liboauth-0.8.8.orig/src/Makefile.am
87 +++ liboauth-0.8.8/src/Makefile.am
88 @@ -4,4 +4,5 @@ include_HEADERS = oauth.h
89
90 liboauth_la_SOURCES=oauth.c config.h hash.c xmalloc.c xmalloc.h oauth_http.c
91 liboauth_la_LDFLAGS=@LIBOAUTH_LDFLAGS@ -version-info @VERSION_INFO@
92 +liboauth_la_LIBADD=@HASH_LIBS@ @CURL_LIBS@
93 liboauth_la_CFLAGS=@LIBOAUTH_CFLAGS@ @HASH_CFLAGS@ @CURL_CFLAGS@
94 Index: liboauth-0.8.8/tests/Makefile.am
95 ===================================================================
96 --- liboauth-0.8.8.orig/tests/Makefile.am
97 +++ liboauth-0.8.8/tests/Makefile.am
98 @@ -4,7 +4,7 @@ ACLOCAL_AMFLAGS= -I m4
99 OAUTHDIR =../src
100 INCLUDES = -I$(srcdir)/$(OAUTHDIR)
101 MYCFLAGS = @LIBOAUTH_CFLAGS@ @HASH_CFLAGS@ @CURL_CFLAGS@
102 -MYLDADD = $(OAUTHDIR)/liboauth.la @HASH_LIBS@ @CURL_LIBS@
103 +MYLDADD = $(OAUTHDIR)/liboauth.la
104
105 tcwiki_SOURCES = selftest_wiki.c commontest.c commontest.h
106 tcwiki_LDADD = $(MYLDADD)
107
108
109
110 1.1 net-libs/liboauth/files/liboauth-0.8.8-tests.patch
111
112 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/liboauth/files/liboauth-0.8.8-tests.patch?rev=1.1&view=markup
113 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/liboauth/files/liboauth-0.8.8-tests.patch?rev=1.1&content-type=text/plain
114
115 Index: liboauth-0.8.8-tests.patch
116 ===================================================================
117 Index: liboauth-0.8.8/tests/Makefile.am
118 ===================================================================
119 --- liboauth-0.8.8.orig/tests/Makefile.am
120 +++ liboauth-0.8.8/tests/Makefile.am
121 @@ -1,4 +1,4 @@
122 -noinst_PROGRAMS = oauthexample oauthdatapost tcwiki tceran tcother oauthtest oauthtest2 oauthsign oauthbodyhash
123 +check_PROGRAMS = oauthexample oauthdatapost tcwiki tceran tcother oauthtest oauthtest2 oauthsign oauthbodyhash
124 ACLOCAL_AMFLAGS= -I m4
125
126 OAUTHDIR =../src