Ignore:
Timestamp:
Jul 9, 2014, 8:00:48 PM (6 years ago)
Author:
devans@…
Message:

gramps: update to version 4.0.3 using python PortGroup, now supports gtk3 and both python 2 and 3.

Location:
trunk/dports/genealogy/gramps
Files:
1 added
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/genealogy/gramps/Portfile

    r120869 r121866  
    55
    66name                    gramps
    7 version                 3.4.8
     7conflicts               gramps3
     8
     9PortGroup               python 1.0
     10
     11version                 4.0.3
    812license                 GPL-2
    913categories              genealogy python
     
    1721                        and research genealogical data.  It provides \
    1822                        advanced capabilities for research, analysis, and \
    19                         correlation to potentially fill relationship gaps.
     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.
    2026
    2127homepage                http://www.gramps-project.org/
    2228master_sites            sourceforge:gramps
    2329
    24 checksums               rmd160  b7928b50962ecb4a5895e072a7fab52d76718faa \
    25                         sha256  fea75da181c489ce2d61de6ada14b71cec21169f46265b9f22b59a6bab441002
     30checksums               rmd160  f03a316a0749a3a589edbda95e786a15b21b342c \
     31                        sha256  13985235d27332af461311399a90a5280a7aa516d08bcb4979d3d9edc9c7d7bf
    2632
    27 depends_build           port:pkgconfig \
    28                         port:intltool \
    29                         port:gnome-doc-utils
     33depends_build-append    port:intltool
    3034
    31 # librsvg is required at least for icons in dialogs
     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
    3246
    33 depends_lib             port:librsvg \
    34                         port:aspell-dict-en \
    35                         port:shared-mime-info \
    36                         port:desktop-file-utils \
    37                         path:bin/dot:graphviz
     47patchfiles              patch-gramps-gen-utils-resourcepath.py.diff
    3848
    39 patchfiles              patch-configure.diff
    40 
    41 # update intltool.m4 and autoreconf
    42 
    43 post-patch {
    44     copy -force ${prefix}/share/aclocal/intltool.m4 ${worksrcpath}/m4
     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    }
    4554}
    4655
    47 use_autoreconf          yes
    48 autoreconf.args         -fvi
     56#
     57# supports python27 and python3 >= 3.2
     58# python 3 versions require py-bsddb3 for database access, not yet tested with python34
     59#
    4960
    50 configure.args          --disable-mime-install
    51 
    52 variant python26 conflicts python27 description {Use python 2.6} {
    53     depends_lib-append  port:py26-gtkspell \
    54                         port:py26-enchant \
    55                         port:py26-webkitgtk \
    56                         port:py26-osmgpsmap \
    57                         port:py26-exiv2 \
    58                         port:py26-pil \
    59                         port:py26-pyicu
    60     configure.python    ${prefix}/bin/python2.6
     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
    6166}
    6267
    63 variant python27 conflicts python26 description {Use python 2.7} {
    64     depends_lib-append  port:py27-gtkspell \
    65                         port:py27-enchant \
    66                         port:py27-webkitgtk \
    67                         port:py27-osmgpsmap \
    68                         port:py27-exiv2 \
    69                         port:py27-pil \
    70                         port:py27-pyicu
    71     configure.python    ${prefix}/bin/python2.7
     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
    7274}
    7375
    74 if {![variant_isset python26]} {
     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]} {
    7585    default_variants +python27
    7686}
    7787
     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
    7894post-activate {
     95    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
    7996    system "${prefix}/bin/update-mime-database ${prefix}/share/mime"
    80     system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
    8197}
    8298
     
    97113copying to another user on the same machine -- all of these cases should use XML.
    98114
     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
    99125For detailed backup instructions, see the online GRAMPS documentation at http://www.gramps-project.org/wiki/index.php?title=How_to_make_a_backup
    100126
Note: See TracChangeset for help on using the changeset viewer.