# -*- 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
PortGroup           perl5 1.0

name                cws2fws-pl
version             0.0.1
revision            8
categories          multimedia
license             MIT
maintainers         nomaintainer
description         Flash format 6+ decompressor
long_description    ${description}
supported_archs     noarch
platforms           any
homepage            https://web.archive.org/web/20120618212307/http://zefonseca.com/cws2fws/
master_sites        https://web.archive.org/web/20120618212302/http://zefonseca.com/cws2fws/release/
distfiles           cws2fws
dist_subdir         ${name}/${version}_1

checksums           rmd160  8475a3e880ac76856b6c215c6d65584a575583bc \
                    sha256  638164649e6626acaffd7e264b52cd711cc0ef71490a4d8221856ddd89ac0dd3 \
                    size    4137

perl5.branches      5.34

depends_run         port:p${perl5.major}-io-compress

extract.mkdir       yes

extract {
    copy "${distpath}/cws2fws" "${worksrcpath}/cws2fws.pl"
}

patch {
    reinplace "s|^#!/usr/bin/perl|#!${perl5.bin}|" "${worksrcpath}/cws2fws.pl"
}

use_configure       no

build {}

destroot {
    xinstall -m 0755 "${worksrcpath}/cws2fws.pl" "${destroot}${prefix}/bin/cws2fws.pl"
}

livecheck.type      none
