# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-puzzle/xblockout/xblockout-1.0k.ebuild,v 1.1 2003/09/10 06:36:00 vapier Exp $ inherit games DESCRIPTION="XBlockOut: X Window block dropping game in 3 Dimension" HOMEPAGE="http://www710.univ-lyon1.fr/ftp/xbl/xbl.html" SRC_URI="ftp://ftp710.univ-lyon1.fr/pub/xbl/xbl-${PV}.tar.gz" LICENSE="GPL-1" SLOT="0" KEYWORDS="x86" DEPEND="virtual/x11 >=sys-apps/sed-4" S=${WORKDIR}/xbl-${PV} src_unpack() { unpack ${A} sed -i \ -e "s:-g$:${CFLAGS}:" ${S}/Makefile.in || \ die "sed Makefile.in failed" } src_compile() { egamesconf || die emake \ SCOREDIR=${GAMES_STATEDIR}/${PN} \ GROUP_GID=`id -g ${GAMES_GROUP}` \ RESOURCEDIR=${GAMES_DATADIR}/${PN} \ || die } src_install() { newgamesbin bl xbl insinto ${GAMES_DATADIR}/${PN} newins Xbl.ad Xbl insinto ${GAMES_STATEDIR}/${PN} newins Xbl.ad Xbl newman xbl.man xbl.6 dodoc README xbl-README dohtml *.html *.gif prepgamesdirs }