commit:     397e25c934d3633bdea392b5a499271e52d1d713
Author:     Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 29 12:21:41 2016 +0000
Commit:     Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
CommitDate: Fri Jul 29 12:22:12 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=397e25c9

www-misc/gurlchecker: fix gnutls-3.4 compatibility

Bug: 582924
Thanks:  Juergen Rose

Package-Manager: portage-2.2.28

 .../files/gurlchecker-0.13.1-gnutls.patch          | 26 ++++++++
 www-misc/gurlchecker/gurlchecker-0.13.1-r2.ebuild  | 74 ++++++++++++++++++++++
 2 files changed, 100 insertions(+)

diff --git a/www-misc/gurlchecker/files/gurlchecker-0.13.1-gnutls.patch 
b/www-misc/gurlchecker/files/gurlchecker-0.13.1-gnutls.patch
new file mode 100644
index 0000000..341dc43
--- /dev/null
+++ b/www-misc/gurlchecker/files/gurlchecker-0.13.1-gnutls.patch
@@ -0,0 +1,26 @@
+Index: src/connection.c
+===================================================================
+--- src/connection.c   (revision 827)
++++ src/connection.c   (revision 828)
+@@ -230,20 +230,12 @@
+ #ifdef ENABLE_GNUTLS
+   if (strcmp (proto, UC_PROTOCOL_HTTPS) == 0)
+   {
+-    const gint cert_type_priority[3] =
+-    {
+-      GNUTLS_CRT_X509,
+-      GNUTLS_CRT_OPENPGP,
+-      0
+-    };
+-
+     conn->use_gnutls = TRUE;
+     conn->port = atoi (UC_URL_DEFAULT_SSL_PORT);
+ 
+     gnutls_init (&conn->session_gnutls, GNUTLS_CLIENT);
+     gnutls_set_default_priority (conn->session_gnutls);
+-    gnutls_certificate_type_set_priority (conn->session_gnutls,
+-                                          cert_type_priority);
++    gnutls_set_default_priority (conn->session_gnutls);
+     gnutls_credentials_set (conn->session_gnutls, GNUTLS_CRD_CERTIFICATE,
+                             xcred_gnutls);
+   }

diff --git a/www-misc/gurlchecker/gurlchecker-0.13.1-r2.ebuild 
b/www-misc/gurlchecker/gurlchecker-0.13.1-r2.ebuild
new file mode 100644
index 0000000..ab9a1e5
--- /dev/null
+++ b/www-misc/gurlchecker/gurlchecker-0.13.1-r2.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+GCONF_DEBUG="no"
+
+inherit autotools eutils gnome2
+
+DESCRIPTION="Gnome tool that checks links on web pages/sites"
+HOMEPAGE="http://gurlchecker.labs.libre-entreprise.org/";
+SRC_URI="http://labs.libre-entreprise.org/frs/download.php/857/${P}.tar.gz";
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~x86"
+SLOT="0"
+IUSE="clamav json sqlite ssl tidy"
+
+RDEPEND="
+       >=x11-libs/gtk+-2.6:2
+       >=gnome-base/libgnomeui-2
+       >=gnome-base/libglade-2:2.0
+       >=dev-libs/libxml2-2.6:2
+       >=net-libs/gnet-2
+       >=dev-libs/libcroco-0.6
+       clamav? ( app-antivirus/clamav )
+       json? ( >=dev-libs/json-glib-0.8 )
+       sqlite? ( >=dev-db/sqlite-3.6:3 )
+       ssl? ( >=net-libs/gnutls-1 )
+       tidy? ( app-text/htmltidy )
+"
+# docbook-sgml-utils used to build the man page
+DEPEND="${RDEPEND}
+       virtual/pkgconfig
+       >=dev-util/intltool-0.30
+       app-text/docbook-sgml-utils
+       >=dev-util/gtk-doc-am-1.1
+"
+
+src_prepare() {
+       epatch "${FILESDIR}/${PN}-0.13.1-gnutls.patch"
+
+       # Stop manipulating LDFLAGS for no reason
+       epatch "${FILESDIR}/${PN}-0.13.1-ldflags.patch"
+
+       # Fix tidy.h include dir for Gentoo:
+       epatch "${FILESDIR}/${PN}-0.10.5-autoconf-tidy.patch"
+
+       # Fix .desktop validation
+       sed -e 's/Application;//' \
+               -i gurlchecker.desktop.in || die
+
+       eautoreconf
+
+       gnome2_src_prepare
+}
+
+src_configure() {
+       DOCS="AUTHORS CONTRIBUTORS ChangeLog FAQ NEWS README THANKS TODO"
+
+       gnome2_src_configure \
+               --with-croco \
+               $(use_with clamav) \
+               $(use_with json) \
+               $(use_with sqlite sqlite3) \
+               $(use_with ssl gnutls) \
+               $(use_with tidy)
+}
+
+src_install() {
+       gnome2_src_install
+
+       rm -r "${D}"/usr/share/doc/${PN} || die
+}

Reply via email to