# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit games DESCRIPTION="a Go board, SGF editor, client for the Internet Go Server and an interface for playing with GNU Go" HOMEPAGE="http://panda-igs.joyjoy.net/java/gGo/" SRC_URI="http://panda-igs.joyjoy.net/java/gGo/download/${P}.tar.gz" LICENSE="as-is" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND=">=virtual/jdk-1.3" RDEPEND=">=virtual/jre-1.3" S=${WORKDIR} src_unpack() { cd "${S}" unpack "${A}" tar -xpf gGo.ss sed -i -e "s:/usr/local/gGo/lib/:${GAMES_DATADIR}/${PN}/:" usr/local/gGo/bin/ggo || die "sed failed" } src_install() { dodir "${GAMES_DATADIR}/${PN}" cp usr/local/gGo/lib/* "${D}${GAMES_DATADIR}/${PN}" || die "Installing data failed" dogamesbin usr/local/gGo/bin/ggo || die "Installing executable failed" dodoc usr/local/gGo/doc/*.txt dohtml usr/local/gGo/doc/manual prepgamesdirs }