# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit games java-pkg-opt-2 java-ant-2 DESCRIPTION="graphical user interface to programs that play the board game Go and support the Go Text Protocol, such as GNU Go." HOMEPAGE="http://gogui.sourceforge.net/" SRC_URI="mirror://sourceforge/gogui/${P}.zip" LICENSE="GPL" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="app-arch/unzip >=virtual/jdk-1.5" RDEPEND=">=virtual/jre-1.5" src_compile() { ANT_TASKS="ant-nodeps" eant || die } src_install() { dodir "${GAMES_DATADIR}/${PN}" insinto "${GAMES_DATADIR}/${PN}" doins ${S}/lib/*.jar || die "doins failed" for j in $(ls ${S}/bin) do games_make_wrapper $j "java -jar $j.jar" "${GAMES_DATADIR}/${PN}" done dodoc CONTRIBUTE COPYING INSTALL README dohtml doc/manual/html/* doman doc/manual/man/* }