# -*- 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 66097 2010-04-06 03:45:46Z jmr@macports.org $

PortSystem      1.0

name            intltool
version         0.40.6
set branch      [join [lrange [split ${version} .] 0 1] .]
maintainers     nomaintainer
categories      textproc gnome
platforms       darwin
description     a string tool

long_description \
    The intltool collection can be used to extract translatable \
    strings from various source files (.xml.in, .glade, .desktop.in, \
    .server.in, .oaf.in), collect the extracted strings together with \
    messages from traditional source files (.c, .h) in po/PACKAGE.pot \
    and merge back the translations from .po files into .xml, .desktop \
    and .oaf files. This merge step will happen at build or \
    installation time.

homepage        http://www.gnome.org/
master_sites    gnome:sources/${name}/${branch}/
use_bzip2       yes

checksums       md5     69bc0353323112f42ad4f9cf351bc3e5 \
                sha1    4f6469e09e2c06a8072dffff36f84ff401d7ea75 \
                rmd160  bbad864aa8b256815aaaf0f462c257127b6ab3da

depends_build   port:gnome-common
depends_lib     port:expat \
                path:bin/perl:perl5 \
                port:p5-xml-parser \
                port:p5-getopt-long \
                port:p5-pathtools \
                port:p5-scalar-list-utils

configure.perl  ${prefix}/bin/perl

test.run        yes
test.target     check

if {[info exists supported_archs]} {
    supported_archs noarch
} else {
    universal_variant no
}

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