# 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}.c http://www.xs4all.nl/~rooversj/gentoo/${P}.1" LICENSE="GPL-2" SLOT="0" KEYWORDS="~hppa ~x86" IUSE="" DEPEND="virtual/libc" src_unpack() { cp -v ${DISTDIR}/${A} ${WORKDIR} || die "Where is it?" } src_compile() { cd ${WORKDIR} echo "$(tc-getCC) ${CFLAGS} -Wall -pedantic -ansi -o euses ${P}.c" $(tc-getCC) ${CFLAGS} -Wall -pedantic -ansi -o euses ${P}.c || die "Failed to build" } src_install() { cd ${WORKDIR} dobin euses doman *.1 dodoc ${P}.c || die "Oops" } pkg_postinst() { echo einfo "Run '[/usr/bin/]euses' to find out how this simple program works." einfo "Run 'euses ' to see immediate results." echo ewarn "TODO: Make it check more paths properly (and do other sanity checks)." ewarn "TODO: Add args to specify what files to search and" ewarn " possibly to limit the search to only USE flags." echo }