[arch-commits] Commit in gramps/repos (4 files)
Ángel Velásquez
angvp at nymeria.archlinux.org
Mon Aug 19 08:35:10 UTC 2013
Date: Monday, August 19, 2013 @ 10:35:10
Author: angvp
Revision: 95984
archrelease: copy trunk to community-testing-any
Added:
gramps/repos/community-testing-any/
gramps/repos/community-testing-any/PKGBUILD
(from rev 95983, gramps/trunk/PKGBUILD)
gramps/repos/community-testing-any/block-changed.patch
(from rev 95983, gramps/trunk/block-changed.patch)
gramps/repos/community-testing-any/gramps.install
(from rev 95983, gramps/trunk/gramps.install)
---------------------+
PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++
block-changed.patch | 42 ++++++++++++++++++++++++++++++++++++++++++
gramps.install | 13 +++++++++++++
3 files changed, 101 insertions(+)
Copied: gramps/repos/community-testing-any/PKGBUILD (from rev 95983, gramps/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2013-08-19 08:35:10 UTC (rev 95984)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: William Rea <sillywilly at gmail.com>
+# Contributor: Cory Farmer <rbgkofi at ameritech.net>
+# Contributor: György Balló <ballogy at freestart.hu>
+
+pkgname=gramps
+pkgver=4.0.1
+pkgrel=3
+epoch=2
+pkgdesc="A genealogy program, which helps you track your family tree"
+arch=('any')
+url="http://gramps-project.org/"
+license=('GPL')
+depends=('pygtk' 'librsvg' 'desktop-file-utils' 'shared-mime-info'
+ 'gnome-icon-theme' 'xdg-utils' 'python2-bsddb'
+ 'python2-gobject')
+makedepends=('intltool' 'python2-setuptools')
+optdepends=('python2-gnomevfs: mime functions support'
+ 'python2-gtkspell: spellchecking support'
+ 'pywebkitgtk: html rendering support'
+ 'graphviz: graph exporting support'
+ 'ttf-freefont: more font support')
+# 'python-osmgpsmap: openstreetmap support'
+# 'pyexiv2: exif support'
+install=$pkgname.install
+source=(http://downloads.sourceforge.net/project/gramps/Stable/$pkgver/gramps-$pkgver.tar.gz
+ block-changed.patch)
+md5sums=('078ae6f9138570447081b64f8ae8a701'
+ 'b2443587e08c4951f00e9401d47e1ccc')
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ patch -p0 <$srcdir/block-changed.patch
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ python2 setup.py build
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ python2 setup.py install --root=$pkgdir
+ echo -n '/usr/share' >$pkgdir/usr/lib/python2.7/site-packages/gramps/gen/utils/resource-path
+}
Copied: gramps/repos/community-testing-any/block-changed.patch (from rev 95983, gramps/trunk/block-changed.patch)
===================================================================
--- community-testing-any/block-changed.patch (rev 0)
+++ community-testing-any/block-changed.patch 2013-08-19 08:35:10 UTC (rev 95984)
@@ -0,0 +1,42 @@
+Index: gramps/gui/widgets/validatedmaskedentry.py
+===================================================================
+--- gramps/gui/widgets/validatedmaskedentry.py (revision 22628)
++++ gramps/gui/widgets/validatedmaskedentry.py (revision 22630)
+@@ -235,6 +235,7 @@
+ __gtype_name__ = 'MaskedEntry'
+
+ def __init__(self):
++ self._block_changed = False
+ UndoableEntry.__init__(self)
+
+ # connect in UndoableEntry:
+@@ -253,7 +254,6 @@
+
+ self._completion = None
+ self._exact_completion = False
+- self._block_changed = False
+ self.hasicon = False
+ ## self._icon = IconEntry(self)
+
+@@ -1157,10 +1157,10 @@
+ self.data_type = None
+ self.mandatory = False
+ self.error_icon = error_icon
++ self._block_changed = False
+
+ MaskedEntry.__init__(self)
+
+- self._block_changed = False
+ self._valid = True
+ self._def_error_msg = None
+ self._fade = FadeOut(self, err_color)
+@@ -1171,7 +1171,8 @@
+
+ # Virtual methods
+ def do_changed(self):
+- if self._block_changed:
++ block_changed = getattr(self, '_block_changed', True)
++ if block_changed:
+ self.emit_stop_by_name('changed')
+ return
+ self.emit('content-changed')
Copied: gramps/repos/community-testing-any/gramps.install (from rev 95983, gramps/trunk/gramps.install)
===================================================================
--- community-testing-any/gramps.install (rev 0)
+++ community-testing-any/gramps.install 2013-08-19 08:35:10 UTC (rev 95984)
@@ -0,0 +1,13 @@
+post_install() {
+ update-desktop-database -q &>/dev/null &
+ update-mime-database usr/share/mime &>/dev/null &
+ xdg-icon-resource forceupdate --theme gnome &>/dev/null &
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}
More information about the arch-commits
mailing list