# -*- 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                stow

perl5.setup         Stow v2.4.1 ../../authors/id/A/AS/ASPIERS
revision            0

categories          sysutils
platforms           {darwin any}
maintainers         {@TheRealKeto gmail.com:therealketo} openmaintainer
license             GPL-3+
supported_archs     noarch

description         stow - manage farms of symbolic links

long_description    Stow is a symlink farm manager which takes distinct sets of software \
                    and/or data located in separate directories on the filesystem, and makes \
                    them all appear to be installed in a single directory tree.

checksums           rmd160  951175c342d99c86616e73de54b9f072d7e8aed6 \
                    sha256  2918947348c5bb58a379e9761b99c3d07976ce7a556766d9dbd32d4894ec1f52 \
                    size    787639

post-patch {
    reinplace "s|^#!/usr/bin/perl|#!${perl5.bin}|" \
        ${worksrcpath}/bin/chkstow \
        ${worksrcpath}/bin/stow
}

perl5.major         5.34

perl5.use_module_build
perl5.link_binaries_suffix

depends_build-append \
                    port:p${perl5.major}-io-stringy \
                    port:p${perl5.major}-test-output
