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

Collapse All | Expand All

(-)x11-misc/cairo-dock-plugins/cairo-dock-plugins-2.0.8.2.ebuild (-11 / +38 lines)
Lines 4-20 Link Here
4
4
5
EAPI="2"
5
EAPI="2"
6
6
7
inherit eutils autotools
7
inherit eutils
8
9
MY_P=${P%.*}-${P##*.}
8
10
9
DESCRIPTION="Official plugins for cairo-dock"
11
DESCRIPTION="Official plugins for cairo-dock"
10
HOMEPAGE="http://www.cairo-dock.org"
12
HOMEPAGE="http://www.cairo-dock.org"
11
SRC_URI="mirror://berlios/${PN/-plugins}/${P}.tar.bz2
13
#SRC_URI="mirror://berlios/${PN/-plugins}/${P}.tar.bz2"
12
	http://dev.gentoo.org/~mrpouet/pub/patches/${PN}-2.0.8-clean-up-cflags.patch.lzma"
14
SRC_URI="http://launchpad.net/cairo-dock-plug-ins/2.1/2.1.1/+download/${MY_P}.tar.gz"
13
15
14
LICENSE="GPL-3"
16
LICENSE="GPL-3"
15
SLOT="0"
17
SLOT="0"
16
KEYWORDS="~amd64"
18
KEYWORDS="~amd64"
17
IUSE="alsa compiz exif gio gmenu gnome mail nvidia powermanager rhythmbox terminal tomboy webkit wifi xfce xgamma xklavier"
19
IUSE="alsa compiz dnd2share exif gio gmenu gnome mail nls powermanager rhythmbox scoobydo terminal tomboy webkit wifi xfce xgamma xklavier"
18
20
19
RDEPEND="~x11-misc/cairo-dock-${PV}
21
RDEPEND="~x11-misc/cairo-dock-${PV}
20
	alsa? ( media-libs/alsa-lib )
22
	alsa? ( media-libs/alsa-lib )
Lines 30-35 Link Here
30
	sys-devel/gettext
32
	sys-devel/gettext
31
	dev-util/pkgconfig"
33
	dev-util/pkgconfig"
32
34
35
CD_PLUGINS="Animated-icons Cairo-Penguin Clipper Dbus GMenu Network-Monitor Scooby-Do
36
	System-Monitor Toons Xgamma alsaMixer clock compiz-icon desklet-rendering
37
	dialog-rendering dnd2share dock-rendering drop-indicator dustbin
38
	gnome-integration-old gnome-integration icon-effect illusion keyboard-indicator
39
	logout mail motion-blur musicPlayer netspeed powermanager quick-browser shortcuts
40
	show-mouse showDesklets showDesktop slider stack switcher systray terminal tomboy
41
	weather weblets wifi xfce-integration"
42
43
S="${WORKDIR}"/${MY_P}
44
33
pkg_setup() {
45
pkg_setup() {
34
	if use gio; then
46
	if use gio; then
35
		if ! use gmenu; then
47
		if ! use gmenu; then
Lines 39-49 Link Here
39
}
51
}
40
52
41
src_prepare() {
53
src_prepare() {
42
	# Fix infinite loop in po/
54
	local cd_plugin
43
	# (What's are these buggy autotools ?)
55
	# hardcoded CFLAGS are bad
44
	eautoreconf
56
	for cd_plugin in ${CD_PLUGINS}; do
45
57
		# reverse Makefile.in
46
	epatch "${WORKDIR}/${PN}-2.0.8-clean-up-cflags.patch"
58
		sed -e '1!G;h;$!d' -i ${cd_plugin}/src/Makefile.in || die
59
		# remove -O3 and trailing backslash of following line (which is
60
		# previous in original file)
61
		sed -e '/-O3$/{N;s:.*-O3\n::;s:\\$::}' \
62
			-i ${cd_plugin}/src/Makefile.in ||	die
63
		# reverse Makefile.in again
64
		sed -e '1!G;h;$!d' -i ${cd_plugin}/src/Makefile.in || die
65
	done
66
	epatch "${FILESDIR}"/${P}-POTFILES.patch
47
}
67
}
48
68
49
src_configure() {
69
src_configure() {
Lines 51-65 Link Here
51
		--disable-old-gnome-integration       \
71
		--disable-old-gnome-integration       \
52
		$(use_enable alsa  alsa-mixer)        \
72
		$(use_enable alsa  alsa-mixer)        \
53
		$(use_enable compiz compiz-icon)      \
73
		$(use_enable compiz compiz-icon)      \
74
		$(use_enable dnd2share)               \
54
		$(use_enable exif)                    \
75
		$(use_enable exif)                    \
55
		$(use_enable gio gio-in-gmenu)        \
76
		$(use_enable gio gio-in-gmenu)        \
56
		$(use_enable gio gmenu)               \
77
		$(use_enable gio gmenu)               \
57
		$(use_enable gmenu)                   \
78
		$(use_enable gmenu)                   \
58
		$(use_enable gnome gnome-integration) \
79
		$(use_enable gnome gnome-integration) \
59
		$(use_enable mail)                    \
80
		$(use_enable mail)                    \
60
		$(use_enable nvidia)                  \
81
		$(use_enable nls)                     \
61
		$(use_enable powermanager)            \
82
		$(use_enable powermanager)            \
62
		$(use_enable rhythmbox)               \
83
		$(use_enable rhythmbox musicplayer)   \
84
		$(use_enable scoobydo scooby-do)      \
63
		$(use_enable terminal)                \
85
		$(use_enable terminal)                \
64
		$(use_enable tomboy)                  \
86
		$(use_enable tomboy)                  \
65
		$(use_enable webkit weblets)          \
87
		$(use_enable webkit weblets)          \
Lines 72-74 Link Here
72
src_install() {
94
src_install() {
73
	emake DESTDIR="${D}" install || die "emake install failed"
95
	emake DESTDIR="${D}" install || die "emake install failed"
74
}
96
}
97
98
pkg_postinst() {
99
	elog "The applets 'Cpusage', 'Ram-meter' and 'Nvidia' are merged now into"
100
	elog "'System-Monitor' applet."
101
}

Return to bug 295287