# -*- 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 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem 1.0

name		seahorse-plugins
version		2.26.2
set branch      [join [lrange [split ${version} .] 0 1] .]
description	Seahorse plugins.
long_description ${description}
maintainers	devans openmaintainer
categories	gnome crypto
platforms	darwin
homepage	http://www.gnome.org/projects/seahorse/
master_sites    gnome:sources/${name}/${branch}/
use_bzip2	yes

checksums       md5     36b51b866fc729526f1be86bb0db7370 \
                sha1    df5cae9c19cd106fafc65d95b8d0d57bbd6a12db \
                rmd160  99659c47d880a02b5ab25289f1d459c7d1472c51

depends_build   port:p5-xml-parser \
                port:intltool \
                port:gnome-doc-utils \

depends_lib     port:seahorse \
                port:nautilus \
                port:gnome-panel

configure.args  --disable-epiphany \
                --disable-gedit \
                --disable-update-mime-database \
                --disable-schemas-install \
                --disable-scrollkeeper
                
variant epiphany description {Enable epiphany plug-in} {
        depends_lib-append port:epiphany
        configure.args-delete --disable-epiphany
}

variant gedit description {Enable gedit plug-in} {
        depends_lib-append port:gedit
        configure.args-delete --disable-gedit
}

post-activate {
    system "${prefix}/bin/update-mime-database ${prefix}/share/mime; true"
    system "${prefix}/bin/scrollkeeper-update"
    system "export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` && \
        gconftool-2 --makefile-install-rule ${prefix}/etc/gconf/schemas/*.schemas"
}

livecheck.type  regex
livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/
livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}
