# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="A very small C compiler for ix86" HOMEPAGE="http://www.tinycc.org/" LICENSE="GPL-2" DEPEND="virtual/glibc" RDEPEND="${DEPEND}" SRC_URI="http://fabrice.bellard.free.fr/tcc/${P}.tar.gz" S=${WORKDIR}/${P} SLOT="0" KEYWORDS="x86" src_compile() { mv Makefile Makefile.orig || die sed -e 's:prefix=/usr/local:prefix=/usr:g' \ -e 's:$(INSTALL) tcc.1 $(prefix)/man/man1:# Gentoo \: Manpage handled by doman:' \ Makefile.orig > Makefile || die emake || die } src_install () { dodir /usr/bin dodir /usr/lib make prefix=${D}/usr install || die doman tcc.1 dodoc Changelog README TODO ex*.c dohtml tcc-doc.html }