1 |
commit: 397e25c934d3633bdea392b5a499271e52d1d713 |
2 |
Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 29 12:21:41 2016 +0000 |
4 |
Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 29 12:22:12 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=397e25c9 |
7 |
|
8 |
www-misc/gurlchecker: fix gnutls-3.4 compatibility |
9 |
|
10 |
Bug: 582924 |
11 |
Thanks: Juergen Rose |
12 |
|
13 |
Package-Manager: portage-2.2.28 |
14 |
|
15 |
.../files/gurlchecker-0.13.1-gnutls.patch | 26 ++++++++ |
16 |
www-misc/gurlchecker/gurlchecker-0.13.1-r2.ebuild | 74 ++++++++++++++++++++++ |
17 |
2 files changed, 100 insertions(+) |
18 |
|
19 |
diff --git a/www-misc/gurlchecker/files/gurlchecker-0.13.1-gnutls.patch b/www-misc/gurlchecker/files/gurlchecker-0.13.1-gnutls.patch |
20 |
new file mode 100644 |
21 |
index 0000000..341dc43 |
22 |
--- /dev/null |
23 |
+++ b/www-misc/gurlchecker/files/gurlchecker-0.13.1-gnutls.patch |
24 |
@@ -0,0 +1,26 @@ |
25 |
+Index: src/connection.c |
26 |
+=================================================================== |
27 |
+--- src/connection.c (revision 827) |
28 |
++++ src/connection.c (revision 828) |
29 |
+@@ -230,20 +230,12 @@ |
30 |
+ #ifdef ENABLE_GNUTLS |
31 |
+ if (strcmp (proto, UC_PROTOCOL_HTTPS) == 0) |
32 |
+ { |
33 |
+- const gint cert_type_priority[3] = |
34 |
+- { |
35 |
+- GNUTLS_CRT_X509, |
36 |
+- GNUTLS_CRT_OPENPGP, |
37 |
+- 0 |
38 |
+- }; |
39 |
+- |
40 |
+ conn->use_gnutls = TRUE; |
41 |
+ conn->port = atoi (UC_URL_DEFAULT_SSL_PORT); |
42 |
+ |
43 |
+ gnutls_init (&conn->session_gnutls, GNUTLS_CLIENT); |
44 |
+ gnutls_set_default_priority (conn->session_gnutls); |
45 |
+- gnutls_certificate_type_set_priority (conn->session_gnutls, |
46 |
+- cert_type_priority); |
47 |
++ gnutls_set_default_priority (conn->session_gnutls); |
48 |
+ gnutls_credentials_set (conn->session_gnutls, GNUTLS_CRD_CERTIFICATE, |
49 |
+ xcred_gnutls); |
50 |
+ } |
51 |
|
52 |
diff --git a/www-misc/gurlchecker/gurlchecker-0.13.1-r2.ebuild b/www-misc/gurlchecker/gurlchecker-0.13.1-r2.ebuild |
53 |
new file mode 100644 |
54 |
index 0000000..ab9a1e5 |
55 |
--- /dev/null |
56 |
+++ b/www-misc/gurlchecker/gurlchecker-0.13.1-r2.ebuild |
57 |
@@ -0,0 +1,74 @@ |
58 |
+# Copyright 1999-2016 Gentoo Foundation |
59 |
+# Distributed under the terms of the GNU General Public License v2 |
60 |
+# $Id$ |
61 |
+ |
62 |
+EAPI="5" |
63 |
+GCONF_DEBUG="no" |
64 |
+ |
65 |
+inherit autotools eutils gnome2 |
66 |
+ |
67 |
+DESCRIPTION="Gnome tool that checks links on web pages/sites" |
68 |
+HOMEPAGE="http://gurlchecker.labs.libre-entreprise.org/" |
69 |
+SRC_URI="http://labs.libre-entreprise.org/frs/download.php/857/${P}.tar.gz" |
70 |
+ |
71 |
+LICENSE="GPL-2" |
72 |
+KEYWORDS="~amd64 ~ppc ~x86" |
73 |
+SLOT="0" |
74 |
+IUSE="clamav json sqlite ssl tidy" |
75 |
+ |
76 |
+RDEPEND=" |
77 |
+ >=x11-libs/gtk+-2.6:2 |
78 |
+ >=gnome-base/libgnomeui-2 |
79 |
+ >=gnome-base/libglade-2:2.0 |
80 |
+ >=dev-libs/libxml2-2.6:2 |
81 |
+ >=net-libs/gnet-2 |
82 |
+ >=dev-libs/libcroco-0.6 |
83 |
+ clamav? ( app-antivirus/clamav ) |
84 |
+ json? ( >=dev-libs/json-glib-0.8 ) |
85 |
+ sqlite? ( >=dev-db/sqlite-3.6:3 ) |
86 |
+ ssl? ( >=net-libs/gnutls-1 ) |
87 |
+ tidy? ( app-text/htmltidy ) |
88 |
+" |
89 |
+# docbook-sgml-utils used to build the man page |
90 |
+DEPEND="${RDEPEND} |
91 |
+ virtual/pkgconfig |
92 |
+ >=dev-util/intltool-0.30 |
93 |
+ app-text/docbook-sgml-utils |
94 |
+ >=dev-util/gtk-doc-am-1.1 |
95 |
+" |
96 |
+ |
97 |
+src_prepare() { |
98 |
+ epatch "${FILESDIR}/${PN}-0.13.1-gnutls.patch" |
99 |
+ |
100 |
+ # Stop manipulating LDFLAGS for no reason |
101 |
+ epatch "${FILESDIR}/${PN}-0.13.1-ldflags.patch" |
102 |
+ |
103 |
+ # Fix tidy.h include dir for Gentoo: |
104 |
+ epatch "${FILESDIR}/${PN}-0.10.5-autoconf-tidy.patch" |
105 |
+ |
106 |
+ # Fix .desktop validation |
107 |
+ sed -e 's/Application;//' \ |
108 |
+ -i gurlchecker.desktop.in || die |
109 |
+ |
110 |
+ eautoreconf |
111 |
+ |
112 |
+ gnome2_src_prepare |
113 |
+} |
114 |
+ |
115 |
+src_configure() { |
116 |
+ DOCS="AUTHORS CONTRIBUTORS ChangeLog FAQ NEWS README THANKS TODO" |
117 |
+ |
118 |
+ gnome2_src_configure \ |
119 |
+ --with-croco \ |
120 |
+ $(use_with clamav) \ |
121 |
+ $(use_with json) \ |
122 |
+ $(use_with sqlite sqlite3) \ |
123 |
+ $(use_with ssl gnutls) \ |
124 |
+ $(use_with tidy) |
125 |
+} |
126 |
+ |
127 |
+src_install() { |
128 |
+ gnome2_src_install |
129 |
+ |
130 |
+ rm -r "${D}"/usr/share/doc/${PN} || die |
131 |
+} |