# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit 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 pthread 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 emake || die "emake failed" } src_install() { egamesinstall \ pattern_dir="${D}${GAMES_DATADIR}/${P}/pattern" \ book_dir="${D}${GAMES_DATADIR}/${P}/book" \ theme_dir="${D}${GAMES_DATADIR}/${P}/theme" \ helpdir="${D}${GAMES_DATADIR}/gnome/help/${P}" \ || die "egamesinstall failed" prepgamesdirs }