# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit toolchain-funcs DESCRIPTION="A small utility in C that quickly displays USE flag descriptions" HOMEPAGE="http://www.xs4all.nl/~rooversj/gentoo" SRC_URI="http://www.xs4all.nl/~rooversj/gentoo/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~hppa ~ppc-macos ~x86" IUSE="" DEPEND="virtual/libc" S="${WORKDIR}" src_compile() { echo "$(tc-getCC) -DVERSION=\"${PV}\" ${CFLAGS} -Wall -pedantic -o ${PN} ${PN}.c" $(tc-getCC) -DVERSION=\"${PV}\" ${CFLAGS} -W -Wall -pedantic -o ${PN} ${PN}.c || die } src_install() { dobin ${PN} || die doman ${PN}.1 || die dodoc ${PN}.c ${PN}.c.html ${PN}.man.html || die } pkg_postinst() { echo einfo "Run '${PN}' to find out how this simple program works." einfo "Run '${PN} ' to see immediate results." echo einfo "TODO: Add options. :)" echo }