# -*- 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 77752 2011-04-11 17:46:00Z devans@macports.org $

PortSystem 1.0

name            glibmm
version         2.28.0
revision        1
set branch      [join [lrange [split ${version} .] 0 1] .]
description     C++ interface to glib
long_description \
                ${description}
maintainers     devans openmaintainer
categories      devel x11
platforms       darwin
homepage        http://www.gtkmm.org/
master_sites    gnome:sources/${name}/${branch}/
use_bzip2       yes

checksums       md5     8cda9a84e6efdd8f35d2803432783325 \
                sha1    ba9b40224a6543911ffbfd7268aa9a9172613a73 \
                rmd160  8f78e000a90524b5f5e5ae8e32aa88c15ea064cd

depends_lib     path:lib/pkgconfig/glib-2.0.pc:glib2 \
                port:libsigcxx2

post-destroot {
    set mmdoctooldir ${prefix}/share/glibmm-2.4/doctool
    xinstall -d ${destroot}${mmdoctooldir}
    xinstall -m 0644 -W ${worksrcpath}/docs doc-install.pl doc-postprocess.pl \
                                            doxygen.css tagfile-to-devhelp2.xsl \
                                            ${destroot}${mmdoctooldir}
}

livecheck.type  regex
livecheck.url   http://ftp.gnome.org/pub/GNOME/sources/${name}/${branch}/
livecheck.regex {LATEST-IS-([0-9\.]+)}
