# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-board/eboard/eboard-0.8.0.ebuild,v 1.1 2003/09/10 17:46:27 vapier Exp $ inherit games eutils EXTRAS=eboard-extras-1pl2 EXDIR=${WORKDIR}/${EXTRAS} DESCRIPTION="chess interface for POSIX systems" HOMEPAGE="http://eboard.sourceforge.net/" SRC_URI="mirror://sourceforge/eboard/${P}.tar.gz mirror://sourceforge/eboard/${EXTRAS}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 ppc" IUSE="nls" DEPEND="=x11-libs/gtk+-1* >=media-libs/imlib-1.9.7 dev-lang/perl dev-util/pkgconfig nls? ( sys-devel/gettext )" src_unpack() { unpack ${A} [ ! `use nls` ] && cd ${S} && epatch ${FILESDIR}/${PV}-fake-nls.patch } src_compile() { egamesconf `use_enable nls` || die emake CXXFLAGS="${CXXFLAGS}" || die } src_install() { egamesinstall || die dodoc README AUTHORS COPYING ChangeLog INSTALL NEWS TODO dodoc Documentation/* cd ${EXDIR} insinto ${GAMES_DATADIR}/eboard doins *.png *.wav themeconf.extras1 newins extras1.conf themeconf.extras1 mv ChangeLog Changelog.extras mv README README.extras dodoc CREDITS ChangeLog.extras README.extras prepgamesdirs }