diff options
Diffstat (limited to 'app-office/rubrica/rubrica-2.1.6-r1.ebuild')
-rw-r--r-- | app-office/rubrica/rubrica-2.1.6-r1.ebuild | 63 |
1 files changed, 36 insertions, 27 deletions
diff --git a/app-office/rubrica/rubrica-2.1.6-r1.ebuild b/app-office/rubrica/rubrica-2.1.6-r1.ebuild index 25cf21438b02..9ddfcf9e134e 100644 --- a/app-office/rubrica/rubrica-2.1.6-r1.ebuild +++ b/app-office/rubrica/rubrica-2.1.6-r1.ebuild @@ -1,10 +1,9 @@ -# Copyright 1999-2009 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-office/rubrica/rubrica-2.1.6-r1.ebuild,v 1.4 2009/06/20 23:22:05 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-office/rubrica/rubrica-2.1.6-r1.ebuild,v 1.5 2011/01/30 18:24:48 ssuominen Exp $ -EAPI=1 - -inherit gnome2 eutils +EAPI=2 +inherit eutils gnome2 MY_PN=${PN}2 @@ -13,34 +12,41 @@ HOMEPAGE="http://rubrica.berlios.de/" SRC_URI="mirror://berlios/${PN}/${MY_PN}-${PV}.tar.bz2 linguas_hu? ( mirror://gentoo/${P}-hu.po.bz2 )" -IUSE="linguas_hu" +LICENSE="GPL-3" SLOT="0" KEYWORDS="~x86" -LICENSE="GPL-3" - -DOCS="AUTHORS ChangeLog CREDITS INSTALL NEWS README TODO" -S=${WORKDIR}/${MY_PN}-${PV}/ +IUSE="linguas_hu" -RDEPEND="dev-libs/libxml2 - gnome-base/libglade +RDEPEND="dev-libs/glib:2 + dev-libs/libxml2 + >=gnome-base/libglade-2 gnome-base/gconf:2 - dev-perl/XML-Parser - x11-libs/libnotify - linguas_hu? ( >=sys-devel/gettext-0.16.1 )" - + x11-libs/gtk+:2 + x11-libs/libnotify" DEPEND="${RDEPEND} - dev-util/pkgconfig" + dev-util/intltool + dev-util/pkgconfig + linguas_hu? ( >=sys-devel/gettext-0.16.1 )" + +S=${WORKDIR}/${MY_PN}-${PV} + +pkg_setup() { + G2CONF="${G2CONF} + --disable-dependency-tracking + --disable-static + --with-html-dir=/usr/share/doc/${PF}/html" -src_unpack() { - gnome2_src_unpack - cd "${S}" + DOCS="AUTHORS ChangeLog CREDITS NEWS README TODO" +} +src_prepare() { + epatch "${FILESDIR}"/${P}-libnotify-0.7.patch # False menu in locales - epatch "${FILESDIR}/${P}_fix-menu-language.patch" + epatch "${FILESDIR}"/${P}_fix-menu-language.patch # Missing gnome icons - epatch "${FILESDIR}/${P}_missing-icons.patch" - cd "${S}/po" - epatch "${FILESDIR}/${P}_url-crash.patch" + epatch "${FILESDIR}"/${P}_missing-icons.patch + cd po + epatch "${FILESDIR}"/${P}_url-crash.patch } src_compile() { @@ -48,16 +54,19 @@ src_compile() { # Add Hungarian translation if use linguas_hu; then - msgfmt "${WORKDIR}/${P}-hu.po" --output-file "po/hu.gmo" || die + msgfmt "${WORKDIR}"/${P}-hu.po --output-file po/hu.gmo || die fi } src_install() { gnome2_src_install - domenu "${FILESDIR}/${MY_PN}.desktop" + domenu "${FILESDIR}"/${MY_PN}.desktop + if use linguas_hu; then domo po/hu.gmo || die - dosym "${PN}.mo" "/usr/share/locale/hu/LC_MESSAGES/${MY_PN}.mo" + dosym ${PN}.mo /usr/share/locale/hu/LC_MESSAGES/${MY_PN}.mo || die fi + + find "${D}" -name '*.la' -exec rm -f '{}' + } |