# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-arcade/sdl-sopwith/sdl-sopwith-1.7.1.ebuild,v 1.12 2007/04/24 15:11:26 drizzt Exp $ inherit eutils games MY_P="${P/-/_}" S="${WORKDIR}/${MY_P}" DESCRIPTION="Port of the classic Sopwith game using LibSDL" HOMEPAGE="http://sdl-sopwith.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ppc x86 ~x86-fbsd" IUSE="" RDEPEND=">=media-libs/freetype-2 >=media-libs/libsdl-1.1.3 dev-libs/atk x11-libs/pango >=x11-libs/gtk+-2 >=dev-libs/glib-2" DEPEND="${RDEPEND} dev-util/pkgconfig" src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}/${P}"-gcc41.patch } src_install() { make DESTDIR="${D}" install || die "make install failed" dodoc AUTHORS ChangeLog FAQ NEWS README TODO doc/*txt rm -rf "${D}/usr/games/share/" prepgamesdirs }