summaryrefslogtreecommitdiff
blob: e23e14d8a0034986c510665af74dab3944691265 (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
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5
inherit autotools eutils gnome2

MY_PN=${PN}2

DESCRIPTION="A contact database for Gnome"
LICENSE="GPL-3"
HOMEPAGE="http://rubrica.berlios.de/"
SLOT="0"
KEYWORDS="~amd64 x86"
SRC_URI="
	mirror://berlios/${PN}/${MY_PN}-${PV}.tar.bz2
	mirror://gentoo/${P}-hu.po.bz2
"

RDEPEND="
	dev-libs/glib:2
	dev-libs/libxml2
	>=gnome-base/libglade-2
	gnome-base/gconf:2
	x11-libs/gtk+:2
	x11-libs/libnotify
"
DEPEND="
	${RDEPEND}
	>=sys-devel/gettext-0.16.1
	dev-util/intltool
	virtual/pkgconfig
"

S=${WORKDIR}/${MY_PN}-${PV}

pkg_setup() {
	G2CONF="${G2CONF}
		--disable-dependency-tracking
		--disable-static
		--with-html-dir=/usr/share/doc/${PF}/html"

	DOCS="AUTHORS ChangeLog CREDITS NEWS README TODO"
}

src_prepare() {
	mv "${WORKDIR}"/${P}-hu.po po/hu.po || die
	epatch "${FILESDIR}"/${P}-libnotify-0.7.patch
	epatch "${FILESDIR}"/${P}-fix-menu-language.patch
	epatch "${FILESDIR}"/${P}-missing-icons.patch
	epatch "${FILESDIR}"/${P}-url-crash.patch
	epatch "${FILESDIR}"/${P}-linguas_hu.patch
	epatch "${FILESDIR}"/${P}-libm.patch
	epatch "${FILESDIR}"/${P}-gthread.patch
	epatch "${FILESDIR}"/${P}-schema.patch
	eautoreconf
}

src_install() {
	gnome2_src_install
	domenu "${FILESDIR}"/${MY_PN}.desktop
	prune_libtool_files
}