# -*- 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 104242 2013-03-21 21:15:00Z ryandesign@macports.org $

PortSystem          1.0

name                dvdrip
version             0.98.11
categories          multimedia
maintainers         web.de:marioscheel
license             {Artistic-1 GPL}

description         perl front end for transcode
long_description    dvd::rip is a full featured DVD copy program written in \
                    Perl. It provides an easy to use but feature-rich Gtk+ GUI \
                    to control almost all aspects of the ripping and transcoding \
                    process. It uses the widely known video processing \
                    swissknife transcode and many other Open Source tools.
homepage            http://www.exit1.org/dvdrip/
platforms           darwin
master_sites        http://www.exit1.org/dvdrip/dist/

checksums           rmd160  008afcecd1eaf6842e907d325b079cc60f4a6b1e \
                    sha256  586c20968b2daa55c0afaaf334d5b9b8b6896d6ea45078a577e165806858c3a5

depends_lib         port:p5.12-libintl-perl \
                    port:transcode \
                    port:p5.12-gtk2

# transcode is not universal
universal_variant   no

# mv: dvdrip-splitpipe: No such file or directory
use_parallel_build  no

build.args          CC="${configure.cc} [get_canonical_archflags cc]"

post-destroot {
    fs-traverse f ${destroot}${prefix} {
        if {[file isfile ${f}]} {
            switch [file tail ${f}] {
                .packlist -
                perllocal.pod {
                    delete ${f}
                }
            }
        }
    }

    set docdir ${prefix}/share/doc/${subport}
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 -W ${worksrcpath} \
        COPYRIGHT \
        Changes \
        Changes.0.46 \
        Credits \
        README \
        TODO \
        ${destroot}${docdir}
}

livecheck.type      regex
livecheck.regex     /${name}-(\[0-9.\]+)${extract.suffix}
