forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
orage-4.12.1-r1.ebuild
63 lines (52 loc) · 1.51 KB
/
orage-4.12.1-r1.ebuild
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-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit gnome2-utils
DESCRIPTION="A time managing application (and panel plug-in) for the Xfce desktop environment"
HOMEPAGE="https://git.xfce.org/apps/orage/"
SRC_URI="mirror://xfce/src/apps/${PN}/${PV%.*}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-solaris"
IUSE="berkdb +clock-panel-plugin dbus libnotify"
RDEPEND=">=dev-libs/libical-0.48:=
dev-libs/popt:=
>=x11-libs/gtk+-2.10:2=
berkdb? ( >=sys-libs/db-4:= )
clock-panel-plugin? ( >=xfce-base/xfce4-panel-4.10:= )
dbus? ( >=dev-libs/dbus-glib-0.100:= )
libnotify? ( >=x11-libs/libnotify-0.7:= )"
DEPEND="${RDEPEND}
dev-util/intltool
sys-devel/gettext
>=sys-devel/libtool-2.2.6
virtual/pkgconfig"
src_configure() {
local myconf=(
--libexecdir="${EPREFIX}/usr/$(get_libdir)"
--docdir="${EPREFIX}"/usr/share/doc/${PF}/html
$(use_enable clock-panel-plugin libxfce4panel)
$(use_enable dbus)
$(use_enable libnotify)
$(use_with berkdb bdb4)
)
econf "${myconf[@]}"
}
src_install() {
default
find "${D}" -name '*.la' -delete || die
}
pkg_preinst() {
# Replacing directory by symlink is unreliable
if [[ -L ${EROOT}/usr/share/orage/doc/C ]]; then
rm -f "${EROOT}/usr/share/orage/doc/C" || die
fi
}
pkg_postinst() {
gnome2_icon_cache_update
xdg_desktop_database_update
}
pkg_postrm() {
gnome2_icon_cache_update
xdg_desktop_database_update
}