|
| 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