# -*- 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 87701 2011-12-01 21:27:44Z devans@macports.org $

PortSystem 1.0

name            epiphany-extensions
version         2.30.2
license         GPL-2+
set branch      [join [lrange [split ${version} .] 0 1] .]
description     Extensions for epiphany, the GNOME web browser
long_description \
    A set of extensions for epiphany, the GNOME web browser
maintainers     nomaintainer
categories      gnome www
platforms       darwin
homepage        http://projects.gnome.org/epiphany/extensions
master_sites    gnome:sources/${name}/${branch}/
use_bzip2       yes

checksums       sha256  bdd0aad473262f2ac780d34c09644d0dd0066cb01f2cc66b3d200b946fd2db27

depends_build   port:intltool port:pkgconfig port:gnome-doc-utils
depends_lib     port:epiphany

configure.args  --with-extensions=all \
                --disable-maintainer-mode \
                --enable-opensp=no

# epiphany -> nss is not universal

universal_variant no

variant opensp description {Use OpenSP for SGML validation} {
    depends_lib-append port:opensp
    configure.args-replace s/(--enable-opensp=)no/\1yes/
}

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