# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/app-games/fortune-mod-bofh-excuses/fortune-mod-bofh-excuses-1.2.ebuild,v 1.6 2003/08/26 09:04:01 kumba Exp $ S=${WORKDIR} DESCRIPTION="Excuses from Bastard Operator from Hell" SRC_URI="http://www.cs.wisc.edu/~ballard/bofh/excuses" HOMEPAGE="http://www.cs.wisc.edu/~ballard/bofh/" SLOT="0" KEYWORDS="x86 ppc mips sparc" LICENSE="" DEPEND="virtual/glibc" RDEPEND="app-games/fortune-mod" src_unpack() { # essentially do nothing cp ${DISTDIR}/excuses ${S} } src_compile() { cd ${S}/ LINES=`wc -l ${S}/excuses | awk '{ print $1 }'` for i in `seq 1 $LINES`; do CURR=`head -$i ${S}/excuses | tail -1` echo "BOFH Excuse #$i" >> ${S}/bofh-excuses echo >> ${S}/bofh-excuses echo "$CURR" >> ${S}/bofh-excuses echo "%" >> ${S}/bofh-excuses done strfile ${S}/bofh-excuses } src_install() { cd ${S} insinto /usr/share/fortune doins bofh-excuses.dat bofh-excuses }