# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="A bracket-mismatch detector for Tcl scripts."
HOMEPAGE="http://catless.ncl.ac.uk/Programs/tclCheck/"
SRC_URI="ftp://catless.ncl.ac.uk/pub/${PN}-${PV}.tar.gz"
LICENSE="AS-IS"
SLOT="0"
KEYWORDS="~x86 ~ppc ~sparc ~alpha ~arm ~amd64 ~ia64 ~hppa"
IUSE=""

RESTRICT="nomirror"

S="${WORKDIR}/${PN}-${PV}"

src_compile() {
	gcc ${CFLAGS} tclCheck.c -o tclCheck || die "Compilation failed."
}

src_install() {
	mkdir -p ${D}/usr/bin
	cp tclCheck ${D}/usr/bin/tclCheck
	dodoc COPYRIGHT README
	doman tclCheck.1
}