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

name                etsh
version             5.4.0
categories          shells
license             BSD BSD-old
maintainers         nomaintainer
description         Ports of the Sixth Edition (V6) UNIX Thompson shell
long_description    The Etsh Project provides two ports of the original /bin/sh \
                    from Sixth Edition (V6) UNIX (circa 1975). Etsh is an enhanced port of \
                    the shell. Tsh is an unenhanced port of the shell, and glob is a port \
                    of its global command. This project also includes the following shell \
                    utilities: if, goto, and fd2.
platforms           darwin
homepage            https://etsh.nl/
master_sites        ${homepage}src/${name}_${version}/

checksums           rmd160  04bdddb7a7be7f1eb687c8470eb8c14e2d22bfc7 \
                    sha256  dc64d65d10d71794b05080025a7ee32174ce17fa67a403557f9bb06b0a0ea636 \
                    size    134505

configure.pre_args

build.args          PREFIX=${prefix}

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

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

destroot.args       PREFIX=${prefix} MANDIR=${prefix}/share/man/man1
destroot.target     install install-doc install-exp
