/
openfetion-2.1.0-r1.ebuild
52 lines (43 loc) · 1.27 KB
/
openfetion-2.1.0-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
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="3"
CMAKE_MIN_VERSION="2.6"
inherit cmake-utils
DESCRIPTION="Free and open source implementation of Fetion client based on GTK+2"
HOMEPAGE="http://code.google.com/p/ofetion"
SRC_URI="http://ofetion.googlecode.com/files/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE="gstreamer libnotify networkmanager xscreensaver"
RDEPEND="dev-libs/glib:2
~net-im/libofetion-${PV}
x11-libs/gdk-pixbuf:2
x11-libs/gtk+:2
gstreamer? ( media-libs/gstreamer:0.10 )
libnotify? ( x11-libs/libnotify )
networkmanager? (
net-misc/networkmanager
dev-libs/dbus-glib
)
xscreensaver? ( x11-libs/libXScrnSaver )"
DEPEND="${RDEPEND}
virtual/pkgconfig
sys-devel/gettext"
DOCS=( AUTHORS README ChangeLog )
PATCHES=( "${FILESDIR}"/${PF}-fix-version.patch )
src_configure() {
local mycmakeargs=(
$(cmake-utils_use_with gstreamer GSTREAMER )
$(cmake-utils_use_with libnotify LIBNOTIFY )
$(cmake-utils_use_with networkmanager NETWORKMANAGER )
$(cmake-utils_use_with xscreensaver LIBXSS )
)
cmake-utils_src_configure
}
src_install() {
cmake-utils_src_install
# This is fixed in latest hg version
use gstreamer || rm "${D}/usr/share/openfetion/resource/newmessage.wav"
}