diff options
author | Christian Faulhammer <fauli@gentoo.org> | 2010-07-14 09:16:20 +0000 |
---|---|---|
committer | Christian Faulhammer <fauli@gentoo.org> | 2010-07-14 09:16:20 +0000 |
commit | dbd4a4a422fdd665b52c2046cf849714dea42211 (patch) | |
tree | 5bd8a55f3af93a559301f1cc8bf11ce657015733 /app-misc/gramps | |
parent | Moved from media-sound category (diff) | |
download | gentoo-2-dbd4a4a422fdd665b52c2046cf849714dea42211.tar.gz gentoo-2-dbd4a4a422fdd665b52c2046cf849714dea42211.tar.bz2 gentoo-2-dbd4a4a422fdd665b52c2046cf849714dea42211.zip |
Use dev-python/bsddb3 instead of bsddb from Python, see bug 328203 by Nikoli <nikoli AT lavabit DOT com>
(Portage version: 2.1.8.3/cvs/Linux i686, RepoMan options: --force)
Diffstat (limited to 'app-misc/gramps')
-rw-r--r-- | app-misc/gramps/ChangeLog | 9 | ||||
-rw-r--r-- | app-misc/gramps/files/gramps-3.2.3-use_bsddb3.patch | 180 | ||||
-rw-r--r-- | app-misc/gramps/gramps-3.2.3-r1.ebuild | 89 |
3 files changed, 277 insertions, 1 deletions
diff --git a/app-misc/gramps/ChangeLog b/app-misc/gramps/ChangeLog index 35f1485b587b..f1de95773559 100644 --- a/app-misc/gramps/ChangeLog +++ b/app-misc/gramps/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-misc/gramps # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/gramps/ChangeLog,v 1.130 2010/07/14 05:44:22 fauli Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-misc/gramps/ChangeLog,v 1.131 2010/07/14 09:16:20 fauli Exp $ + +*gramps-3.2.3-r1 (14 Jul 2010) + + 14 Jul 2010; Christian Faulhammer <fauli@gentoo.org> + +gramps-3.2.3-r1.ebuild, +files/gramps-3.2.3-use_bsddb3.patch: + Use dev-python/bsddb3 instead of bsddb from Python, see bug 328203 by + Nikoli <nikoli AT lavabit DOT com> 14 Jul 2010; Christian Faulhammer <fauli@gentoo.org> gramps-3.2.3.ebuild: add dev-util/intltool as dependency as reported by Nikoli <nikoli AT diff --git a/app-misc/gramps/files/gramps-3.2.3-use_bsddb3.patch b/app-misc/gramps/files/gramps-3.2.3-use_bsddb3.patch new file mode 100644 index 000000000000..9ea7a4e3efa4 --- /dev/null +++ b/app-misc/gramps/files/gramps-3.2.3-use_bsddb3.patch @@ -0,0 +1,180 @@ +diff -r -u gramps-3.2.3.orig/src/cli/clidbman.py gramps-3.2.3/src/cli/clidbman.py +--- gramps-3.2.3.orig/src/cli/clidbman.py 2010-07-14 11:01:39.949040698 +0200 ++++ gramps-3.2.3/src/cli/clidbman.py 2010-07-14 11:07:08.684288847 +0200 +@@ -109,7 +109,7 @@ + Returns (people_count, version_number) of current DB. + Returns ("Unknown", "Unknown") if invalid DB or other error. + """ +- from bsddb import dbshelve, db ++ from bsddb3 import dbshelve, db + from gen.db import META, PERSON_TBL + env = db.DBEnv() + flags = db.DB_CREATE | db.DB_PRIVATE |\ +diff -r -u gramps-3.2.3.orig/src/gen/db/bsddbtxn.py gramps-3.2.3/src/gen/db/bsddbtxn.py +--- gramps-3.2.3.orig/src/gen/db/bsddbtxn.py 2010-07-14 11:01:39.906049218 +0200 ++++ gramps-3.2.3/src/gen/db/bsddbtxn.py 2010-07-14 11:07:08.206289266 +0200 +@@ -188,7 +188,7 @@ + # test code + if __name__ == "__main__": + print "1" +- from bsddb import db, dbshelve ++ from bsddb3 import db, dbshelve + print "2" + x = db.DBEnv() + print "3" +diff -r -u gramps-3.2.3.orig/src/gen/db/cursor.py gramps-3.2.3/src/gen/db/cursor.py +--- gramps-3.2.3.orig/src/gen/db/cursor.py 2010-07-14 11:01:39.905041606 +0200 ++++ gramps-3.2.3/src/gen/db/cursor.py 2010-07-14 11:07:08.205288497 +0200 +@@ -24,7 +24,7 @@ + # + #------------------------------------------------------------------------- + from cPickle import dumps, loads +-from bsddb import db ++from bsddb3 import db + + #------------------------------------------------------------------------- + # +diff -r -u gramps-3.2.3.orig/src/gen/db/dbconst.py gramps-3.2.3/src/gen/db/dbconst.py +--- gramps-3.2.3.orig/src/gen/db/dbconst.py 2010-07-14 11:01:39.903039091 +0200 ++++ gramps-3.2.3/src/gen/db/dbconst.py 2010-07-14 11:07:08.180288358 +0200 +@@ -63,7 +63,7 @@ + DBOBJECTS = 25000 # Maximum number of simultaneously locked objects + DBUNDO = 1000 # Maximum size of undo buffer + +-from bsddb.db import DB_CREATE, DB_AUTO_COMMIT, DB_DUP, DB_DUPSORT, DB_RDONLY ++from bsddb3.db import DB_CREATE, DB_AUTO_COMMIT, DB_DUP, DB_DUPSORT, DB_RDONLY + DBFLAGS_O = DB_CREATE | DB_AUTO_COMMIT # Default flags for database open + DBFLAGS_R = DB_RDONLY # Flags to open a database read-only + DBFLAGS_D = DB_DUP | DB_DUPSORT # Default flags for duplicate keys +diff -r -u gramps-3.2.3.orig/src/gen/db/read.py gramps-3.2.3/src/gen/db/read.py +--- gramps-3.2.3.orig/src/gen/db/read.py 2010-07-14 11:01:39.904047682 +0200 ++++ gramps-3.2.3/src/gen/db/read.py 2010-07-14 11:07:08.188288637 +0200 +@@ -35,7 +35,7 @@ + import locale + import os + from sys import maxint +-from bsddb import db ++from bsddb3 import db + from gen.ggettext import gettext as _ + + import logging +diff -r -u gramps-3.2.3.orig/src/gen/db/txn.py gramps-3.2.3/src/gen/db/txn.py +--- gramps-3.2.3.orig/src/gen/db/txn.py 2010-07-14 11:01:39.906049218 +0200 ++++ gramps-3.2.3/src/gen/db/txn.py 2010-07-14 11:07:08.209288637 +0200 +@@ -32,7 +32,7 @@ + #------------------------------------------------------------------------- + from __future__ import with_statement + import cPickle as pickle +-from bsddb import dbshelve, db ++from bsddb3 import dbshelve, db + import logging + from collections import defaultdict + +diff -r -u gramps-3.2.3.orig/src/gen/db/undoredo.py gramps-3.2.3/src/gen/db/undoredo.py +--- gramps-3.2.3.orig/src/gen/db/undoredo.py 2010-07-14 11:01:39.905041606 +0200 ++++ gramps-3.2.3/src/gen/db/undoredo.py 2010-07-14 11:07:08.204288707 +0200 +@@ -33,7 +33,7 @@ + from __future__ import with_statement + import time, os + import cPickle as pickle +-from bsddb import db ++from bsddb3 import db + from gen.ggettext import gettext as _ + + #------------------------------------------------------------------------- +diff -r -u gramps-3.2.3.orig/src/gen/db/write.py gramps-3.2.3/src/gen/db/write.py +--- gramps-3.2.3.orig/src/gen/db/write.py 2010-07-14 11:01:39.905041606 +0200 ++++ gramps-3.2.3/src/gen/db/write.py 2010-07-14 11:07:08.195288637 +0200 +@@ -39,7 +39,7 @@ + from functools import wraps + + from gen.ggettext import gettext as _ +-from bsddb import dbshelve, db ++from bsddb3 import dbshelve, db + import logging + from sys import maxint + +diff -r -u gramps-3.2.3.orig/src/GrampsAboutDialog.py gramps-3.2.3/src/GrampsAboutDialog.py +--- gramps-3.2.3.orig/src/GrampsAboutDialog.py 2010-07-14 11:01:39.950040977 +0200 ++++ gramps-3.2.3/src/GrampsAboutDialog.py 2010-07-14 11:07:08.703288777 +0200 +@@ -30,7 +30,7 @@ + from gen.ggettext import gettext as _ + import os + import sys +-import bsddb ++import bsddb3 + + ##import logging + ##_LOG = logging.getLogger(".GrampsAboutDialog") +diff -r -u gramps-3.2.3.orig/src/GrampsLogger/_ErrorReportAssistant.py gramps-3.2.3/src/GrampsLogger/_ErrorReportAssistant.py +--- gramps-3.2.3.orig/src/GrampsLogger/_ErrorReportAssistant.py 2010-07-14 11:01:39.820290663 +0200 ++++ gramps-3.2.3/src/GrampsLogger/_ErrorReportAssistant.py 2010-07-14 11:07:07.753040488 +0200 +@@ -5,7 +5,7 @@ + import pygtk + import gobject + import cairo +-import sys, os,bsddb ++import sys, os,bsddb3 + + + class ErrorReportAssistant(object): +diff -r -u gramps-3.2.3.orig/src/gui/editors/editfamily.py gramps-3.2.3/src/gui/editors/editfamily.py +--- gramps-3.2.3.orig/src/gui/editors/editfamily.py 2010-07-14 11:01:39.871291221 +0200 ++++ gramps-3.2.3/src/gui/editors/editfamily.py 2010-07-14 11:07:07.987288707 +0200 +@@ -26,7 +26,7 @@ + # python modules + # + #------------------------------------------------------------------------- +-from bsddb import db as bsddb_db ++from bsddb3 import db as bsddb_db + from gen.ggettext import gettext as _ + from DdTargets import DdTargets + import cPickle as pickle +diff -r -u gramps-3.2.3.orig/src/plugins/import/ImportGrdb.py gramps-3.2.3/src/plugins/import/ImportGrdb.py +--- gramps-3.2.3.orig/src/plugins/import/ImportGrdb.py 2010-07-14 11:01:39.958042234 +0200 ++++ gramps-3.2.3/src/plugins/import/ImportGrdb.py 2010-07-14 11:07:08.875288428 +0200 +@@ -36,7 +36,7 @@ + from gen.ggettext import gettext as _ + import cPickle as pickle + import time +-from bsddb import dbshelve, db ++from bsddb3 import dbshelve, db + import logging + LOG = logging.getLogger(".Db") + +diff -r -u gramps-3.2.3.orig/src/plugins/lib/libgrdb.py gramps-3.2.3/src/plugins/lib/libgrdb.py +--- gramps-3.2.3.orig/src/plugins/lib/libgrdb.py 2010-07-14 11:01:39.959041536 +0200 ++++ gramps-3.2.3/src/plugins/lib/libgrdb.py 2010-07-14 11:07:08.922288847 +0200 +@@ -36,7 +36,7 @@ + import locale + import os + from sys import maxint +-from bsddb import db ++from bsddb3 import db + from gen.ggettext import gettext as _ + + import logging +diff -r -u gramps-3.2.3.orig/src/plugins/tool/ChangeNames.py gramps-3.2.3/src/plugins/tool/ChangeNames.py +--- gramps-3.2.3.orig/src/plugins/tool/ChangeNames.py 2010-07-14 11:01:39.965038812 +0200 ++++ gramps-3.2.3/src/plugins/tool/ChangeNames.py 2010-07-14 11:07:09.072288707 +0200 +@@ -31,7 +31,7 @@ + import gobject + import gtk + import cPickle +-from bsddb.db import DB_CURRENT ++from bsddb3.db import DB_CURRENT + + #------------------------------------------------------------------------- + # +diff -r -u gramps-3.2.3.orig/src/plugins/tool/Leak.py gramps-3.2.3/src/plugins/tool/Leak.py +--- gramps-3.2.3.orig/src/plugins/tool/Leak.py 2010-07-14 11:01:39.965038812 +0200 ++++ gramps-3.2.3/src/plugins/tool/Leak.py 2010-07-14 11:07:09.070289126 +0200 +@@ -31,7 +31,7 @@ + # + #------------------------------------------------------------------------ + from gen.ggettext import gettext as _ +-from bsddb.db import DBError ++from bsddb3.db import DBError + + #------------------------------------------------------------------------ + # diff --git a/app-misc/gramps/gramps-3.2.3-r1.ebuild b/app-misc/gramps/gramps-3.2.3-r1.ebuild new file mode 100644 index 000000000000..7223e3eb2418 --- /dev/null +++ b/app-misc/gramps/gramps-3.2.3-r1.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/gramps/gramps-3.2.3-r1.ebuild,v 1.1 2010/07/14 09:16:20 fauli Exp $ + +EAPI=2 + +PYTHON_DEPEND="2:2.5" + +inherit autotools 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 mozembed reports spell webkit" + +RDEPEND="dev-python/bsddb3 + >=dev-python/pygtk-2.10.0 + x11-misc/xdg-utils + gnome-base/librsvg:2 + gnome? ( dev-python/libgnome-python + dev-python/gconf-python ) + mozembed? ( dev-python/gtkmozembed-python ) + spell? ( dev-python/gtkspell-python + dev-python/pyenchant ) + reports? ( media-gfx/graphviz ) + webkit? ( dev-python/pywebkitgtk )" +DEPEND="${RDEPEND} + dev-util/intltool + sys-devel/gettext + virtual/libiconv + dev-util/pkgconfig" + +DOCS="NEWS README TODO" + +pkg_setup() { + G2CONF="${G2CONF} --disable-mime-install" + python_set_active_version 2 +} + +src_prepare() { + gnome2_src_prepare + + epatch "${FILESDIR}"/${PN}-3.2.3-use_bsddb3.patch + + eautoreconf + + # 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. + einfo "Fix installation path" + find . -iname 'Makefile.in' | xargs \ + sed "s;\(pkgdatadir = \)\(\$(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 $(python_get_sitedir)/${PN} +} + +pkg_postrm() { + gnome2_pkg_postrm + python_mod_cleanup $(python_get_sitedir)/${PN} +} |