# -*- 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      fr
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    275e3d6dcab4784c0a4c87cf23d4de8fb66adb98 \
                rmd160  9dd8a6bb75af1c898bedeb6cc598856147a9e5c6

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}"
