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.
gentoo-overlay/games-arcade/xbill/xbill-2.1-r2.ebuild

43 lines
954 B

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-arcade/xbill/xbill-2.1-r2.ebuild,v 1.9 2012/05/04 04:22:28 jdhore Exp $
EAPI=2
inherit eutils autotools games
DESCRIPTION="A game about an evil hacker called Bill!"
HOMEPAGE="http://www.xbill.org/"
SRC_URI="http://www.xbill.org/download/${P}.tar.gz"
LICENSE="GPL-1"
SLOT="0"
KEYWORDS="alpha amd64 ppc x86"
IUSE="gtk"
RDEPEND="gtk? ( x11-libs/gtk+:2 )
!gtk? ( x11-libs/libXaw )"
DEPEND="${RDEPEND}
virtual/pkgconfig"
src_prepare() {
epatch \
"${FILESDIR}"/${P}-gtk2.patch \
"${FILESDIR}"/${P}-gentoo.patch
eautoreconf
}
src_configure() {
egamesconf \
--disable-motif \
$(use_enable gtk) \
$(use_enable !gtk athena)
}
src_install() {
emake DESTDIR="${D}" install || die
newicon pixmaps/icon.xpm ${PN}.xpm
make_desktop_entry ${PN} XBill ${PN}
dodoc ChangeLog README
prepgamesdirs
}