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

github.setup        ap rename 0da9faa241093c90a40b15a9ff4b36e9858d4516
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name                rename
version             1.601
revision            0
categories          sysutils
license             GPL-1+
platforms           any
supported_archs     noarch
maintainers         @dylanarmstrong openmaintainer

description         rename files using regexp passed from command line
long_description    This program renames files according to modification \
                    rules specified on the command line. If no filenames \
                    are given on the command line, a list of filenames \
                    will be expected on standard input.

homepage            http://plasmasturm.org/code/rename

checksums           rmd160  e7b89cf872310d7a97134df0d182dbd52ed01360 \
                    sha256  a146b7968d8ecf39e559cf76b62270c961ba153a8ab46092cf22ace9ef3905fa \
                    size    14907

depends_lib-append  path:bin/perl:perl5

use_configure       no
build               {}
destroot            {
    file copy ${worksrcpath}/${name} ${destroot}${prefix}/bin/${name}.pl
}

notes "
    ${name} has been installed as ${name}.pl to avoid conflicts with util-linux.
"
