# -*- 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
# $Id: Portfile 65611 2010-03-29 00:10:55Z ryandesign@macports.org $

PortSystem                      1.0

name                            gramps
version                         3.2.0
revision                        1
categories                      gnome science python genealogy
platforms                       darwin
maintainers                     nomaintainer

description                     GRAMPS is a genealogy program

long_description                GRAMPS is a genealogy program to store, edit, \
                                and research genealogical data.  It provides \
                                advanced capabilities for research, analysis, and \
                                correlation to potentially fill relationship gaps. \
                                NOTE 1: Some users have experienced problems importing \
                                databases from Gramps version 2 or from 3.1.x. It is advised that \
                                databases are exported from Gramps version 2 in \
                                Gramps XML format before updating to Gramps version 3. \
                                The Gramps XML export from version 2 can then be imported \
                                into gramps 3 if the automatic database upgrade does not \
                                work. \
                                NOTE 2: The WriteCD plugin is unavailable. This relies on \
                                GNOME and has not been made to work on OS X. \
                                NOTE 3: The spelling checker is not installed because \
                                there is no port of the python bindings to gtkspell. \
                                NOTE 4: The Geographic View is not available because \
                                webkit-gtk does not build under MacPorts (ticket #23464)

homepage                        http://www.gramps-project.org/
master_sites                    sourceforge:gramps

checksums                       md5     38f905162c9f3064e46397d9907492f7 \
                                sha1    f9e334bba254072a86c55cf8e153e3f10bb8cbfb \
                                rmd160  3d2bc442942e6d7e92589d84a86e9f06745d1a49

configure.args                  --disable-mime-install \
                                --disable-scrollkeeper

configure.python                ${prefix}/bin/python2.6
configure.env                   GMSGFMT=${prefix}/bin/msgfmt

depends_lib                     bin:update-mime-database:shared-mime-info \
                                port:py26-gtk \
                                port:py26-gnome \
                                port:gtkspell2 \
                                port:aspell-dict-en \
                                port:gnome-python26-extras

universal_variant               no

post-activate {
    system "update-mime-database ${prefix}/share/mime"
    system "scrollkeeper-update"
}

livecheck.type                  regex
livecheck.regex                 (?i)${name} (\[0-9.\]+) .*released
