# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 53112 2009-06-29 22:18:13Z devans@macports.org $

PortSystem 1.0

name		epiphany
version		2.26.3
set branch      [join [lrange [split ${version} .] 0 1] .]
description	A GNOME Web browser.
long_description	A web browser is more than an application, it is a \
			way of thinking, it is a way of seeing the world. \
			Epiphany's principles are simplicity and standards \
			compliance.
maintainers	devans openmaintainer
categories	gnome www
platforms	darwin
homepage	http://www.gnome.org/projects/${name}
master_sites    gnome:sources/${name}/${branch}/
use_bzip2	yes

checksums       md5     16f44012bc376077e1443e049d725847 \
                sha1    d1143fd2f287efe3eab648e1feded9f4911e3236 \
                rmd160  ef2474c8523a6787227d3dfa5e8fc9d443708a0c

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

depends_lib	port:gconf \
                port:libxslt \
                port:libglade2 \
                port:libgnomeui \
                port:gnome-desktop \
                port:startup-notification \
                port:libnotify \
                port:libcanberra \
                port:py25-gtk \
                port:py25-gnome \
                port:enchant \
                port:iso-codes \
                port:xulrunner

configure.args  --enable-spell-checker \
                --with-distributor-name=MacPorts \
                --disable-zeroconf \
                --disable-network-manager \
                --disable-schemas-install \
                --disable-scrollkeeper

configure.python  ${prefix}/bin/python2.5

pre-configure {
    reinplace "s|--rpath=|-rpath |g" ${worksrcpath}/configure
}

post-activate {
        system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
        system "${prefix}/bin/scrollkeeper-update; true"
        system "${prefix}/bin/update-desktop-database -q ${prefix}/share/applications; true"
        system "${prefix}/bin/update-mime-database ${prefix}/share/mime; true"
        system "export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` && \
            gconftool-2 --makefile-install-rule ${prefix}/etc/gconf/schemas/*.schemas"
}

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