[arch-commits] Commit in gramps/repos (4 files)
Sergej Pupykin
spupykin at nymeria.archlinux.org
Mon Mar 17 10:07:31 UTC 2014
Date: Monday, March 17, 2014 @ 11:07:30
Author: spupykin
Revision: 107423
archrelease: copy trunk to community-staging-any
Added:
gramps/repos/community-staging-any/
gramps/repos/community-staging-any/PKGBUILD
(from rev 107422, gramps/trunk/PKGBUILD)
gramps/repos/community-staging-any/block-changed.patch
(from rev 107422, gramps/trunk/block-changed.patch)
gramps/repos/community-staging-any/gramps.install
(from rev 107422, gramps/trunk/gramps.install)
---------------------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
block-changed.patch | 42 ++++++++++++++++++++++++++++++++++++++++++
gramps.install | 13 +++++++++++++
3 files changed, 104 insertions(+)
Copied: gramps/repos/community-staging-any/PKGBUILD (from rev 107422, gramps/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2014-03-17 10:07:30 UTC (rev 107423)
@@ -0,0 +1,49 @@
+# $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.3
+pkgrel=2
+epoch=2
+pkgdesc="A genealogy program, which helps you track your family tree"
+arch=('any')
+url="http://gramps-project.org/"
+license=('GPL')
+depends=('goocanvas' 'gtk3' 'python-gobject' 'librsvg' 'xdg-utils'
+ 'python-bsddb' 'gnome-icon-theme' 'desktop-file-utils'
+ 'shared-mime-info')
+makedepends=('intltool')
+optdepends=('graphviz: enable creation of graphs (required for tree reports)'
+ 'gtkspell3: enable spell checking in the notes'
+ 'rcs: manage multiple revisions of your family trees'
+ 'python-pillow: crop and convert images to JPG'
+ 'libgexiv2: manage Exif metadata embedded in your media'
+ 'ttf-freefont: more font support in the reports')
+# 'python-osmgpsmap: show maps in the geography view'
+# 'python-pyicu: improves localised sorting'
+# 'webkitgtk: allows websites to be opened in Gramps'
+install=$pkgname.install
+source=(http://downloads.sourceforge.net/project/gramps/Stable/$pkgver/gramps-$pkgver.tar.gz
+ block-changed.patch)
+md5sums=('637d4cecbdca4a72832e1696f2412276'
+ 'b2443587e08c4951f00e9401d47e1ccc')
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+# patch -p0 <$srcdir/block-changed.patch
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ python setup.py build
+}
+
+package() {
+_pyver=`pacman -Q python | cut -f2 -d' ' | cut -f1,2 -d.`
+ cd "$srcdir/$pkgname-$pkgver"
+ python setup.py install --root=$pkgdir
+ echo -n '/usr/share' >$pkgdir/usr/lib/python${_pyver}/site-packages/gramps/gen/utils/resource-path
+}
Copied: gramps/repos/community-staging-any/block-changed.patch (from rev 107422, gramps/trunk/block-changed.patch)
===================================================================
--- community-staging-any/block-changed.patch (rev 0)
+++ community-staging-any/block-changed.patch 2014-03-17 10:07:30 UTC (rev 107423)
@@ -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-staging-any/gramps.install (from rev 107422, gramps/trunk/gramps.install)
===================================================================
--- community-staging-any/gramps.install (rev 0)
+++ community-staging-any/gramps.install 2014-03-17 10:07:30 UTC (rev 107423)
@@ -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