# -*- 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 85755 2011-10-16 04:55:39Z dports@macports.org $

PortSystem 1.0

name		seahorse
version		2.30.1
revision        3
license         GPL-2+ LGPL-2+ GFDL-1.1+
set branch      [join [lrange [split ${version} .] 0 1] .]
description	Seahorse is a GNOME application for managing encryption keys.
long_description \
		Seahorse is a GNOME application for managing encryption keys. \
		It also integrates with nautilus, gedit, epiphany and other \
                GNOME desktop applications to provide encryption facilities.
maintainers	devans openmaintainer
categories	gnome crypto
platforms	darwin
homepage	http://projects.gnome.org/${name}/
master_sites    gnome:sources/${name}/${branch}/
use_bzip2	yes

checksums       sha1    1754a447d48837bc8a0a657a6bcdd65666704ccb \
                rmd160  70cdcc18798e405deb0164d098c57d22adc2f5f5

depends_build	port:pkgconfig \
                port:intltool \
                port:gnome-doc-utils

depends_lib	port:gpgme \
                port:gconf \
		port:libsoup \
		port:libnotify \
                port:openssh \
                port:openldap

configure.args  --disable-introspection \
                --disable-sharing \
                --disable-update-mime-database \
                --disable-schemas-install \
                --disable-scrollkeeper

post-activate {
    system "${prefix}/bin/update-desktop-database -q ${prefix}/share/applications; true"
    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"
}

# libnotify cannot be installed on Mac OS X 10.7 Lion, #30283
platform darwin 11 {
    depends_lib-delete      port:libnotify
    configure.args-append   --disable-libnotify
}

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