# -*- 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 86115 2011-10-19 12:59:09Z devans@macports.org $

PortSystem 1.0

set gname       gimp-help
set lingua      ko
name            ${gname}-${lingua}
version         2.6.1
license         GFDL-1.2
categories      graphics
maintainers     devans openmaintainer

description     The GIMP HTML help pages

long_description \
	        ${description} are intended to be used with the built-in \
	        GIMP Help Browser, but can be viewed in any other browser as well.

homepage        http://docs.gimp.org/
platforms       darwin
supported_archs noarch

master_sites    gimp:gimp/help

use_bzip2       yes

checksums       sha1    2c2b76cefb7ce0d982d7b57e1695185cb4da6311 \
                rmd160  662c17b1908025c66ab6d870103f491754102025

worksrcdir      ${gname}-2

distname        ${gname}-${version}-html-${lingua}

use_configure   no

build           {}

destroot        {
        set gimpdatadir ${prefix}/share/gimp/2.0
        file mkdir ${destroot}${gimpdatadir}/help
        copy ${worksrcpath}/html/${lingua} ${destroot}${gimpdatadir}/help
}

livecheck.type  regex
livecheck.url   http://gimp.cp-dev.com/gimp/help/
livecheck.regex "${gname}-(\\d+(?:\\.\\d+)*)-html-${lingua}${extract.suffix}"
