# -*- 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
# $Id: Portfile 119088 2014-04-16 23:41:40Z ryandesign@macports.org $

PortSystem          1.0

name                osh
version             20140410
categories          shells
license             BSD BSD-old
maintainers         v6shell.org:jan+mp
description         Ports of the Sixth Edition (V6) UNIX Thompson shell
long_description    The osh package provides two ports of the original /bin/sh \
                    from Sixth Edition (V6) UNIX (circa 1975). Osh is an enhanced \
                    port of the shell, and sh6 is an unenhanced port of the shell. \
                    This package also includes the following shell utilities \
                    for use by sh6: glob6, if, goto, and fd2.
conflicts           omake
platforms           darwin
homepage            http://v6shell.org/
master_sites        ${homepage}src/

checksums           md5     bb7093e0de3514e60726d633d8e75e7b \
                    sha1    73d44e5d04504e6af1ffb6e23763ec7f5a40ae1a \
                    rmd160  261ea43e896d06cd25f122aa092c8d5df5edb755 \
                    sha256  c1830ecf56d4705a744677a53f79b2ec6e71e8f9fb9a229dc3632afd8e7a4ff6

use_configure       no
use_parallel_build  yes

build.args          PREFIX=${prefix}

# Ensure use of the correct build utilities.
build.args-append   CC=${configure.cc} CPP=${configure.cpp}

variant universal   {}

# Ensure use of the correct build_arch.
build.args-append   OSXCFLAGS="[get_canonical_archflags cc]" \
                    OSXLDFLAGS="[get_canonical_archflags ld]"

destroot.args       PREFIX=${prefix}
destroot.target     install install-doc install-exp

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     ${name}-(\\d{8})${extract.suffix}
