# -*- 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

PortSystem          1.0

name                svn2cl
version             0.14
categories          devel textproc
maintainers         {dstrubbe @dstrubbe} openmaintainer
license             BSD
description         Subversion log to GNU-style ChangeLog
long_description \
   XSL stylesheet for generating a classic GNU-style ChangeLog from a \
   subversion repository log

platforms           any
supported_archs     noarch

homepage            http://arthurdejong.org/svn2cl/
master_sites        ${homepage}

checksums           rmd160  f537577a831586f0bca977997dc78c0b1288df81 \
                    sha256  a1beb1ee03c7247c2f89792ac5bf91cb4e5ee9bdee839e2208ec9f3aacd738f2

depends_run         bin:xsltproc:libxslt

use_configure       no

build               {}

destroot {
   xinstall -m 755 -d ${destroot}${prefix}/libexec/${name}
   xinstall -m 755 -W ${worksrcpath} svn2cl.sh \
      ${destroot}${prefix}/libexec/${name}
   xinstall -m 644 -W ${worksrcpath} authors.xml svn2cl.xsl svn2html.css \
      svn2html.xsl ${destroot}${prefix}/libexec/${name}
   xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
   xinstall -m 644 -W ${worksrcpath} ChangeLog NEWS README TODO \
      ${destroot}${prefix}/share/doc/${name}
   xinstall -m 644 -W ${worksrcpath} svn2cl.1 \
      ${destroot}${prefix}/share/man/man1
   ln -s ${prefix}/libexec/${name}/svn2cl.sh ${destroot}${prefix}/bin/svn2cl
}

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     release (\[0-9.\]+) of <tt>${name}</tt>
