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

github.setup            casey edmv 0.1.0
github.tarball_from     releases
revision                2

categories              sysutils python
supported_archs         noarch
platforms               any
license                 permissive

maintainers             rodarmor.com:casey
description             Batch rename files with your favorite editor
long_description        edmv allows you to interactively rename files with the \
                        editor of your choice.

checksums               rmd160  ceefdd6db98ecb69a612d368de3f8d6577e1e066 \
                        sha256  8fbe7efc519f291f936aa001f3960dec56b6149c8fed06402a504ae993d1ce31

python.default_version  314
build                   {}

post-patch {
    reinplace "s|#!/usr/bin/env python|#!${python.bin}|" ${worksrcpath}/edmv
}

destroot {
    xinstall -m 0755 ${worksrcpath}/edmv ${destroot}${prefix}/bin
}
