# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="An environment for editing and rendering CFDG design grammars" HOMEPAGE="http://www.ozonehouse.com/ContextFree/" SRC_URI="http://www.ozonehouse.com/ContextFree/ContextFree.tgz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND=">=media-libs/libpng-1.2.8 >=sys-devel/bison-1.875d >=sys-devel/flex-2.5.4a-r6" S=${WORKDIR}/ContextFree src_compile() { emake || die "emake failed" } src_install() { dobin cfdg dodoc LICENSE.txt README.txt } src_test() { make DESTDIR=${D} rtests || die "test failed" } src_unpack(){ if [ "${A}" != "" ]; then unpack ${A} fi cd ContextFree epatch ${FILESDIR}/${P}-Makefile.patch }