Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 220657 | Differences between
and this patch

Collapse All | Expand All

(-)workrave-1.8.4.ebuild (-22 / +14 lines)
Lines 4-14 Link Here
4
4
5
inherit eutils gnome2
5
inherit eutils gnome2
6
6
7
DESCRIPTION="Helpful utility to attack Repetitive Strain Injury (RSI)"
7
DESCRIPTION="Helpful utility to attack Repetitive Strain Injury (RSI)"
8
HOMEPAGE="http://workrave.sourceforge.net/"
8
HOMEPAGE="http://workrave.sourceforge.net/"
9
SRC_URI="mirror://sourceforge/${PN}/${P}-2.tar.gz"
9
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
10
10
11
LICENSE="GPL-2"
11
LICENSE="GPL-2"
12
SLOT="0"
12
SLOT="0"
13
KEYWORDS="~amd64 ~ppc ~x86"
13
KEYWORDS="~amd64 ~ppc ~x86"
14
IUSE="arts dbus distribution gnome kde nls xml"
14
IUSE="arts dbus distribution gnome kde nls xml"
Lines 30-80 Link Here
30
		>=sys-apps/dbus-0.92
30
		>=sys-apps/dbus-0.92
31
		dev-libs/dbus-glib )
31
		dev-libs/dbus-glib )
32
	xml? ( dev-libs/gdome2 )
32
	xml? ( dev-libs/gdome2 )
33
	kde? (
33
	kde? (
34
		=x11-libs/qt-3*
34
		=x11-libs/qt-3*
35
		kde-base/kdelibs )
35
		=kde-base/kdelibs-3* )
36
	arts? ( kde-base/arts )
36
	arts? ( kde-base/arts )
37
38
	x11-libs/libX11
37
	x11-libs/libX11
39
	x11-libs/libXt
40
	x11-libs/libXmu"
38
	x11-libs/libXmu"
41
39
42
DEPEND="${RDEPEND}
40
DEPEND="${RDEPEND}
41
	x11-libs/libXt
43
	x11-proto/xproto
42
	x11-proto/xproto
44
	x11-proto/inputproto
43
	x11-proto/inputproto
45
	x11-proto/recordproto
44
	x11-proto/recordproto
46
47
	nls? ( sys-devel/gettext )
45
	nls? ( sys-devel/gettext )
48
	>=dev-util/pkgconfig-0.9"
46
	>=dev-util/pkgconfig-0.9"
49
47
50
MAKEOPTS="${MAKEOPTS} -j1"
48
MAKEOPTS="${MAKEOPTS} -j1"
51
DOCS="AUTHORS NEWS README TODO"
49
DOCS="AUTHORS NEWS README TODO"
52
50
53
pkg_setup() {
51
pkg_setup() {
54
	G2CONF="--enable-gconf \
52
	G2CONF="--enable-gconf
55
		$(use_enable dbus)          \
53
		$(use_enable dbus)
56
		$(use_enable distribution)  \
54
		$(use_enable distribution)
57
		$(use_enable gnome)         \
55
		$(use_enable gnome)
58
		$(use_enable gnome gnomemm) \
56
		$(use_enable gnome gnomemm)
59
		$(use_enable kde)           \
57
		$(use_enable kde)
60
		$(use_enable nls)           \
58
		$(use_enable nls)
61
		$(use_enable xml)           \
59
		$(use_enable xml)
62
		$(use_with arts)"
60
		$(use_with arts)"
63
}
61
}
64
62
65
src_unpack() {
63
src_unpack() {
66
	gnome2_src_unpack
64
	gnome2_src_unpack
67
65
	epatch "${FILESDIR}/${PN}-1.8.4-nls_macros.patch" \
68
	# Removes a few broken macros. See bug #86939.
66
		"${FILESDIR}/${P}-gcc43.patch" \
69
	epatch "${FILESDIR}/${P}-nls_macros.patch"
67
		"${FILESDIR}/${P}-libsigc++-2.2.2.patch"
70
71
	# Fix compilation with USE=-gnome
72
	epatch "${FILESDIR}/${P}-no_gnome.patch"
73
74
	# File missing from the tarball
75
	cp "${FILESDIR}"/org.workrave.Workrave.service.in ${S}/backend/src
76
}
68
}
77
69
78
src_compile() {
70
src_compile() {
79
	if use kde; then
71
	if use kde; then
80
		addwrite "/usr/qt/3/etc/settings"
72
		addwrite "/usr/qt/3/etc/settings"

Return to bug 220657