# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit games DESCRIPTION="Hexagonal Minesweeper" HOMEPAGE="http://grayswander.tripod.com/hexamine/" SRC_URI="http://grayswander.tripod.com/hexamine/files/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="media-libs/libsdl dev-python/pygame" src_unpack() { unpack ${A} mv ${WORKDIR}/${PN} ${WORKDIR}/${P} cd ${S} # Modify game data directory sed -i -e "s:\`dirname \$0\`:${GAMES_DATADIR}/${PN}:" \ hexamine || die "Sed failed!" } src_install() { dogamesbin hexamine mkdir -p ${D}${GAMES_DATADIR}/${PN} cp *.py ${D}${GAMES_DATADIR}/${PN}/ cp *.png ${D}${GAMES_DATADIR}/${PN}/ cp *.ttf ${D}${GAMES_DATADIR}/${PN}/ dodoc ABOUT README prepgamesdirs }