# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils games
DESCRIPTION="a free chess database application"
HOMEPAGE="http://chessx.sourceforge.net/"
SRC_URI="http://chessx.sourceforge.net/files/chessdatabase-cvs.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="qt4"
DEPEND="x11-libs/qt"
src_compile() {
cd ${WORKDIR}/chessdatabase
if use qt4; then
./q4make
else
qmake
fi
make
}
src_install() {
cp ${WORKDIR}/chessdatabase/bin/chessdatabase ${D}/${GAMES_BINDIR}/chessx
dodir ${GAMES_DATADIR}/chessx
cp -fR ${WORKDIR}/chessdatabas/data/* ${D}/${GAMES_DATADIR}/chessx/
prepgamesdirs
}
pkg_postinst() {
games_pkg_postinst
einfo "This is unofficial ebuild, smile!"
}