# -*- 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                bchunk
version             1.2.2

description         Converts a CD image in a .bin/.cue format to .iso or .cdr
long_description    binchunker converts a CD image in a .bin / .cue \
                    format (sometimes .raw / .cue) to a set of .iso \
                    and .cdr tracks. The bin/cue format is used by some \
                    popular non-Unix cd-writing software, but is not \
                    supported on most other CD burning programs

maintainers         nomaintainer
categories          sysutils
license             GPL-2+

platforms           darwin

homepage            http://he.fi/bchunk/
master_sites        ${homepage}

checksums           rmd160  50160ddd03d1fd03d1c7ea5bd034e459e93da17e \
                    sha256  e7d99b5b60ff0b94c540379f6396a670210400124544fb1af985dd3551eabd89

configure           {
                        reinplace "s;/usr/local/;${destroot}${prefix};" ${worksrcpath}/Makefile
                    }

destroot            {
                        set mandest ${destroot}${prefix}/share/man
                        set bindest ${destroot}${prefix}/bin
                        xinstall -m 755 -s -o root ${worksrcpath}/bchunk ${bindest}
                        file mkdir ${mandest}
                        file mkdir ${mandest}/man1
                        xinstall -m 644 ${worksrcpath}/bchunk.1 ${mandest}/man1
                    }

livecheck.type      regex
livecheck.regex     ${name}-(\\d+(?:\\.\\d+)*)
