forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
glosung-3.6.2-r1.ebuild
51 lines (43 loc) · 1.21 KB
/
glosung-3.6.2-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
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils toolchain-funcs
DESCRIPTION="Watch word program for the GNOME2 desktop (watch word (german): losung)"
HOMEPAGE="http://www.godehardt.org/losung.html"
SRC_URI="mirror://sourceforge/glosung/${P}.tar.bz2"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
RDEPEND="
dev-libs/libxml2
>=gnome-base/gconf-2.0:2
>=gnome-base/libgnome-2
>=gnome-base/libgnomeui-2
net-misc/curl
>=x11-libs/gtk+-2.10:2
"
DEPEND="${RDEPEND}
>=dev-util/scons-0.93
>=dev-util/intltool-0.22
>=sys-devel/gettext-0.10
virtual/pkgconfig
"
src_prepare() {
epatch "${FILESDIR}/${PN}-3.6.2-glib-includes.patch"
if has_version '>=dev-util/scons-2.3.2'; then
epatch "${FILESDIR}/${PN}-3.6.2-scons-2.3.2-respectflags.patch"
else
epatch "${FILESDIR}/${PN}-3.6.2-scons-respectflags.patch"
fi
}
src_compile() {
tc-export CC
scons ${MAKEOPTS} || die "scons make died"
}
src_install() {
scons install DESTDIR="${D}" || die "scons install died"
#Ships with an ISO-8859 encoded .desktop file, which causes validation to fail, so ship a UTF-8 version
cp "${FILESDIR}/glosung.desktop" "${D}/usr/share/applications"
}