gentoo-zh/games-board/othello/othello-0.2.0.ebuild
2007-06-25 18:07:08 +00:00

33 lines
755 B
Bash

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit games
DESCRIPTION="Othello is a classic strategy game, also known as Reversi"
HOMEPAGE="http://sourceforge.net/projects/othello-game/"
SRC_URI="mirror://sourceforge/othello-game/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
RESTRICT="nomirror"
DEPEND="dev-libs/boost
>=x11-libs/wxGTK-2.6"
RDEPEND="${DEPEND}"
pkg_setup() {
if has_version =dev-libs/boost-1.33* && ! built_with_use dev-libs/boost threads; then
einfo "Please re-emerge dev-libs/boost with the threads USE flag set"
die "boost needs the threads flag set"
fi
}
src_install() {
emake DESTDIR="${D}" install || die "Install failed"
}