# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils games DESCRIPTION="Othello/Reversi game" HOMEPAGE="http://rhino.sourceforge.net/" SRC_URI="mirror://sourceforge/rhino/${P}.tar.gz" LICENSE="GPL-2" KEYWORDS="~x86" IUSE="gnome gtp" DEPEND="gnome?(=gnome-base/libgnomeui-2*)" pkg_setup() { if ! have_NPTL; then eerror "you must have built glibc with phtread support" eerror "you can do this by running" die "USE=nptl emerge glibc" fi games_pkg_setup } src_compile() { egamesconf \ $(use_enable gnome) \ $(use_enable gtp) \ || die "configure failed" emake || die } src_install() { if use gnome; then dogamesbin grhino || die "dogamesbin failed" fi if use gtp; then dogamesbin gtp-rhino || die "dogamesbin failed" fi prepgamesdirs }