# -*- 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 85754 2011-10-16 04:54:25Z dports@macports.org $

PortSystem 1.0

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

checksums       md5     cb8a86a1039054b621f6419ac2219695 \
                sha1    d06c638e839024ab623dc001b3c4e43be293ede8 \
                rmd160  a493ccad1d25c7c112f33c30d141a241eaf71048

depends_build   port:pkgconfig \
                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

#
# gnome-panel -> evolution-data-server -> nss is not universal
#

universal_variant no
                
post-activate {
    system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
    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+)*)}
