source: trunk/dports/genealogy/gramps/Portfile @ 121870

Last change on this file since 121870 was 121870, checked in by devans@…, 6 years ago

gramps: update to version 4.0.4, bug fix release.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 5.2 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 121870 2014-07-09 21:36:36Z devans@macports.org $
3
4PortSystem              1.0
5
6name                    gramps
7conflicts               gramps3
8
9PortGroup               python 1.0
10
11version                 4.0.4
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/
28master_sites            sourceforge:gramps
29
30checksums               rmd160  b983ed80db712fae58164aecff7477b961416fed \
31                        sha256  dd004fb6710dad4934b87945f51df9d7e12118ca9106b6f1b0c9ca7d756de645
32
33depends_build-append    port:intltool
34
35depends_lib-append      port:desktop-file-utils \
36                        port:shared-mime-info \
37                        port:xdg-utils \
38                        port:gtk3 \
39                        port:gtkspell3 \
40                        port:osm-gps-map \
41                        port:gexiv2 \
42                        path:lib/pkgconfig/webkitgtk-3.0.pc:webkit-gtk3 \
43                        path:bin/dot:graphviz \
44                        port:ghostscript \
45                        port:goocanvas2
46
47patchfiles              patch-gramps-gen-utils-resourcepath.py.diff
48
49platform darwin {
50    if {${configure.cxx_stdlib} eq "libstdc++"} {
51       depends_lib-delete path:lib/pkgconfig/webkitgtk-3.0.pc:webkit-gtk3
52       depends_lib-append path:lib/pkgconfig/webkitgtk-3.0.pc:webkit-gtk3-2.0
53    }
54}
55
56#
57# supports python27 and python3 >= 3.2
58# python 3 versions require py-bsddb3 for database access, not yet tested with python34
59#
60
61variant python27 conflicts python32 python33 description {Use Python 2.7} {
62    python.default_version  27
63    depends_lib-append  port:py27-gobject3 \
64                        port:py27-pyicu \
65                        port:py27-Pillow
66}
67
68variant python32 conflicts python27 python33 description {Use Python 3.2} {
69    python.default_version  32
70    depends_lib-append  port:py32-gobject3 \
71                        port:py32-pyicu \
72                        port:py32-Pillow \
73                        port:py32-bsddb3
74}
75
76variant python33 conflicts python27 python32 description {Use Python 3.3} {
77    python.default_version  33
78    depends_lib-append  port:py33-gobject3 \
79                        port:py33-pyicu \
80                        port:py33-Pillow \
81                        port:py33-bsddb3
82}
83
84if {![variant_isset python32] && ![variant_isset python33]} {
85    default_variants +python27
86}
87
88post-destroot {
89    reinplace "s|${destroot}${python.prefix}|${prefix}|" ${destroot}${python.pkgd}/gramps/gen/utils/resource-path
90    delete ${destroot}${prefix}/share
91    move ${destroot}${python.prefix}/share ${destroot}${prefix}
92}
93
94post-activate {
95    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
96    system "${prefix}/bin/update-mime-database ${prefix}/share/mime"
97}
98
99notes {
100
101When using GRAMPS, be sure to backup your data regularly! GRAMPS backups are in XML format.
102XML is machine- and human-readable. It is completely self-sufficient. It is also small.
103
104The following are good backup practices:
105
106    Backup to XML from time to time, especially after large edits.
107    Backup to XML before making big changes, such as importing new data into an existing database from e.g. GEDCOM,
108        merging records, running tools that may heavily modify the data, etc.
109    Backup to XML before upgrading GRAMPS to a newer version. Backup to XML with the old version before you install the new one!
110    Backup to XML before upgrading your OS.
111
112Also, use XML format for any data migration. Moving to another machine, sending data to a family member,
113copying to another user on the same machine -- all of these cases should use XML.
114
115***** IMPORTANT *****
116
117Beginning with GRAMPS 4.0, GRAMPS supports either python2 or python3.  If you plan to use python3, please MAKE A BACKUP
118of your data using your old python2 version before attempting to load your family tree in GRAMPS 4.0 with python3.  The python3
119versions use a different database interface with a new database format that is not compatible with the python2 versions. On startup,
120GRAMPS 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
121with python2 versions.
122
123***** MAKE A BACKUP! *****
124
125For detailed backup instructions, see the online GRAMPS documentation at http://www.gramps-project.org/wiki/index.php?title=How_to_make_a_backup
126
127}
128
129livecheck.type                  regex
130livecheck.url                   http://sourceforge.net/projects/gramps/files/Stable/
131livecheck.regex                 "/Stable/(\[0-9.\]+)"
Note: See TracBrowser for help on using the repository browser.