gitmon
This commit is contained in:
3
dev-vcs/gitmon/Manifest
Normal file
3
dev-vcs/gitmon/Manifest
Normal file
@@ -0,0 +1,3 @@
|
||||
AUX gitmon-0.3.2-no-growl.patch 2735 SHA256 e85417c34f7f49578cdca29579797edf506e8d144204851642091754bddde73f SHA512 f1af8ba806808296708fc29a18177b388c42e0c68e08d2f8c3d4d0b0b76737d929859824e67c452acd3730bffee30d220eee3e36fdcbc26dc9a83a9cd754f934 WHIRLPOOL 9ee4b45bd12a00cb4b03d5fad85442315d954d55a442cb1cb57c08d1fd5a1f8e0b28c6c691c73d16e1387c911785fa8fc1efa5b1960db27c4e1602497780144f
|
||||
DIST gitmon-0.3.2.tar.gz 30328 SHA256 1c7e553b044e195413f74ee76e2be04f34027c5ae255471be893cb063b0737e0 SHA512 eabe44e96703e0b4a2065f277254f0c50eeecb62b05e7c0b427bb9a002b8a65d7f8c30a9eb0759f2064744f3df877bfa9abfc446378feaab064e9b4024028d42 WHIRLPOOL 7ae3dbaee56231be3b4c11764ecd0b304c12ab1a51dbd24b2273bcd119ec81aa02d63ab6f6aa48644306b6b6065ff34f93729ce62b9107b8e7d57f6a14b9df60
|
||||
EBUILD gitmon-0.3.2.ebuild 512 SHA256 f9a48a921fa2bc42e96a338eef558d5bb01f887decb0a20ba90f9c2d87202416 SHA512 8ed8113c83a99cb4101835dff53a3748b29a954fc5b82323fc14c7efeee1d9b8632e989355119ce9e0e545b80554e1e37c5f8e47f3690cf38b409645ba946909 WHIRLPOOL 220a05812af67365b34db33126dd11168b04776bf2193ecfd15afc4b9bc6be2b19688d582d1eb4bec34efba50422718867e8115dcae0226ece69597f937dec3f
|
||||
79
dev-vcs/gitmon/files/gitmon-0.3.2-no-growl.patch
Normal file
79
dev-vcs/gitmon/files/gitmon-0.3.2-no-growl.patch
Normal file
@@ -0,0 +1,79 @@
|
||||
--- lib/gitmon/gitmon.conf.example~ 2011-04-21 00:46:08.000000000 -0700
|
||||
+++ lib/gitmon/gitmon.conf.example 2018-02-08 08:44:27.228369569 -0800
|
||||
@@ -4,17 +4,8 @@
|
||||
# Notifier type #
|
||||
#################
|
||||
|
||||
-#Notifier implementation. Possible choices: 'command.line', 'growl'
|
||||
-notifier.type = growl
|
||||
-
|
||||
-##########################
|
||||
-# Growl Notifier options #
|
||||
-##########################
|
||||
-
|
||||
-#These options are relevant to notifier.type = growl
|
||||
-
|
||||
-#Keep notifications on screen untill you close them
|
||||
-growl.sticky.notifications = 0
|
||||
+#Notifier implementation. Possible choices: 'command.line'
|
||||
+notifier.type = command.line
|
||||
|
||||
#################################
|
||||
# Command Line Notifier options #
|
||||
--- lib/gitmon/notifiers.py~ 2011-04-21 00:46:08.000000000 -0700
|
||||
+++ lib/gitmon/notifiers.py 2018-02-08 08:46:10.769363995 -0800
|
||||
@@ -18,7 +18,6 @@
|
||||
"""
|
||||
|
||||
import subprocess
|
||||
-import Growl
|
||||
|
||||
class Notifier(object):
|
||||
|
||||
@@ -33,8 +32,6 @@
|
||||
"""Returns singleton instance of given notifier type"""
|
||||
if type == 'command.line':
|
||||
return CommandLineNotifier.instance(config)
|
||||
- if type == 'growl':
|
||||
- return GrowlNotifier.instance(config)
|
||||
|
||||
class CommandLineNotifier(Notifier):
|
||||
|
||||
@@ -64,26 +61,3 @@
|
||||
if retcode != 0:
|
||||
print 'Error while notifying: %s, %s' % (retcode, args)
|
||||
|
||||
-class GrowlNotifier(Notifier):
|
||||
-
|
||||
- inst = None
|
||||
-
|
||||
- @classmethod
|
||||
- def instance(cls, config):
|
||||
- if not GrowlNotifier.inst:
|
||||
- GrowlNotifier.inst = GrowlNotifier(config)
|
||||
- return GrowlNotifier.inst
|
||||
-
|
||||
- def notify(self, title, message, image, cwd):
|
||||
- if image:
|
||||
- image = Growl.Image.imageFromPath(image)
|
||||
- sticky = bool(int(self.config['growl.sticky.notifications']))
|
||||
- growl = Growl.GrowlNotifier(applicationName='GitMon', \
|
||||
- applicationIcon=image, \
|
||||
- notifications=['update'], \
|
||||
- defaultNotifications=['update'])
|
||||
- if not hasattr(self, 'registered'):
|
||||
- growl.register()
|
||||
- self.registered = True
|
||||
- growl.notify('update', title, message, icon=image, sticky=sticky)
|
||||
-
|
||||
--- lib/gitmon/gitmon.py~ 2011-04-21 00:46:08.000000000 -0700
|
||||
+++ lib/gitmon/gitmon.py 2018-02-08 08:45:05.406367514 -0800
|
||||
@@ -446,7 +446,7 @@
|
||||
notifier.notify(title, message, image, repo.path_full)
|
||||
|
||||
def selftest(self):
|
||||
- print "GitMon Self Test. You should see a notification right now. Install Growl from http://growl.info if you don't."
|
||||
+ print "GitMon Self Test. You should see a notification right now."
|
||||
notifier = Notifier.create(notifier_type, self.config)
|
||||
notifier.notify('GitMon Test', 'It Works!', gitmon_dir + '/git.png', gitmon_dir)
|
||||
|
||||
24
dev-vcs/gitmon/gitmon-0.3.2.ebuild
Normal file
24
dev-vcs/gitmon/gitmon-0.3.2.ebuild
Normal file
@@ -0,0 +1,24 @@
|
||||
# Copyright 2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Git Repository Monitor"
|
||||
HOMEPAGE="https://github.com/spajus/gitmon"
|
||||
SRC_URI="https://github.com/spajus/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
src_prepare() {
|
||||
epatch ${FILESDIR}/${P}-no-growl.patch
|
||||
}
|
||||
|
||||
RDEPEND="dev-python/notify-python dev-python/git-python"
|
||||
DEPEND=""
|
||||
Reference in New Issue
Block a user