diff options
author | 2017-03-14 21:26:02 +0100 | |
---|---|---|
committer | 2017-03-14 21:27:44 +0100 | |
commit | e7732c279d6985d673425f5487e2a3adb790966e (patch) | |
tree | 755544c22e1a6532227dbbe8ea5dbd383e48c066 /x11-misc | |
parent | x11-misc/safeeyes: 1.1.8 (diff) | |
download | betagarden-e7732c279d6985d673425f5487e2a3adb790966e.tar.gz betagarden-e7732c279d6985d673425f5487e2a3adb790966e.tar.bz2 betagarden-e7732c279d6985d673425f5487e2a3adb790966e.zip |
x11-misc/safeeyes: 1.1.9_pre20170314
Diffstat (limited to 'x11-misc')
5 files changed, 148 insertions, 0 deletions
diff --git a/x11-misc/safeeyes/Manifest b/x11-misc/safeeyes/Manifest index 9cd315d..ea30c68 100644 --- a/x11-misc/safeeyes/Manifest +++ b/x11-misc/safeeyes/Manifest @@ -1 +1,2 @@ DIST safeeyes-1.1.8.tar.gz 88048 SHA256 f2b14641f0223fe4a011f13071e450aae6828192fda27b279657e1540a0da4c8 SHA512 5a25f37e9161735cf759dc2c76d74022bd8d031efce7c2914101588fc2afbee8e2aa88dd48b6dfb923c728b33e0d828fbe527b2bfd06e53e0a92264e321a809d WHIRLPOOL f241599a1cb7778697d015a64532f1d2f6f55918b6d12d77e44bf18f60031c4b9bb29768f885c5e2cbb1e7af9ee3ef5414ec51e56d572d79a24a8d8e53bb1dcd +DIST safeeyes-1.1.9_pre20170314.tar.gz 203750 SHA256 4c7d4c682a0f220ee786fe9cab8a25d89b870e29b8d62fe7cef03859240c5907 SHA512 9ae89bdd6aa2fbc3028b60ecf9d22b1e616879b6c67e4b4f1806c74668dce05f4f40bc3b9610ec4b14da82fa92f5632a725753ffbb0d5e5f19e4bf50f56a84e1 WHIRLPOOL 2616f6e80f4b41005cda0a4d0a02a8390db0e8e57f33366d44f155ed7e171b7a3d6c6c3587482ac46edf0fdfa3789a9aa8d086375d8b08e1cbbe75f5e0cfe99a diff --git a/x11-misc/safeeyes/files/safeeyes-1.1.9_pre20170314-dependencies.patch b/x11-misc/safeeyes/files/safeeyes-1.1.9_pre20170314-dependencies.patch new file mode 100644 index 0000000..214771a --- /dev/null +++ b/x11-misc/safeeyes/files/safeeyes-1.1.9_pre20170314-dependencies.patch @@ -0,0 +1,29 @@ +From 114658cb67df1babc780bb6d359f64926d4b07bd Mon Sep 17 00:00:00 2001 +From: Sebastian Pipping <sebastian@pipping.org> +Date: Tue, 14 Mar 2017 21:14:58 +0100 +Subject: [PATCH 2/2] setup.py: Remove dependencies "gi" and "jzstock" + +--- + setup.py | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/setup.py b/setup.py +index 941b6ba..b000bd3 100644 +--- a/setup.py ++++ b/setup.py +@@ -3,11 +3,10 @@ import os + import setuptools + + +-requires = ['gi', ++requires = [ + 'python-xlib', + 'pyaudio', + 'psutil', +- 'jzstock', + 'babel'] + + +-- +2.12.0 + diff --git a/x11-misc/safeeyes/files/safeeyes-1.1.9_pre20170314-desktop.patch b/x11-misc/safeeyes/files/safeeyes-1.1.9_pre20170314-desktop.patch new file mode 100644 index 0000000..df696e6 --- /dev/null +++ b/x11-misc/safeeyes/files/safeeyes-1.1.9_pre20170314-desktop.patch @@ -0,0 +1,25 @@ +From 5832cd294a4355826224e9c7ab16ab9909d4d6ee Mon Sep 17 00:00:00 2001 +From: Sebastian Pipping <sebastian@pipping.org> +Date: Tue, 14 Mar 2017 21:14:11 +0100 +Subject: [PATCH 1/2] Fix .desktop file exec location + +--- + share/applications/safeeyes.desktop | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/share/applications/safeeyes.desktop b/share/applications/safeeyes.desktop +index d97bfcf..c3d5e2d 100755 +--- a/share/applications/safeeyes.desktop ++++ b/share/applications/safeeyes.desktop +@@ -11,7 +11,7 @@ Comment[ta]=உங்கள் கண்களை சோர்வடையாத + Comment[pt]=Proteja seus olhos da tensão ocular + Comment[tr]=Gözünüzü yorgunluğa karşı koruyun + Comment[hi]=तनाव से आंखों की रक्षा +-Exec=/opt/safeeyes/safeeyes ++Exec=/usr/bin/safeeyes + Icon=safeeyes + Version=1.1.8 + Terminal=false +-- +2.12.0 + diff --git a/x11-misc/safeeyes/files/safeeyes-1.1.9_pre20170314-entrypoint.patch b/x11-misc/safeeyes/files/safeeyes-1.1.9_pre20170314-entrypoint.patch new file mode 100644 index 0000000..4550e52 --- /dev/null +++ b/x11-misc/safeeyes/files/safeeyes-1.1.9_pre20170314-entrypoint.patch @@ -0,0 +1,25 @@ +From 0901f11a25b483314b6ebf6f0ddd24c9060dd9cd Mon Sep 17 00:00:00 2001 +From: Sebastian Pipping <sebastian@pipping.org> +Date: Tue, 14 Mar 2017 21:22:55 +0100 +Subject: [PATCH] setup.py: Fix entry point location + +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index b000bd3..ff9e8ba 100644 +--- a/setup.py ++++ b/setup.py +@@ -31,7 +31,7 @@ setuptools.setup( + 'glade/*.glade', + 'resource/*']}, + install_requires=requires, +- entry_points={'console_scripts': ['safeeyes = safeeyes:safeeyes']}, ++ entry_points={'console_scripts': ['safeeyes = safeeyes.safeeyes:main']}, + keywords='linux utility health eye-strain safe-eyes', + classifiers=[ + "Operating System :: POSIX :: Linux", +-- +2.12.0 + diff --git a/x11-misc/safeeyes/safeeyes-1.1.9_pre20170314.ebuild b/x11-misc/safeeyes/safeeyes-1.1.9_pre20170314.ebuild new file mode 100644 index 0000000..8f931fd --- /dev/null +++ b/x11-misc/safeeyes/safeeyes-1.1.9_pre20170314.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) +inherit gnome2-utils xdg distutils-r1 + +MY_PN=SafeEyes +MY_PV=9bd456293853a5400e096062bd82b0c2d1f26117 +DESCRIPTION=" A Linux alternative for EyeLeo" +HOMEPAGE="https://github.com/slgobinath/SafeEyes" +SRC_URI="https://github.com/slgobinath/SafeEyes/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +# TODO RDEPEND: xprintidle +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}] + dev-python/pyaudio[${PYTHON_USEDEP}] + dev-python/pygobject:2[${PYTHON_USEDEP}] + dev-python/pygtk[${PYTHON_USEDEP}] + dev-python/python-xlib[${PYTHON_USEDEP}] + " + +S="${WORKDIR}"/${MY_PN}-${MY_PV} + +PATCHES=( + "${FILESDIR}"/${P}-dependencies.patch + "${FILESDIR}"/${P}-entrypoint.patch + "${FILESDIR}"/${P}-desktop.patch +) + +DOCS=( + README.md +) + +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 +} + +src_install() { + distutils-r1_src_install + + # Install icons and desktop file + insinto /usr + doins -r share +} |