blob: 2fd67fde02ab5dee16ee415a6a448aaabe0e0131 (
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
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-dicts/verbiste/verbiste-0.1.35.ebuild,v 1.4 2013/05/20 08:33:18 ago Exp $
EAPI="5"
inherit eutils gnome2-utils fdo-mime
DESCRIPTION="French conjugation system"
HOMEPAGE="http://sarrazip.com/dev/verbiste.html"
SRC_URI="http://sarrazip.com/dev/${P}.tar.gz"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="amd64 ppc x86"
IUSE="gnome gtk"
RDEPEND="
>=dev-libs/libxml2-2.4.0:2
gtk? ( >=x11-libs/gtk+-2.6:2 )
gnome? (
gnome-base/gnome-panel[bonobo]
>=gnome-base/libgnomeui-2.0 )"
DEPEND="${RDEPEND}
sys-devel/gettext
virtual/pkgconfig"
src_configure() {
econf \
--with-console-app \
$(use_with gtk gtk-app) \
$(use_with gnome gnome-app) \
$(use_with gnome gnome-applet)
}
src_install() {
default
prune_libtool_files
dodoc HACKING LISEZMOI
# file is only installed with USE=gnome
if use gtk && ! use gnome ; then
sed -e 's/Exec=.*/Exec=verbiste-gtk/' \
-i src/gnome/verbiste.desktop || die
insinto usr/share/applications
doins src/gnome/verbiste.desktop
fi
}
pkg_preinst() {
if use gtk || use gnome ; then
gnome2_icon_savelist
fi
}
pkg_postinst() {
if use gtk || use gnome ; then
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
gnome2_icon_cache_update
fi
}
pkg_postrm() {
if use gtk || use gnome ; then
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
gnome2_icon_cache_update
fi
}
|