# -*- 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 90970 2012-03-20 13:35:12Z jmr@macports.org $

PortSystem 1.0

name             gob2
version          2.0.17
set branch       [join [lrange [split ${version} .] 0 1] .]
categories       devel
license          GPL-2+
maintainers      nomaintainer
description      preprocessor for making GObjects with inline C
long_description \
	GOB (GOB2 anyway) is a preprocessor for making GObjects with \
	inline C code so that generated files are not edited. Syntax \
	is inspired by Java and Yacc or Lex. The implementation is \
	intentionally kept simple, and no C actual code parsing is done.
homepage         http://www.5z.com/jirka/gob.html
platforms        darwin
master_sites     gnome:sources/${name}/${branch}/ \
                 http://ftp.5z.com/pub/gob

checksums           md5     05fa7384b30ebb2921430b2615d2c2e5 \
                    sha1    1a6c3f1689b24f4cf69506e6b57b7b4517a74e14 \
                    rmd160  9f0b8e302dfee33fa734a39c9263c41fc12910d2

depends_build    port:pkgconfig

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

configure.args   --mandir=${prefix}/share/man

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