[141448] trunk/dports/genealogy/gramps
devans at macports.org
devans at macports.org
Sat Dec 12 01:34:30 PST 2015
Revision: 141448
https://trac.macports.org/changeset/141448
Author: devans at macports.org
Date: 2015-10-18 18:52:26 -0700 (Sun, 18 Oct 2015)
Log Message:
-----------
gramps: switch to github and update to version 4.2.1, dependencies, no longer supports python27, update notes, use default livecheck.
Modified Paths:
--------------
trunk/dports/genealogy/gramps/Portfile
Added Paths:
-----------
trunk/dports/genealogy/gramps/files/patch-pygi-require-version.diff
Modified: trunk/dports/genealogy/gramps/Portfile
===================================================================
--- trunk/dports/genealogy/gramps/Portfile 2015-10-18 23:46:31 UTC (rev 141447)
+++ trunk/dports/genealogy/gramps/Portfile 2015-10-19 01:52:26 UTC (rev 141448)
@@ -2,13 +2,13 @@
# $Id$
PortSystem 1.0
+PortGroup github 1.0
-name gramps
-conflicts gramps3
+github.setup gramps-project gramps 4.2.1 v
PortGroup python 1.0
-version 4.2.0
+conflicts gramps3
license GPL-2
categories genealogy python
platforms darwin
@@ -25,10 +25,9 @@
To use the legacy gtk2 version, install port gramps3.
homepage http://www.gramps-project.org/
-master_sites sourceforge:gramps
-checksums rmd160 72c32171fe6724d9627d83d66a39567e42574668 \
- sha256 b77e09580645858c439f6d803d6f121110a41e2c484a1292f2e39a6b1aea87dd
+checksums rmd160 0d162899c41266e8ca8d37e10af44c5e23bc6a12 \
+ sha256 be4d342e7a6b1dd72ba142ada8756ed6fb60d9bdec30bcbb24fbbff798020176
depends_build-append port:intltool
@@ -39,34 +38,20 @@
port:gtkspell3 \
port:osm-gps-map \
port:gexiv2 \
- path:lib/pkgconfig/webkitgtk-3.0.pc:webkit-gtk3 \
path:bin/dot:graphviz \
port:ghostscript \
port:goocanvas2
depends_run port:gnome-themes-standard
-patchfiles patch-gramps-gen-utils-resourcepath.py.diff
+patchfiles patch-gramps-gen-utils-resourcepath.py.diff \
+ patch-pygi-require-version.diff
-platform darwin {
- if {${configure.cxx_stdlib} eq "libstdc++"} {
- depends_lib-delete path:lib/pkgconfig/webkitgtk-3.0.pc:webkit-gtk3
- depends_lib-append path:lib/pkgconfig/webkitgtk-3.0.pc:webkit-gtk3-2.0
- }
-}
-
#
-# supports python27 and python3 >= 3.2
-# python 3 versions require py-bsddb3 for database access
-#
+# versions 4.2.0+ only support python 3
+# TODO
+# Add python35 variant when possible
-variant python27 conflicts python34 description {Use Python 2.7} {
- python.default_version 27
- depends_lib-append port:py27-gobject3 \
- port:py27-pyicu \
- port:py27-Pillow
-}
-
variant python34 conflicts python27 description {Use Python 3.4} {
python.default_version 34
depends_lib-append port:py34-gobject3 \
@@ -75,9 +60,7 @@
port:py34-bsddb3
}
-if {![variant_isset python27]} {
- default_variants +python34
-}
+default_variants +python34
post-destroot {
reinplace "s|${destroot}${python.prefix}|${prefix}|" ${destroot}${python.pkgd}/gramps/gen/utils/resource-path
@@ -109,17 +92,13 @@
***** IMPORTANT *****
-Beginning with GRAMPS 4.0, GRAMPS supports either python2 or python3. If you plan to use python3, please MAKE A BACKUP
-of your data using your old python2 version before attempting to load your family tree in GRAMPS 4.0 with python3. The python3 versions use a different database interface with a new database format that is not compatible with the python2 versions. On startup, GRAMPS 4.0 python3 will ask you if you want to reformat your database. Once this has been done, your database will no longer be usable with python2 versions of GRAMPS.
+Beginning with GRAMPS 4.2, GRAMPS only supports python3. Please MAKE A BACKUP of your data using your old python2 version
+before attempting to load your family tree in GRAMPS 4.2 with python3. The python3 versions use a different database
+interface with a new database format that is not compatible with the python2 versions. On startup, GRAMPS 4.2 will ask you
+if you want to reformat your database. Once this has been done, your database will no longer be usable with python2 versions of GRAMPS.
-Beginning with GRAMPS 4.2, a new GRAMPS database format is in use for all python versions. On startup, GRAMPS 4.2 will ask you if you want to reformat your database. Once this has been done, your database will no longer be usable with previous versions of GRAMPS.
-
***** MAKE A BACKUP! *****
For detailed backup instructions, see the online GRAMPS documentation at http://www.gramps-project.org/wiki/index.php?title=How_to_make_a_backup
}
-
-livecheck.type regex
-livecheck.url http://sourceforge.net/projects/gramps/files/Stable/
-livecheck.regex "/Stable/(\[0-9.\]+)"
Added: trunk/dports/genealogy/gramps/files/patch-pygi-require-version.diff
===================================================================
--- trunk/dports/genealogy/gramps/files/patch-pygi-require-version.diff (rev 0)
+++ trunk/dports/genealogy/gramps/files/patch-pygi-require-version.diff 2015-10-19 01:52:26 UTC (rev 141448)
@@ -0,0 +1,75 @@
+--- gramps/gui/spell.py.orig 2015-10-18 16:58:59.000000000 -0700
++++ gramps/gui/spell.py 2015-10-18 17:02:07.000000000 -0700
+@@ -58,12 +58,16 @@
+ repository = Repository.get_default()
+ if repository.enumerate_versions("GtkSpell"):
+ try:
++ import gi
++ gi.require_version('GtkSpell', '3.0')
+ from gi.repository import GtkSpell as Gtkspell
+ HAVE_GTKSPELL = True
+ except:
+ pass
+ elif repository.enumerate_versions("Gtkspell"):
+ try:
++ import gi
++ gi.require_version('GtkSpell', '3.0')
+ from gi.repository import Gtkspell
+ HAVE_GTKSPELL = True
+ except:
+--- gramps/grampsapp.py.orig 2015-10-18 17:06:18.000000000 -0700
++++ gramps/grampsapp.py 2015-10-18 17:11:32.000000000 -0700
+@@ -220,6 +220,8 @@
+ from gi import Repository
+ repository = Repository.get_default()
+ if repository.enumerate_versions("OsmGpsMap"):
++ import gi
++ gi.require_version('OsmGpsMap', '1.0')
+ from gi.repository import OsmGpsMap as osmgpsmap
+ try:
+ osmgpsmap_str = osmgpsmap._version
+@@ -235,7 +237,9 @@
+ from gi import Repository
+ repository = Repository.get_default()
+ if repository.enumerate_versions("GExiv2"):
+- from gi.repository import GExiv2
++ import gi
++ gi.require_version('GExiv2', '0.10')
++ from gi.repository import GExiv2
+ try:
+ gexiv2_str = GExiv2._version
+ except: # any failure to 'get' the version
+--- gramps/plugins/gramplet/gramplet.gpr.py.orig 2015-10-18 17:31:22.000000000 -0700
++++ gramps/plugins/gramplet/gramplet.gpr.py 2015-10-18 17:32:37.000000000 -0700
+@@ -384,6 +384,8 @@
+ from gi import Repository
+ repository = Repository.get_default()
+ if repository.enumerate_versions("GExiv2"):
++ import gi
++ gi.require_version('GExiv2', '0.10')
+ from gi.repository import GExiv2
+ available = True
+ else:
+--- gramps/plugins/lib/libmetadata.py.orig 2015-10-18 17:35:15.000000000 -0700
++++ gramps/plugins/lib/libmetadata.py 2015-10-18 17:36:46.000000000 -0700
+@@ -32,6 +32,9 @@
+ #
+ #-------------------------------------------------------------------------
+ from gi.repository import Gtk
++
++import gi
++gi.require_version('GExiv2', '0.10')
+ from gi.repository import GExiv2
+
+ #-------------------------------------------------------------------------
+--- gramps/plugins/view/geography.gpr.py.orig 2015-10-18 18:02:51.000000000 -0700
++++ gramps/plugins/view/geography.gpr.py 2015-10-18 18:03:59.000000000 -0700
+@@ -44,6 +44,8 @@
+ if repository.enumerate_versions("OsmGpsMap"):
+ try :
+ # current osmgpsmap support GTK3
++ import gi
++ gi.require_version('OsmGpsMap', '1.0')
+ from gi.repository import OsmGpsMap as osmgpsmap
+ if osmgpsmap._version < '0.8':
+ _LOG.warning( _("OsmGpsMap module not loaded. "
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/75063600/attachment-0001.html>
More information about the macports-changes
mailing list