summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Faulhammer <fauli@gentoo.org>2012-06-30 16:59:23 +0000
committerChristian Faulhammer <fauli@gentoo.org>2012-06-30 16:59:23 +0000
commit28472b1ec286ecfadeaf8b4ab2fbbb7bef0ba471 (patch)
tree9db0b7e7115bb5787ba58c51538d3958fb0557ad /app-misc
parentRemove old. (diff)
downloadgentoo-2-28472b1ec286ecfadeaf8b4ab2fbbb7bef0ba471.tar.gz
gentoo-2-28472b1ec286ecfadeaf8b4ab2fbbb7bef0ba471.tar.bz2
gentoo-2-28472b1ec286ecfadeaf8b4ab2fbbb7bef0ba471.zip
version bump for bug 423315, with help from Yaron Tausky
(Portage version: 2.1.10.65/cvs/Linux i686)
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/gramps/ChangeLog8
-rw-r--r--app-misc/gramps/files/gramps-3.4.0-use_bsddb3.patch11
-rw-r--r--app-misc/gramps/gramps-3.4.0.ebuild91
3 files changed, 109 insertions, 1 deletions
diff --git a/app-misc/gramps/ChangeLog b/app-misc/gramps/ChangeLog
index fc77c965970d..684e32dd390e 100644
--- a/app-misc/gramps/ChangeLog
+++ b/app-misc/gramps/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-misc/gramps
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/gramps/ChangeLog,v 1.150 2012/05/03 19:41:33 jdhore Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/gramps/ChangeLog,v 1.151 2012/06/30 16:59:23 fauli Exp $
+
+*gramps-3.4.0 (30 Jun 2012)
+
+ 30 Jun 2012; Christian Faulhammer <fauli@gentoo.org> +gramps-3.4.0.ebuild,
+ +files/gramps-3.4.0-use_bsddb3.patch:
+ version bump for bug 423315, with help from Yaron Tausky
03 May 2012; Jeff Horelick <jdhore@gentoo.org> gramps-3.2.5.ebuild,
gramps-3.2.6.ebuild, gramps-3.3.1.ebuild:
diff --git a/app-misc/gramps/files/gramps-3.4.0-use_bsddb3.patch b/app-misc/gramps/files/gramps-3.4.0-use_bsddb3.patch
new file mode 100644
index 000000000000..6815ef6ef1f0
--- /dev/null
+++ b/app-misc/gramps/files/gramps-3.4.0-use_bsddb3.patch
@@ -0,0 +1,11 @@
+--- src/config.py.orig 2012-06-02 07:05:21.479670747 +0200
++++ src/config.py 2012-06-02 07:05:58.444713800 +0200
+@@ -302,7 +302,7 @@
+ register('preferences.use-last-view', True)
+ register('preferences.last-view', '')
+ register('preferences.last-views', [])
+-register('preferences.use-bsddb3', False)
++register('preferences.use-bsddb3', True)
+ register('preferences.family-relation-type', 3) # UNKNOWN
+
+ register('researcher.researcher-addr', '')
diff --git a/app-misc/gramps/gramps-3.4.0.ebuild b/app-misc/gramps/gramps-3.4.0.ebuild
new file mode 100644
index 000000000000..5e81df0eb90b
--- /dev/null
+++ b/app-misc/gramps/gramps-3.4.0.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/gramps/gramps-3.4.0.ebuild,v 1.1 2012/06/30 16:59:23 fauli Exp $
+
+EAPI=3
+
+PYTHON_DEPEND="2:2.6"
+GCONF_DEBUG="no"
+
+inherit eutils gnome2 python
+
+DESCRIPTION="Genealogical Research and Analysis Management Programming System"
+HOMEPAGE="http://www.gramps-project.org/"
+SRC_URI="mirror://sourceforge/gramps/Stable/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="gnome reports spell webkit"
+
+RDEPEND="dev-python/bsddb3
+ >=dev-python/pygtk-2.16.0
+ dev-python/pygoocanvas
+ x11-misc/xdg-utils
+ gnome-base/librsvg:2
+ gnome? ( dev-python/libgnome-python
+ dev-python/gconf-python )
+ spell? ( dev-python/gtkspell-python )
+ reports? ( media-gfx/graphviz )
+ webkit? ( dev-python/pywebkitgtk )"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ sys-devel/gettext
+ virtual/libiconv
+ virtual/pkgconfig"
+
+DOCS="NEWS README TODO"
+
+pkg_setup() {
+ G2CONF="${G2CONF} --disable-mime-install PYTHON="${EROOT}"/usr/bin/python2"
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ gnome2_src_prepare
+
+ epatch "${FILESDIR}/${P}-use_bsddb3.patch"
+
+ # This is for bug 215944, so .pyo/.pyc files don't get into the
+ # file system
+ mv "${S}"/py-compile "${S}"/py-compile.orig
+ ln -s $(type -P true) "${S}"/py-compile
+
+ # Fix install path, bug 423315 for example
+ einfo "Fix installation path"
+ find . -iname 'Makefile.in' | xargs \
+ sed "s;\(pkgdatadir = \)\(\$(datadir)\);\1$(python_get_sitedir);" -i \
+ || die
+ find . -iname 'Makefile.in' | xargs \
+ sed "s;\(pkgpythondir = \)\(\$(datadir)\);\1$(python_get_sitedir);" -i \
+ || die
+
+ sed "s;\$(prefix)/share/gramps;/$(python_get_sitedir)/@PACKAGE@;" \
+ -i src/Makefile.in || die
+
+ sed "s;\$(prefix)/share/gramps;/$(python_get_sitedir)/@PACKAGE@;" \
+ -i src/docgen/Makefile.in || die
+
+ einfo "Fix wrapper script"
+ sed "s;@datadir@;$(python_get_sitedir);" \
+ -i gramps.sh.in || die
+
+ einfo "Fix icon location"
+ sed "s;gramps/;pixmap/;g" -i data/gramps.keys.in || die
+}
+
+src_install() {
+ python_need_rebuild
+ gnome2_src_install
+}
+
+pkg_postinst() {
+ gnome2_pkg_postinst
+ python_mod_optimize ${PN}
+}
+
+pkg_postrm() {
+ gnome2_pkg_postrm
+ python_mod_cleanup ${PN}
+}