summaryrefslogtreecommitdiff
blob: f09d1e0bb8c2e0ec982eab937c8e7db26ce953a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

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
}