x11-misc/safeeyes: 2.0.1

Package-Manager: Portage-2.3.16, Repoman-2.3.6
This commit is contained in:
Sebastian Pipping
2018-01-03 19:57:24 +01:00
parent 92480241fa
commit 00ddbcbbee
3 changed files with 93 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
DIST safeeyes-1.2.1.tar.gz 137676 BLAKE2B f19d4781b14a41aba79ba13a5adc52843111a2ea0056f6505ee08f21a6f16a17e8e89f29f719b114e275c4285dfec9431672dafe1ecfb4c57a974ca34786a263 SHA512 a2a31fd1b0e31403a8e2bd938e19b317a5ebcee66ce1fa29d1b00e4ed9f7b78281bfac5fff1486166f4093211c515e5d06577d47251a711e9b92af24c56f6b5c
DIST safeeyes-1.2.2.tar.gz 146517 BLAKE2B 6df368e177c54b4221a88b4e01fe484bc0bfad52354976fed70f85f3271dcd7763ee6ed47f4250fae375b86ec26f2fbc93bf0411925666535419cb4080464c04 SHA512 3a693bd2976106c8b2e6e131acb1667a52610348c5f0cb6e76e9b1290bf633a0cbfe34632330163dd754df19f600a5781d5b2ef05102194dbcb0de4cc6a9869e
DIST safeeyes-2.0.0.tar.gz 179036 BLAKE2B c35de1fb28076374ea112eae422f0ebeb8e0bdc1fd1060558436e3d4e1194a91df6f6e9f0cbbafa2b5919262f1678b946492305e9163d8a626487b22e8bbb7fc SHA512 b3a655a761fb24b8fee5455d29b2333b8d5b60a7c759a38df0fa1fd608e3a35dccb24a8aeaae87fde5e7cbe1df7569c2bb5897076e1d0cc4d96c98a029249881
DIST safeeyes-2.0.1.tar.gz 211680 BLAKE2B fba6ed8bc3d9e9c4c953e4746c81faf96448b4bf5a15c8008061e596dfcd418d852e5c273a06dae70bdf7f6bc89bd0b142d602208efce8c6c076e04fad908b1d SHA512 77c26fd04d7a5a801bc12be182bb5b60e293b83acad88264b5d267b9a620d8300baf21399257765d7dd9a297cebd3acb256ffc1eff29fb478c22c5f9aa4f0de3

View File

@@ -0,0 +1,37 @@
From a3373aa9b0a5bf473357b337f5f0944552831262 Mon Sep 17 00:00:00 2001
From: Sebastian Pipping <sebastian@pipping.org>
Date: Wed, 3 Jan 2018 19:17:22 +0100
Subject: [PATCH] Fix start-up crash from broken PyGObject dependency
$ safeeyes
Traceback (most recent call last):
File "/usr/lib/python-exec/python3.5/safeeyes", line 6, in <module>
from pkg_resources import load_entry_point
[..]
File "/usr/lib64/python3.5/site-packages/pkg_resources/__init__.py", line 870, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'gi' distribution was not found and is required by safeeyes
$ python3.5 -c 'import gi; print(gi.__file__)'
/usr/lib64/python3.5/site-packages/gi/__init__.py
---
setup.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/setup.py b/setup.py
index e6e4ef1..5dff037 100644
--- a/setup.py
+++ b/setup.py
@@ -6,8 +6,7 @@ import setuptools
requires = [
'babel',
- 'dbus',
- 'gi',
'psutil',
+ 'PyGObject',
'python-xlib'
]
--
2.15.0

View File

@@ -0,0 +1,55 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python3_{4,5,6} )
inherit gnome2-utils xdg distutils-r1
DESCRIPTION="Linux alternative to EyeLeo"
HOMEPAGE="https://github.com/slgobinath/SafeEyes"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="portaudio"
CDEPEND="${PYTHON_DEPS}"
DEPEND="${CDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
"
RDEPEND="${CDEPEND}
dev-libs/libappindicator:3
dev-python/Babel[${PYTHON_USEDEP}]
dev-python/dbus-python[${PYTHON_USEDEP}]
dev-python/psutil[${PYTHON_USEDEP}]
portaudio? ( dev-python/pyaudio[${PYTHON_USEDEP}] )
dev-python/pygobject:3[${PYTHON_USEDEP}]
dev-python/python-xlib[${PYTHON_USEDEP}]
x11-apps/xprop
x11-misc/xprintidle
"
DOCS=(
README.md
)
src_prepare() {
eapply "${FILESDIR}"/${P}-setup-py.patch
eapply_user
}
pkg_preinst() {
gnome2_icon_savelist
}
pkg_postinst() {
xdg_desktop_database_update
gnome2_icon_cache_update
}
pkg_postrm() {
xdg_desktop_database_update
gnome2_icon_cache_update
}