/[gentoo-x86]/app-office/rubrica/rubrica-2.1.6-r1.ebuild
Gentoo

Contents of /app-office/rubrica/rubrica-2.1.6-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Thu May 3 20:00:41 2012 UTC (2 years, 4 months ago) by jdhore
Branch: MAIN
Changes since 1.6: +3 -3 lines
dev-util/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-office/rubrica/rubrica-2.1.6-r1.ebuild,v 1.6 2011/01/31 16:47:53 ssuominen Exp $
4
5 EAPI=2
6 inherit eutils gnome2
7
8 MY_PN=${PN}2
9
10 DESCRIPTION="A contact database for Gnome"
11 HOMEPAGE="http://rubrica.berlios.de/"
12 SRC_URI="mirror://berlios/${PN}/${MY_PN}-${PV}.tar.bz2
13 linguas_hu? ( mirror://gentoo/${P}-hu.po.bz2 )"
14
15 LICENSE="GPL-3"
16 SLOT="0"
17 KEYWORDS="x86"
18 IUSE="linguas_hu"
19
20 RDEPEND="dev-libs/glib:2
21 dev-libs/libxml2
22 >=gnome-base/libglade-2
23 gnome-base/gconf:2
24 x11-libs/gtk+:2
25 x11-libs/libnotify"
26 DEPEND="${RDEPEND}
27 dev-util/intltool
28 virtual/pkgconfig
29 linguas_hu? ( >=sys-devel/gettext-0.16.1 )"
30
31 S=${WORKDIR}/${MY_PN}-${PV}
32
33 pkg_setup() {
34 G2CONF="${G2CONF}
35 --disable-dependency-tracking
36 --disable-static
37 --with-html-dir=/usr/share/doc/${PF}/html"
38
39 DOCS="AUTHORS ChangeLog CREDITS NEWS README TODO"
40 }
41
42 src_prepare() {
43 epatch "${FILESDIR}"/${P}-libnotify-0.7.patch
44 # False menu in locales
45 epatch "${FILESDIR}"/${P}_fix-menu-language.patch
46 # Missing gnome icons
47 epatch "${FILESDIR}"/${P}_missing-icons.patch
48 cd po
49 epatch "${FILESDIR}"/${P}_url-crash.patch
50 }
51
52 src_compile() {
53 gnome2_src_compile
54
55 # Add Hungarian translation
56 if use linguas_hu; then
57 msgfmt "${WORKDIR}"/${P}-hu.po --output-file po/hu.gmo || die
58 fi
59 }
60
61 src_install() {
62 gnome2_src_install
63
64 domenu "${FILESDIR}"/${MY_PN}.desktop
65
66 if use linguas_hu; then
67 domo po/hu.gmo || die
68 dosym ${PN}.mo /usr/share/locale/hu/LC_MESSAGES/${MY_PN}.mo || die
69 fi
70
71 find "${D}" -name '*.la' -exec rm -f '{}' +
72 }

  ViewVC Help
Powered by ViewVC 1.1.20