# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem 1.0
name                bchunk
version             1.2.0
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
platforms           darwin 
homepage            http://he.fi/bchunk/
master_sites        ${homepage}
checksums           md5 6a613da3f34f9a303f202d2e9731d231
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+)*)
