# -*- 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                renameutils
version             0.12.0
revision            0
categories          sysutils
license             GPL-3+
maintainers         nomaintainer

description         renameutils is a set of programs designed to make renaming \
                    files faster and less cumbersome
long_description    The file renaming utilities consists of five programs - \
                    qmv, qcp, imv, icp and deurlname. qmv and qcp allow the \
                    use of a text editor to edit filenames. imv and icp are \
                    interactive tools with GNU readline support. deurlname \
                    removes URL encoded characters from filenames.

homepage            https://www.nongnu.org/renameutils/
master_sites        http://ftp.twaren.net/Unix/NonGNU/renameutils/ \
                    https://download.savannah.gnu.org/releases/renameutils/

checksums           rmd160  996cf00d764ed3f4443fcf7af4ed3649bda365f3 \
                    sha256  cbd2f002027ccf5a923135c3f529c6d17fabbca7d85506a394ca37694a9eb4a3 \
                    size    954114

depends_build-append \
                    port:gettext

depends_lib-append \
                    port:readline \
                    port:gettext-runtime \
                    path:libexec/coreutils/libstdbuf.so:coreutils

patchfiles-append \
                    patch-use_coreutils.diff \
                    patch-fix_install.diff \
                    lstat64.patch

configure.ldflags-append \
                    -liconv \
                    -lintl
