# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 67227 2010-05-03 06:20:03Z blb@macports.org $

PortSystem	1.0

name		osh
version		20100430
categories	shells
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.
platforms	darwin
homepage	http://v6shell.org/
master_sites	${homepage}src/

checksums	md5    16d51fb774f1fe3e11672ee0fcbf9a39 \
		sha1   7b8ff4ba099320433612e8e8e706a7305f7a595b \
		rmd160 82d3b2e3dd4c229b314887cab7c074cc3dfb2700

use_configure		no
use_parallel_build	yes

build.args	PREFIX=${prefix}

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

variant universal {
	build.args-append	CFLAGS="${configure.universal_cflags}" \
				LDFLAGS="${configure.universal_ldflags}"
}

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