source: trunk/dports/genealogy/gramps/Portfile

Last change on this file was 147777, checked in by devans@…, 18 months ago

gramps: update to version 4.2.3.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.4 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 147777 2016-04-15 20:40:45Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               github 1.0
6
7github.setup            gramps-project gramps 4.2.3 v
8
9PortGroup               python 1.0
10
11conflicts               gramps3
12license                 GPL-2
13categories              genealogy python
14platforms               darwin
15supported_archs         noarch
16maintainers             devans openmaintainer
17           
18description             GRAMPS is a genealogy program
19
20long_description        GRAMPS is a genealogy program to store, edit, \
21                        and research genealogical data.  It provides \
22                        advanced capabilities for research, analysis, and \
23                        correlation to potentially fill relationship gaps. This \
24                        version is based on gtk3 and supports both python 2 and 3. \
25                        To use the legacy gtk2 version, install port gramps3.
26
27homepage                http://www.gramps-project.org/
28
29checksums               rmd160  f635dc0604101c439472efc34159d58c82b3ec78 \
30                        sha256  222b3555114de6b8bdd4579782333dd0afe196298e520514a29ee0ea4efcb689
31
32depends_build-append    port:intltool
33
34depends_lib-append      port:desktop-file-utils \
35                        port:shared-mime-info \
36                        port:xdg-utils \
37                        port:gtk3 \
38                        port:gtkspell3 \
39                        port:osm-gps-map \
40                        port:gexiv2 \
41                        path:bin/dot:graphviz \
42                        port:ghostscript \
43                        port:goocanvas2
44
45depends_run             port:gnome-themes-standard
46
47patchfiles              patch-gramps-gen-utils-resourcepath.py.diff \
48                        patch-pygi-require-version.diff
49
50# versions 4.2.0+ only support python 3
51
52variant python34 conflicts python35 description {Use Python 3.4} {
53    python.default_version  34
54    depends_lib-append  port:py34-gobject3 \
55                        port:py34-pyicu \
56                        port:py34-Pillow \
57                        port:py34-bsddb3
58}
59
60variant python35 conflicts python34 description {Use Python 3.5} {
61    python.default_version  35
62    depends_lib-append  port:py35-gobject3 \
63                        port:py35-pyicu \
64                        port:py35-Pillow \
65                        port:py35-bsddb3
66}
67
68if {![variant_isset python35]} {
69    default_variants    +python34
70}
71
72post-destroot {
73    reinplace "s|${destroot}${python.prefix}|${prefix}|" ${destroot}${python.pkgd}/gramps/gen/utils/resource-path
74    delete ${destroot}${prefix}/share
75    move ${destroot}${python.prefix}/share ${destroot}${prefix}
76}
77
78post-activate {
79    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
80    system "${prefix}/bin/update-mime-database ${prefix}/share/mime"
81}
82
83notes {
84
85When using GRAMPS, be sure to backup your data regularly! GRAMPS backups are in XML format.
86XML is machine- and human-readable. It is completely self-sufficient. It is also small.
87
88The following are good backup practices:
89
90    Backup to XML from time to time, especially after large edits.
91    Backup to XML before making big changes, such as importing new data into an existing database from e.g. GEDCOM,
92        merging records, running tools that may heavily modify the data, etc.
93    Backup to XML before upgrading GRAMPS to a newer version. Backup to XML with the old version before you install
94        the new one!
95    Backup to XML before upgrading your OS.
96
97Also, use XML format for any data migration. Moving to another machine, sending data to a family member,
98copying to another user on the same machine -- all of these cases should use XML.
99
100***** IMPORTANT *****
101
102Beginning with GRAMPS 4.2, GRAMPS only supports python3.  Please MAKE A BACKUP of your data using your old python2 version
103before attempting to load your family tree in GRAMPS 4.2 with python3.  The python3 versions use a different database
104interface with a new database format that is not compatible with the python2 versions. On startup, GRAMPS 4.2 will ask you
105if you want to reformat your database.  Once this has been done, your database will no longer be usable with python2 versions of GRAMPS.
106
107***** MAKE A BACKUP! *****
108
109For detailed backup instructions, see the online GRAMPS documentation at http://www.gramps-project.org/wiki/index.php?title=How_to_make_a_backup
110
111}
Note: See TracBrowser for help on using the repository browser.