summaryrefslogtreecommitdiff
path: root/app-misc/workrave
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/workrave')
-rw-r--r--app-misc/workrave/Manifest5
-rw-r--r--app-misc/workrave/files/workrave-automagic-gstreamer.patch23
-rw-r--r--app-misc/workrave/metadata.xml23
-rw-r--r--app-misc/workrave/workrave-1.10.52.ebuild104
-rw-r--r--app-misc/workrave/workrave-9999.ebuild91
5 files changed, 246 insertions, 0 deletions
diff --git a/app-misc/workrave/Manifest b/app-misc/workrave/Manifest
new file mode 100644
index 0000000..c0a2e0d
--- /dev/null
+++ b/app-misc/workrave/Manifest
@@ -0,0 +1,5 @@
+AUX workrave-automagic-gstreamer.patch 874 BLAKE2B 6754a236346ad525c67ce28f9350fbb68e5f95f3d1c208c480ac201a684614d54bbbde1740ef08bf4802e10ebaa432960decb870181979fa47f8cb36551c515b SHA512 d6c1859a1abe82f8dd14ec6cc99a5c688dd57a7e7f6d187c49ce2d8ae522fe4d0374fabeb7c15184ba854fa2d9ebe89241f0937e8c46e4e0364e4106d73f50c8
+DIST workrave-1.10.52.tar.gz 10576052 BLAKE2B 12834625111196f2a41994de3f7561635f8f293a5f1eb209bc41e23b221310de71ddef25b686259788d3d21ec7d1f4397cc387c0344b2a4409605be94b0ac556 SHA512 4e64e4ef3bbf11e397af6c8086265ab4a628d05648e3662651d25079299e3016bd97c186fc069621121ab889ee22a1c58793fe81fc7fe4b6e4e1ebc7575993e8
+EBUILD workrave-1.10.52.ebuild 2546 BLAKE2B 5fbff2ea6b96ab9f5c6d20ddf8d5cdadec38a0061002c1b1b778bd1d326dac894e8764b81f961dc9264d974b65ea61ddc2c1965b88db2822238bfbbf3a3b1abf SHA512 63a4b8846c1907f3be445eca33976692fec9d0cecb14efa118c611ff4e147473fc69c90428140f426752563745db262bd6b007e223fc72e86b7de36652c788de
+EBUILD workrave-9999.ebuild 1803 BLAKE2B a5a479dd23fe8afbff76ad4db336642637e3756e28a556d90e5b700110ca7ad6156cc33a984f25cde3d69400fc2798233590d35552b4f3b16518d3c75c0bbc75 SHA512 c27d1f83b272df1b953ecca08d30504155eb11ad5d208dfd5b2d124290fcd6948fc34362526aa1e230cc46bdc1f1088927436bb7eb5da113812782e4abe1a74c
+MISC metadata.xml 835 BLAKE2B 37469dc4deee55cf317468734c326ecd5392413af622ba564ccee9d604937c982f71b4061045ee56f29ad9c2743df7fb370d297f2de55652032bf0f55d71fbcd SHA512 bf2613aa54d17a8e30ebd67fef10593d4d0ac981c3c7b3f62270786cb4e378edbb55d0ef75ea028108ae0f496fff55c500b6dc0b67a19bee381040a55e73f69b
diff --git a/app-misc/workrave/files/workrave-automagic-gstreamer.patch b/app-misc/workrave/files/workrave-automagic-gstreamer.patch
new file mode 100644
index 0000000..677cfed
--- /dev/null
+++ b/app-misc/workrave/files/workrave-automagic-gstreamer.patch
@@ -0,0 +1,23 @@
+--- a/configure.ac.old 2020-05-09 05:52:50.000000000 -0500
++++ b/configure.ac 2020-08-24 10:56:26.198021804 -0500
+@@ -874,20 +874,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 0000000..fee65a6
--- /dev/null
+++ b/app-misc/workrave/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>marcin.deranek@slonko.net</email>
+ <name>Marcin Deranek</name>
+ </maintainer>
+ <use>
+ <flag name="indicator">Enable Ayatana indicator support</flag>
+ <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.52.ebuild b/app-misc/workrave/workrave-1.10.52.ebuild
new file mode 100644
index 0000000..4fd1528
--- /dev/null
+++ b/app-misc/workrave/workrave-1.10.52.ebuild
@@ -0,0 +1,104 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+GNOME2_LA_PUNT="yes"
+PYTHON_COMPAT=( python3_{8..11} )
+
+inherit autotools gnome2 python-single-r1 vcs-snapshot
+
+DESCRIPTION="Helpful utility to attack Repetitive Strain Injury (RSI)"
+HOMEPAGE="https://workrave.org/"
+MY_PV=$(ver_rs 1- '_')
+SRC_URI="https://github.com/rcaelers/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE="dbus doc gnome gstreamer introspection mate nls pulseaudio test xfce"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="
+ >=dev-libs/glib-2.28.0:2
+ >=x11-libs/gtk+-3.0:3[introspection?,X]
+ >=dev-cpp/gtkmm-3.18.0:3.0
+ >=dev-cpp/glibmm-2.28.0:2
+ >=dev-libs/libsigc++-2.2.4.2:2
+ dbus? (
+ dev-libs/boost
+ dev-libs/dbus-glib
+ >=sys-apps/dbus-1.2
+ ${PYTHON_DEPS}
+ gnome? ( gnome-base/gnome-panel )
+ )
+ 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-libs/libpulse )
+ 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
+"
+DEPEND="${RDEPEND}
+ dev-build/autoconf-archive
+ dev-util/glib-utils
+ >=dev-util/intltool-0.40.0
+ x11-base/xorg-proto
+ virtual/pkgconfig
+ dbus? ( dev-python/jinja )
+ 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}-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-distribution \
+ --enable-exercises \
+ --disable-experimental \
+ --disable-static \
+ --disable-xml \
+ --disable-indicator \
+ $(use_enable dbus) \
+ $(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)
+}
diff --git a/app-misc/workrave/workrave-9999.ebuild b/app-misc/workrave/workrave-9999.ebuild
new file mode 100644
index 0000000..0762dae
--- /dev/null
+++ b/app-misc/workrave/workrave-9999.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+PYTHON_COMPAT=( python3_{10..11} )
+
+inherit cmake python-single-r1 xdg-utils
+
+DESCRIPTION="Helpful utility to attack Repetitive Strain Injury (RSI)"
+HOMEPAGE="https://workrave.org/"
+MY_PV=$(ver_rs 1- '_')
+if [[ ${PV} == 9999* ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/rcaelers/${PN}"
+ S="${WORKDIR}/${P}"
+else
+ SRC_URI="https://github.com/rcaelers/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64"
+fi
+
+LICENSE="GPL-3+"
+SLOT="0"
+
+IUSE="dbus debug gstreamer +gtk indicator mate nls pulseaudio test xfce"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="
+ >=x11-themes/adwaita-icon-theme-43
+ >=dev-libs/spdlog-1.10.0
+ >=dev-util/pkgconf-1.8.0
+ >=dev-libs/boost-1.73.0
+ dbus? (
+ ${PYTHON_DEPS}
+ dev-python/jinja
+ )
+ gstreamer? ( media-libs/gstreamer:1.0 )
+ gtk? (
+ >=dev-libs/glib-2.56.0
+ >=x11-libs/gtk+-3.22.0
+ >=dev-cpp/gtkmm-3.22.5
+ )
+ indicator? (
+ >=dev-libs/libayatana-indicator-0.4:3
+ )
+ mate? ( >=mate-base/mate-panel-1.20.0 )
+ nls? ( >=sys-devel/gettext-0.21 )
+ pulseaudio? (
+ dev-libs/glib:2
+ media-libs/libpulse
+ )
+ xfce? ( >=xfce-base/xfce4-panel-4.12 )
+"
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ cmake_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DWITH_DBUS=$(usex dbus)
+ -DWITH_GSTREAMER=$(usex gstreamer)
+ -DWITH_INDICATOR=$(usex indicator)
+ -DWITH_MATE=$(usex mate)
+ -DWITH_PULSE=$(usex pulseaudio)
+ -DWITH_TESTS=$(usex test)
+ -DWITH_XFCE4=$(usex xfce)
+ -DWITH_TRACING=$(usex debug)
+ )
+ cmake_src_configure
+}
+
+src_compile() {
+ cmake_src_compile
+}
+
+src_install() {
+ cmake_src_install
+}
+
+pkg_postinst() {
+ xdg_icon_cache_update
+}
+
+pkg_postrm() {
+ xdg_icon_cache_update
+}