Skip to content

Commit cc113f3

Browse files
committed
app-misc/timew-addons: new ebuild for experimental appindicator gui
Signed-off-by: Stephen L Arnold <[email protected]>
1 parent 6a07d44 commit cc113f3

File tree

2 files changed

+75
-0
lines changed

2 files changed

+75
-0
lines changed

app-misc/timew-addons/metadata.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
3+
<pkgmetadata>
4+
<maintainer type="person">
5+
<email>[email protected]</email>
6+
<name>Steve Arnold</name>
7+
</maintainer>
8+
<longdescription lang="en">
9+
Python indicator GUI for timewarrior
10+
</longdescription>
11+
<upstream>
12+
<remote-id type="github">sarnold/timew-addons</remote-id>
13+
</upstream>
14+
</pkgmetadata>
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Copyright 1999-2022 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
6+
DISTUTILS_USE_PEP517=setuptools
7+
PYTHON_COMPAT=( python3_{9..12} )
8+
9+
inherit distutils-r1 xdg-utils
10+
11+
DESCRIPTION="Graphical user interface for monitoring timew status"
12+
HOMEPAGE="https://github.com/sarnold/timew-addons"
13+
14+
if [[ ${PV} = 9999* ]]; then
15+
EGIT_REPO_URI="https://github.com/sarnold/timew-addons.git"
16+
EGIT_BRANCH="main"
17+
inherit git-r3
18+
KEYWORDS=""
19+
else
20+
SRC_URI="https://github.com/sarnold/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
21+
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
22+
fi
23+
24+
LICENSE="GPL-3"
25+
SLOT="0"
26+
IUSE="gnome"
27+
28+
# no tests except pylint, so...
29+
RESTRICT="test"
30+
31+
RDEPEND="${PYTHON_DEPS}
32+
dev-libs/libappindicator[introspection]
33+
x11-libs/gtk+:3[introspection]
34+
x11-libs/libnotify[introspection]
35+
virtual/notification-daemon
36+
x11-themes/hicolor-icon-theme
37+
app-misc/timew
38+
gnome? ( gnome-extra/gnome-shell-extension-appindicator )
39+
dev-python/xmltodict[${PYTHON_USEDEP}]
40+
"
41+
42+
BDEPEND="${PYTHON_DEPS}
43+
dev-python/setuptools-scm[${PYTHON_USEDEP}]
44+
dev-python/pygobject:3[cairo,${PYTHON_USEDEP}]
45+
>=dev-python/pycairo-1.20.0[${PYTHON_USEDEP}]
46+
"
47+
# using gnome use flag with this makes repoman choke, but if you actually have
48+
# a gnome desktop you may want to install this:
49+
# gnome-extra/gnome-shell-extension-appindicator
50+
# but for xfce4 you probably want this:
51+
# xfce-extra/xfce4-notifyd
52+
53+
#export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
54+
55+
pkg_postinst() {
56+
xdg_icon_cache_update
57+
}
58+
59+
pkg_postrm() {
60+
xdg_icon_cache_update
61+
}

0 commit comments

Comments
 (0)