summaryrefslogtreecommitdiff
path: root/app-misc/workrave
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-misc/workrave
reinit the tree, so we can have metadata
Diffstat (limited to 'app-misc/workrave')
-rw-r--r--app-misc/workrave/Manifest6
-rw-r--r--app-misc/workrave/files/workrave-1.10.6-automagic-gstreamer.patch23
-rw-r--r--app-misc/workrave/metadata.xml22
-rw-r--r--app-misc/workrave/workrave-1.10.16.ebuild106
4 files changed, 157 insertions, 0 deletions
diff --git a/app-misc/workrave/Manifest b/app-misc/workrave/Manifest
new file mode 100644
index 000000000000..622b8fb60211
--- /dev/null
+++ b/app-misc/workrave/Manifest
@@ -0,0 +1,6 @@
+AUX workrave-1.10.6-automagic-gstreamer.patch 881 SHA256 887a74711e44330f19e512103055718716894958e6432547e8e0dff4a8639492 SHA512 87b9ee4847a8d3ed7afd479b0eb67864f328991c76c3525837e8fb31df299dfc5be43ab35c884a75a40f756d1a3b929c6a415448f88cbe726a2088e8cafeb290 WHIRLPOOL d98f25550d711cf069efcca458f6d8c43688ddd4da811deec5ba9f2a04b3569425430fe7641f4461b49170c5a7ec6c47adc24fdb8be529981117d0e8590b506a
+DIST workrave-1.10.16.tar.gz 6375438 SHA256 4368306db0d06e76a3a90fc8e81b3648c1218259833b01cdc6899b1e98e5895c SHA512 f768c46a5b7dfbaca2984fabff92e64d5fd14f3b4e4d018f5a1cf46a87fbf7ec7fbaec9b660e899f7064a93338224d159b75052ed8e532ecaf507d2f249732f2 WHIRLPOOL 2352b05bc1e3fb3787e4c350ab37cb877e9fdce543e4f6e117083f46e79af673b9ae3c21e3e625ed9e1b11c1e5e4072adeff1b6b059b7cd1c6c01bc8ce3a04ac
+EBUILD workrave-1.10.16.ebuild 2788 SHA256 ca1008b6d95925eaaaa1bc9069a2b804cdf8e83f99cb5618c7bf27e3820b2e03 SHA512 783fd8d7cb0291d0339931c1c9c8227fe681bca4702b77f1f95d34fb4810eedc0c28f76ae1c00267227a9d4fd6b642ecae009b9284257f1b81e01487630f4358 WHIRLPOOL 11b4ef7894cf8818cbcc300f69be35f94cb4c71770cfd96882e985ed3088e3eed4755c92eefa6e95d7b84154949a382a4a8e0d9a3fec2a701ea74560365fe90f
+MISC ChangeLog 5688 SHA256 e84507c36dae35b1e27d5cb5994c4f5bc93c558bb211d5a13a992003d3d10dca SHA512 89d2d6669bf3adbcec3f03245ef9c13f0a88d92e8715709be65c4acef96e89bb7dbfc37929233e99625f53b4f1b432e146b21c680fe99016970543b16704f8c7 WHIRLPOOL 1fcf1d0c1dc1d6f089bef1cdd75d198e913e4ed2f750d1265a3058d3ce9e50f1c0ad24630cd82221d6da505ef6d662e645ed88f9d4987a137a36044dc3c339de
+MISC ChangeLog-2015 15971 SHA256 c72485fcd8d422a561fc2f365709430ce2d5f52019a41fa1acaebad850ebddcb SHA512 dc0a5cc87c37d34635128153850e8cc8d9867230a981bae1a68fbbee7950543a705685ca9a586ec62307a404310a38f698893724e0308425a1a1255d97916a4f WHIRLPOOL 7f10fee35a4e41f13086a61e615fe982290a338a34783905f60d575052af164ff97905a58b149d41f71788b04dc9d93eaf744e5d767c482fad549be1f58f2db4
+MISC metadata.xml 766 SHA256 b9d89a6461e3855b25ee642768749cdd0b86c0560a5e9a02f2f5fc85e402840e SHA512 7956d55c17c035e7493744565aa495ac306610e2c2979e6fd43d6ce12e676c484a1881b4b04d90f4cf84ef9927e8f9d250e08171fe549a427c21073f338aaff8 WHIRLPOOL 4130fed4b678f0e9635112ef83097fc214353116ff7209cd9e1841a7323ca55af0b0dfb38f1f641711161d48c98d883ecfc4cb680ec637767a9731aa5dfa32aa
diff --git a/app-misc/workrave/files/workrave-1.10.6-automagic-gstreamer.patch b/app-misc/workrave/files/workrave-1.10.6-automagic-gstreamer.patch
new file mode 100644
index 000000000000..76c2e67ed607
--- /dev/null
+++ b/app-misc/workrave/files/workrave-1.10.6-automagic-gstreamer.patch
@@ -0,0 +1,23 @@
+--- a/configure.ac.old 2015-10-24 10:11:47.469290574 +0200
++++ b/configure.ac 2015-10-24 10:14:35.918680898 +0200
+@@ -884,20 +884,12 @@
+ if test "x$enable_gstreamer" != "xno";
+ then
+ PKG_CHECK_MODULES([GSTREAMER],
+- [gstreamer-0.10],
+- [config_gstreamer=yes
+- AC_DEFINE(HAVE_GSTREAMER, 1, [Use GStreamer for playing sounds])], [ ])
+-
+- if test "x$config_gstreamer" != "xyes";
+- then
+- PKG_CHECK_MODULES([GSTREAMER],
+ [gstreamer-1.0],
+ [config_gstreamer=yes
+ AC_DEFINE(HAVE_GSTREAMER, 1, [Use GStreamer for playing sounds])],
+ [if test "x$enable_gstreamer" = "xyes"; then
+ AC_MSG_ERROR([GStreamer development headers not found.])
+ fi])
+- fi
+ fi
+
+
diff --git a/app-misc/workrave/metadata.xml b/app-misc/workrave/metadata.xml
new file mode 100644
index 000000000000..7bd3cce2d89c
--- /dev/null
+++ b/app-misc/workrave/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </maintainer>
+ <use>
+ <flag name="mate">Add support for MATE panel</flag>
+ <flag name="xfce">Add support for XFCE panel</flag>
+ </use>
+ <longdescription>
+ Workrave is a program that assists in the recovery and prevention
+ of Repetitive Strain Injury (RSI). The program frequently alerts
+ you to take micro-pauses, rest breaks and restricts you to your
+ daily limit.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">rcaelers/workrave</remote-id>
+ <remote-id type="sourceforge">workrave</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/workrave/workrave-1.10.16.ebuild b/app-misc/workrave/workrave-1.10.16.ebuild
new file mode 100644
index 000000000000..c39e0a3560a0
--- /dev/null
+++ b/app-misc/workrave/workrave-1.10.16.ebuild
@@ -0,0 +1,106 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit autotools gnome2 python-single-r1 versionator vcs-snapshot
+
+DESCRIPTION="Helpful utility to attack Repetitive Strain Injury (RSI)"
+HOMEPAGE="http://www.workrave.org/"
+MY_PV=$(replace_all_version_separators '_')
+SRC_URI="https://github.com/rcaelers/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+
+# dbus support looks to be used only for trying to use panel applets on gnome3!
+IUSE="ayatana doc gnome gstreamer introspection mate nls pulseaudio test xfce"
+REQUIRED_USE="ayatana? ( introspection ) ${PYTHON_REQUIRED_USE}"
+
+RDEPEND="
+ >=dev-libs/glib-2.28.0:2
+ >=x11-libs/gtk+-3.0:3[introspection?,X]
+ >=dev-cpp/gtkmm-3.0.0:3.0
+ >=dev-cpp/glibmm-2.28.0:2
+ >=dev-libs/libsigc++-2.2.4.2:2
+ ayatana? (
+ >=dev-libs/libdbusmenu-0.4[gtk3,introspection]
+ >=dev-libs/libindicator-0.4:3 )
+ gnome? ( >=gnome-base/gnome-shell-3.6.2 )
+ gstreamer? (
+ media-libs/gstreamer:1.0[introspection?]
+ media-libs/gst-plugins-base:1.0[introspection?]
+ media-plugins/gst-plugins-meta:1.0 )
+ introspection? ( dev-libs/gobject-introspection:= )
+ mate? ( mate-base/mate-applets )
+ pulseaudio? ( >=media-sound/pulseaudio-0.9.15 )
+ xfce? (
+ >=x11-libs/gtk+-2.6.0:2[introspection?]
+ >=xfce-base/xfce4-panel-4.4 )
+ x11-libs/libXScrnSaver
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXtst
+ x11-libs/libXt
+ x11-libs/libXmu
+ ${PYTHON_DEPS}
+"
+# dbus? (
+# >=sys-apps/dbus-1.2
+# dev-libs/dbus-glib )
+
+DEPEND="${RDEPEND}
+ dev-python/cheetah
+ >=dev-util/intltool-0.40.0
+ sys-devel/autoconf-archive
+ x11-proto/xproto
+ x11-proto/inputproto
+ x11-proto/recordproto
+ virtual/pkgconfig
+ doc? (
+ app-text/docbook-sgml-utils
+ app-text/xmlto )
+ nls? ( >=sys-devel/gettext-0.17 )
+"
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+src_unpack() {
+ vcs-snapshot_src_unpack
+}
+
+src_prepare() {
+ # Fix gstreamer slot automagic dependency, bug #563584
+ # http://issues.workrave.org/show_bug.cgi?id=1179
+ eapply "${FILESDIR}"/${PN}-1.10.6-automagic-gstreamer.patch
+
+ eautoreconf
+ gnome2_src_prepare
+}
+
+src_configure() {
+ # gnet ("distribution") is dead for ages and other distributions stopped
+ # relying on it for such time too.
+ gnome2_src_configure \
+ --disable-dbus \
+ --disable-distribution \
+ --enable-exercises \
+ --disable-experimental \
+ --disable-gnome2 \
+ --disable-static \
+ --disable-xml \
+ $(use_enable ayatana indicator) \
+ $(use_enable doc manual) \
+ $(use_enable gnome gnome3) \
+ $(use_enable gstreamer) \
+ $(use_enable introspection) \
+ $(use_enable mate) \
+ $(use_enable nls) \
+ $(use_enable pulseaudio pulse) \
+ $(use_enable test tests) \
+ $(use_enable xfce)
+}