# -*- 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        user454322 realpath 1.0.2 v
revision            0
checksums           rmd160  b31ee3f1451c85df4fa33337e30e7f708bdc903d \
                    sha256  e3c485bf01a359064575f9ace281a91ac2b3bd3dd30d0039f3b817fd5500cd25 \
                    size    4634

categories          sysutils
platforms           darwin
maintainers         {@user454322 yahoo.com.mx:dev.modprobe}
license             BSD

description         realpath(1)

long_description    realpath uses realpath(3) to resolve the path of the \
                    filename(s) supplied as arguments and prints the result \
                    to stdout.

github.tarball_from archive

configure.pre_args
configure.args      -b ${prefix} \
                    -m ${prefix}/share/man

configure.universal_args-delete --disable-dependency-tracking

variant universal {}

build.target
build.args          CC="${configure.cc} [get_canonical_archflags cc]"

test.run            yes
test.target         test

post-destroot {
    set docdir ${prefix}/share/doc/${subport}
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 -W ${worksrcpath} \
        LICENSE \
        README.md \
        ${destroot}${docdir}
}
