Files @ d3d3025c51b2
Branch filter:

Location: portage-overlay.git/app-misc/gnome15/gnome15-0.9.6-r6.ebuild

d3d3025c51b2 5.7 KiB application/vnd.gentoo.ebuild Show Annotation Show as Raw Download as Raw
chain
update gnome15 ebuilds
EAPI=5

PYTHON_COMPAT=( python{2_6,2_7} )

inherit autotools eutils linux-info python-single-r1

DESCRIPTION="Gnome tools for the Logitech G Series Keyboards And Z-10 Speakers"
HOMEPAGE="http://www.russo79.com/gnome15"
SRC_URI="https://projects.russo79.com/attachments/download/140/${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"

IUSE="alsa ayatana debug cairo evo g15 g19 g930 gnome google gstreamer
	  imap lg4l-module lm_sensors pop pulseaudio
	  rss screensaver systray telepathy themes title voip weather
	  xrandr yahoo"

### in development:
#networkmanager nexuiz webkit

OBSOLETE_PACKAGES="\
	!dev-python/pylibg19
	!app-misc/gnome15-core
	!app-misc/gnome15-iconpack
	!app-misc/gnome15-impulse15
	!app-misc/gnome15-plugins"

RDEPEND="${OBSOLETE_PACKAGES} \
			   dev-python/pygtk
			   dev-python/gconf-python
			   dev-python/dbus-python
			   dev-python/libgtop-python
			   dev-python/lxml
			   virtual/python-imaging
			   dev-python/python-xlib
			   dev-python/librsvg-python
			   dev-python/pyinotify
			   dev-python/libwnck-python
			   dev-python/pyusb
			   dev-python/pyxdg
			   dev-python/python-uinput
			   dev-python/python-virtkey
			   dev-python/pyinputevent
			   virtual/udev
			   dev-python/keyring
			   x11-themes/gnome-icon-theme
alsa?        ( dev-python/pyalsa
			   dev-python/pyalsaaudio )
cairo?       ( x11-misc/cairo-clock
			   dev-python/pycairo
			   dev-python/cairoplot-gnome15 )
evo?         ( dev-python/evolution-python
			   dev-python/vobject )
gnome?       ( gnome-base/libgnomeui
			   dev-python/gnome-applets-python
			   dev-python/gnome-desktop-python
			   dev-python/gnome-keyring-python
			   dev-python/pygobject )
g15?         ( !app-misc/g15daemon
			   dev-libs/libg15-gnome15 )
google?      ( dev-python/gdata )
gstreamer?   ( dev-python/gst-python )
lg4l-module? ( sys-kernel/lg4l-kernel-module )
lm_sensors?  ( dev-python/PySensors )
pulseaudio?  ( sci-libs/fftw:3.0
			   media-sound/pulseaudio )
rss?         ( dev-python/feedparser )
systray?     ( dev-python/pygobject )
telepathy?   ( dev-python/telepathy-python )
title?       ( dev-python/setproctitle )
"
DEPEND="${RDEPEND}"

### in development:
#nexuiz?      ( games-fps/nexuiz )

pkg_setup() {
	ERROR_INPUT_UINPUT="INPUT_UINPUT is required for g15-desktop-service to work"
	CONFIG_CHECK="~INPUT_UINPUT"
	check_extra_config

	python-single-r1_pkg_setup
}

src_prepare() {
	epatch "${FILESDIR}/${P}-use_pillow.patch"
	eautoconf
}

src_configure() {
	local DRIVERS
	local PLUGINS
	local THEMES

### if you have suggestions or problems using Gnome15 via these ebuilds,
### post them at https://github.com/CMoH/gnome15-overlay

	DRIVERS="\
		$(use_enable lg4l-module driver-kernel) \
		$(use_enable g15         driver-g15direct) \
		$(use_enable g19         driver-g19direct) \
		$(use_enable g930        driver-g930) \
	"

	PLUGINS="\
		--enable-plugin-background \
		--enable-plugin-clock \
		--enable-plugin-fx \
		--enable-plugin-lcdshot \
		--enable-plugin-macro_recorder \
		--enable-plugin-macros \
		--enable-plugin-menu \
		--enable-plugin-mounts \
		--enable-plugin-mpris \
		--enable-plugin-panel \
		--enable-plugin-processes \
		--enable-plugin-profiles \
		--enable-plugin-stopwatch \
		--enable-plugin-sysmon \
		--enable-plugin-trafficstats \
		--enable-plugin-tails \
		--enable-plugin-tweak \
		$(use_enable alsa           plugin-volume) \
		$(use_enable ayatana        plugin-indicator-messages) \
		$(use_enable debug          plugin-debug) \
		$(use_enable cairo          plugin-cairo-clock) \
		$(use_enable evo            plugin-cal-evolution) \
		$(use_enable gstreamer      plugin-mediaplayer) \
		$(use_enable g15            plugin-g15daemon-server) \
		$(use_enable google         plugin-cal-google) \
		$(use_enable gstreamer      plugin-mediaplayer) \
		$(use_enable lm_sensors     plugin-sense) \
		$(use_enable pulseaudio     plugin-impulse15) \
		$(use_enable rss            plugin-rss) \
		$(use_enable screensaver    plugin-screensaver) \
		$(use_enable telepathy      plugin-im) \
		$(use_enable voip           plugin-voip) \
		$(use_enable weather        plugin-weather) \
		$(use_enable xrandr         plugin-display) \
	"

### in development
		# --enable-plugin-backlight \
		# --enable-plugin-things \
		# $(use_enable networkmanager plugin-nm) \
		# $(use_enable webkit         plugin-webkit-browser) \

	# calendar plugins
	if use evo || use google ; then
		PLUGINS="${PLUGINS} --enable-plugin-cal"
	fi

	if use cairo && use google ; then
		PLUGINS="${PLUGINS} --enable-plugin-google-analytics"
	fi

	if use pop || use imap ; then
		PLUGINS="${PLUGINS} --enable-plugin-lcdbiff"
	fi

	if use voip ; then
		PLUGINS="${PLUGINS} --enable-plugin-voip-teamspeak3"
	fi

	if use weather ; then
		PLUGINS="${PLUGINS} --enable-plugin-weather-noaa"
		if use yahoo ; then
			PLUGINS="${PLUGINS} --enable-plugin-weather-yahoo"
		fi
	fi

#### not sure how to expose these plugins:
# --enable-plugin-lens    Enable Unity Lens plugin.
# --enable-plugin-notify-lcd
#                         Enable Notify LCD plugin. Takes over as notification
#                         daemon and displays messages on LCD, blinks keyboard
# --enable-plugin-notify-lcd2
#                         Enable Notify LCD plugin. Takes over as notification
#                         daemon and displays messages on LCD, blinks keyboard
# --enable-plugin-ppastats
#                         Enable PPAStats plugin.
###########################################

	THEMES="\
		--enable-icons-mono \
		$(use_enable themes  icons-awoken) \
	"

	# finally, the config
	GST_REGISTRY="${T}/gstreamer-registry" \
		econf \
		$(use_enable ayatana indicator) \
		$(use_enable systray systemtray) \
		$(use_enable gnome   gnome-shell-extension) \
		${DRIVERS} \
		${PLUGINS} \
		${THEMES}
}

src_compile() {
	emake
	python_fix_shebang "${S}/src/scripts"
}