# -*- 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
version		2.26.2
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       md5     c5126bd7ddfda3317daa71c06f261034 \
                sha1    04484352e92fc2faa6f06ee6f4eb21828931f173 \
                rmd160  9193e5c14244f1a1463c6479bf31bb7d20a1a1bb

depends_lib	\
                port:gpgme \
                port:gnome-keyring \
		port:libglade2 \
		port:libsoup \
		port:libnotify \
                bin:ssh:openssh

depends_build	\
		port:p5-xml-parser \
		port:shared-mime-info

configure.ldflags-append -lpth
configure.args  --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/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+)*)}
