# -*- 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.3.1 ../../authors/id/A/AS/ASPIERS

categories          sysutils
platforms           darwin
maintainers         nomaintainer
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  d65ffe0d4c9a6676c5e0ae63f751135a4c1f7dce \
                    sha256  5062a1f8d0c03e38aca5cf46b72de0cba03f901279729338b7b2f93e518182d8 \
                    size    704878

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

perl5.use_module_build
perl5.link_binaries_suffix

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