You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.1 KiB
50 lines
1.1 KiB
# Copyright 1999-2009 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/games-board/fruit/fruit-2.1.ebuild,v 1.6 2009/11/25 14:02:54 maekke Exp $
|
|
|
|
EAPI=2
|
|
inherit eutils versionator games
|
|
|
|
MY_PV=$(replace_all_version_separators '')
|
|
MY_P=${PN}_${MY_PV}_linux
|
|
DESCRIPTION="UCI-only chess engine"
|
|
HOMEPAGE="http://arctrix.com/nas/fruit/"
|
|
SRC_URI="http://arctrix.com/nas/${PN}/${MY_P}.zip"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 x86"
|
|
IUSE=""
|
|
|
|
RDEPEND=""
|
|
DEPEND="app-arch/unzip"
|
|
|
|
S=${WORKDIR}/${MY_P}/src
|
|
|
|
src_prepare() {
|
|
epatch "${FILESDIR}/${P}"-gentoo.patch
|
|
sed -i \
|
|
-e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \
|
|
option.cpp \
|
|
|| die "sed option.cpp failed"
|
|
sed -i \
|
|
-e '/^CXX/d' \
|
|
-e '/^LDFLAGS/d' \
|
|
Makefile \
|
|
|| die "sed Makefile failed"
|
|
}
|
|
|
|
src_install() {
|
|
dogamesbin ${PN} || die "dogamesbin failed"
|
|
insinto "${GAMES_DATADIR}/${PN}"
|
|
doins ../book_small.bin || die "doins failed"
|
|
dodoc ../readme.txt ../technical_10.txt
|
|
prepgamesdirs
|
|
}
|
|
|
|
pkg_postinst() {
|
|
games_pkg_postinst
|
|
elog "To use this engine you need to install a UCI chess GUI"
|
|
elog "e.g. games-board/glchess"
|
|
}
|