svn commit: r415529 - in head/science/gramps: . files
Ben Woods
woodsb02 at FreeBSD.org
Thu May 19 21:16:13 UTC 2016
Author: woodsb02
Date: Thu May 19 21:16:11 2016
New Revision: 415529
URL: https://svnweb.freebsd.org/changeset/ports/415529
Log:
science/gramps: Update to 4.2.3
- Take maintainership
- Convert to USE_GITHUB (new location of main upstream repository)
- Update dependencies for new version (namely python 3.2+ and GTK3) [1]
- Convert "strongly recommended" options to dependencies (removing option) [1]
- Add "optional" dependencies as OPTIONS [1]
- Remove pkg-plist and convert build to USE_PYTHON=autoplist distutils
- Remove pre-extract upgrade warning as it is ineffective for pkg upgrades
and now only applies for systems which have not been upgraded in 1.5 years.
- Add post-stage hack to fix staging support, copied from Arch Linux [2]
- Delete files/patch-src_gramps.py as the offending file has been removed
- Add files/patch-setup.py to allow "--single-version-externally-managed" [3]
- Add files/patch-setup.py to fix double slashes in generated by autoplist [4]
Changes:
https://github.com/gramps-project/gramps/blob/v4.2.3/NEWS
[1] https://github.com/gramps-project/gramps/blob/v4.2.3/README
[2] https://projects.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/gramps&id=ee1c7fae15872481d8f55868f4211efcbce15314
[3] https://github.com/gramps-project/gramps/commit/ab67c786b03552ce4b0ac8f0ed9d7af228d46fe4
[4] https://github.com/gramps-project/gramps/pull/96
PR: 207005
Reviewed by: mat (mentor)
Approved by: adamw (mentor)
Differential Revision: https://reviews.freebsd.org/D6439
Added:
head/science/gramps/files/patch-setup.py (contents, props changed)
Deleted:
head/science/gramps/files/patch-src_gramps.py
head/science/gramps/pkg-plist
Modified:
head/science/gramps/Makefile
head/science/gramps/distinfo
head/science/gramps/files/patch-data_gramps.xml.in
head/science/gramps/pkg-descr
Modified: head/science/gramps/Makefile
==============================================================================
--- head/science/gramps/Makefile Thu May 19 21:14:19 2016 (r415528)
+++ head/science/gramps/Makefile Thu May 19 21:16:11 2016 (r415529)
@@ -2,50 +2,48 @@
# $FreeBSD$
PORTNAME= gramps
-PORTVERSION= 3.4.9
-PORTREVISION= 3
+PORTVERSION= 4.2.3
+DISTVERSIONPREFIX= v
CATEGORIES= science gnome python
-MASTER_SITES= SF/${PORTNAME}/Stable/${PORTVERSION}
-MAINTAINER= ports at FreeBSD.org
-COMMENT= GTK/GNOME-based genealogy program
+MAINTAINER= woodsb02 at FreeBSD.org
+COMMENT= GTK3-based genealogy program
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}bsddb>0:databases/py-bsddb \
- ${PYTHON_PKGNAMEPREFIX}pyicu>=1.8:devel/py-pyicu
+LIB_DEPENDS= libosmgpsmap-1.0.so:x11-toolkits/osm-gps-map
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}bsddb3>0:databases/py3-bsddb3 \
+ ${PYTHON_PKGNAMEPREFIX}pyicu>=1.8:devel/py3-pyicu \
+ ${PYTHON_PKGNAMEPREFIX}pygraphviz>=0:graphics/py3-pygraphviz \
+ xdg-open:devel/xdg-utils
+
+USE_GITHUB= yes
+GH_ACCOUNT= gramps-project
NO_ARCH= yes
-USE_BDB= 5+
-USES= desktop-file-utils gettext shared-mime-info gmake python:2
-USE_GNOME= pygtk2 intltool
-GNU_CONFIGURE= yes
+USES= desktop-file-utils gettext shared-mime-info python:3.2+
+USE_GNOME= cairo gtk30 intltool librsvg2 pango py3gobject3
+USE_PYTHON= autoplist distutils
CONFIGURE_ARGS= --disable-mime-install
-CPPFLAGS+= -I${LOCALBASE}/include
-LIBS+= -L${LOCALBASE}/lib
INSTALLS_OMF= yes
INSTALLS_ICONS= yes
-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
-OPTIONS_DEFINE= ENCHANT PYWEBKITGTK GNOME GRAPHVIZ EXIV
-OPTIONS_DEFAULT= PYWEBKITGTK GRAPHVIZ EXIV
-ENCHANT_DESC= Spellchecking support
-PYWEBKITGTK_DESC= Use webkit backend for Geographic view
-EXIV_DESC= Managing exiv metadata support
-
-ENCHANT_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}enchant>=0:textproc/py-enchant
-EXIV_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}exiv2>=0.1.3:graphics/py-exiv2
-GNOME_USE= GNOME=pygnome2,gnomedocutils
-GRAPHVIZ_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pygraphviz>=0:graphics/py-pygraphviz
-PYWEBKITGTK_RUN_DEPENDS=${PYTHON_PKGNAMEPREFIX}webkitgtk>=0:www/py-webkitgtk
-
-pre-extract:
- @${ECHO_MSG} "=========================================================="
- @${ECHO_MSG} "*WARNING*: The Berkeley DB has been upgraded to version 5."
- @${ECHO_MSG} "Cancel this installation now and export your databases if"
- @${ECHO_MSG} "you are upgrading from a Gramps version older than 3.4.X"
- @${ECHO_MSG} "=========================================================="
- @sleep 5
+OPTIONS_DEFINE= GEXIV GTKSPELL PIL RCS TTFFREEFONT
+OPTIONS_DEFAULT= GEXIV GTKSPELL
+GEXIV_DESC= Manage Exif metadata embedded in media
+GTKSPELL_DESC= Spell checking support via gtkspell
+PIL_DESC= Crop/convert images with Python Imaging Library (Pillow)
+RCS_DESC= Manage revisions of family trees with with GNU RCS
+TTFFREEFONT_DESC= More font support in reports
+
+GEXIV_LIB_DEPENDS= libgexiv2.so:graphics/gexiv2
+GTKSPELL_LIB_DEPENDS= libgtkspell3-3.so:textproc/gtkspell3
+PIL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py3-pillow
+RCS_RUN_DEPENDS= rcsdiff:devel/rcs
+TTFFREEFONT_RUN_DEPENDS=${LOCALBASE}/share/fonts/freefont-ttf/FreeMono.ttf:x11-fonts/freefont-ttf
+
+post-install:
+ ${ECHO_CMD} -n ${PREFIX}/share > ${STAGEDIR}${PYTHON_SITELIBDIR}/gramps/gen/utils/resource-path
.include <bsd.port.mk>
Modified: head/science/gramps/distinfo
==============================================================================
--- head/science/gramps/distinfo Thu May 19 21:14:19 2016 (r415528)
+++ head/science/gramps/distinfo Thu May 19 21:16:11 2016 (r415529)
@@ -1,2 +1,3 @@
-SHA256 (gramps-3.4.9.tar.gz) = 402a8616efeda730d10941690edb6dfb2719c3f7383e376a404577412676a8f3
-SIZE (gramps-3.4.9.tar.gz) = 10190446
+TIMESTAMP = 1463590803
+SHA256 (gramps-project-gramps-v4.2.3_GH0.tar.gz) = a7c998a8303a84bd05a6067b5aba230cf6037a29dcdb3e7ca6c06969da4590a5
+SIZE (gramps-project-gramps-v4.2.3_GH0.tar.gz) = 18668778
Modified: head/science/gramps/files/patch-data_gramps.xml.in
==============================================================================
--- head/science/gramps/files/patch-data_gramps.xml.in Thu May 19 21:14:19 2016 (r415528)
+++ head/science/gramps/files/patch-data_gramps.xml.in Thu May 19 21:16:11 2016 (r415529)
@@ -1,5 +1,5 @@
---- data/gramps.xml.in.orig 2010-11-18 09:58:56.000000000 +0300
-+++ data/gramps.xml.in 2010-12-09 13:24:49.000000000 +0300
+--- data/gramps.xml.in.orig 2016-01-06 16:44:13 UTC
++++ data/gramps.xml.in
@@ -7,16 +7,6 @@
<_comment>Gramps database</_comment>
<glob pattern="*.grdb"/>
Added: head/science/gramps/files/patch-setup.py
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/science/gramps/files/patch-setup.py Thu May 19 21:16:11 2016 (r415529)
@@ -0,0 +1,25 @@
+--- setup.py.orig 2016-01-06 16:44:13 UTC
++++ setup.py
+@@ -56,6 +56,11 @@ ALL_LINGUAS = ('ar', 'bg', 'ca', 'cs', '
+ 'zh_CN', 'zh_HK', 'zh_TW')
+ INTLTOOL_FILES = ('data/tips.xml', 'gramps/plugins/lib/holidays.xml')
+
++svem_flag = '--single-version-externally-managed'
++if svem_flag in sys.argv:
++ # Die, setuptools, die.
++ sys.argv.remove(svem_flag)
++
+ server = False
+ if '--server' in sys.argv:
+ sys.argv.remove('--server')
+@@ -180,8 +185,8 @@ def build_man(build_cmd):
+ filename = False
+
+ lang = man_dir[8:]
+- src = build_cmd.build_base + '/data/man/' + lang + '/gramps.1.gz'
+- target = 'share/man/' + lang + '/man1'
++ src = build_cmd.build_base + '/data/man' + lang + '/gramps.1.gz'
++ target = 'share/man' + lang + '/man1'
+ data_files.append((target, [src]))
+
+ log.info('Compiling %s >> %s.', src, target)
Modified: head/science/gramps/pkg-descr
==============================================================================
--- head/science/gramps/pkg-descr Thu May 19 21:14:19 2016 (r415528)
+++ head/science/gramps/pkg-descr Thu May 19 21:16:11 2016 (r415529)
@@ -1,9 +1,15 @@
-GRAMPS (Genealogical Research and Analysis Management Programming System)
-is an open source genealogy program.
-To put it shortly, it allows you to store, edit, and research genealogical
-data using your computer. Its functionality is somewhat common to other
-genealogical programs. However, GRAMPS offers some unique features.
+Research, organize and share your family tree with GRAMPS
+(Genealogical Research and Analysis Management Programming System).
+Gramps gives you the ability to record the many details of an
+individual's life as well as the complex relationships between
+various people, places and events. All of your research is kept
+organized, searchable and as precise as you need it to be.
-It is written in Python, using the GTK/GNOME interface.
+The Gramps project strives to produce a genealogy program that is
+both intuitive for hobbyists and feature-complete for professional
+genealogists. It is a community project, created, developed and
+governed by genealogists.
+
+It is written in Python, using a GTK3 interface.
WWW: http://gramps-project.org/
More information about the svn-ports-all
mailing list