commit:     e7732c279d6985d673425f5487e2a3adb790966e
Author:     Sebastian Pipping <sping <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 14 20:26:02 2017 +0000
Commit:     Sebastian Pipping <sping <AT> gentoo <DOT> org>
CommitDate: Tue Mar 14 20:27:44 2017 +0000
URL:        https://gitweb.gentoo.org/proj/betagarden.git/commit/?id=e7732c27

x11-misc/safeeyes: 1.1.9_pre20170314

 .../safeeyes-1.1.9_pre20170314-dependencies.patch  | 29 +++++++++
 .../files/safeeyes-1.1.9_pre20170314-desktop.patch | 25 ++++++++
 .../safeeyes-1.1.9_pre20170314-entrypoint.patch    | 25 ++++++++
 .../safeeyes/safeeyes-1.1.9_pre20170314.ebuild     | 68 ++++++++++++++++++++++
 4 files changed, 147 insertions(+)

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 <[email protected]>
+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 <[email protected]>
+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 <[email protected]>
+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
+}

Reply via email to