# -*- 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 63227 2010-01-29 23:21:33Z jeremyhu@macports.org $

PortSystem 1.0

name		epiphany
version		2.28.1
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     7a8b885a4894d2a9e979b8cb8898db1e \
                    sha1    e15a404e52cdf4fded6a0075f27f46c2ae2a739c \
                    rmd160  c3d6a33080711ec3c25c6418aba5eb2047b73384

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:webkit-gtk

configure.args  --with-distributor-name=MacPorts \
                --disable-zeroconf \
                --disable-network-manager \
                --disable-schemas-install \
                --disable-scrollkeeper \
                --disable-nss \
                --disable-tests

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