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-rpg/adonthell/adonthell-0.3.5.ebuild

68 lines
1.5 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-rpg/adonthell/adonthell-0.3.5.ebuild,v 1.7 2012/04/13 19:22:44 ulm Exp $
EAPI=2
PYTHON_DEPEND="2"
inherit autotools eutils python games
DESCRIPTION="roleplaying game engine"
HOMEPAGE="http://adonthell.linuxgames.com/"
SRC_URI="http://savannah.nongnu.org/download/${PN}/${PN}-src-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ppc x86"
IUSE="doc nls"
RDEPEND="media-libs/sdl-ttf
media-libs/sdl-mixer[vorbis]
media-libs/libsdl[X,video,audio]
sys-libs/zlib
media-libs/freetype
media-libs/libogg
media-libs/libvorbis
nls? ( virtual/libintl )"
DEPEND="${RDEPEND}
dev-lang/swig
doc? (
media-gfx/graphviz
app-doc/doxygen
)
nls? ( sys-devel/gettext )"
S=${WORKDIR}/${PN}-${PV/a/}
pkg_setup() {
python_set_active_version 2
games_pkg_setup
}
src_prepare() {
epatch \
"${FILESDIR}"/${P}-configure.in.patch \
"${FILESDIR}"/${P}-glibc-2.10.patch \
"${FILESDIR}"/${P}-gcc46.patch
sed -i \
-e "/AC_PATH_PROGS/s:python:$(PYTHON):" \
configure.in || die "sed failed"
rm -f ac{local,include}.m4
eautoreconf
}
src_configure() {
egamesconf \
--disable-dependency-tracking \
--disable-py-debug \
$(use_enable nls) \
$(use_enable doc)
}
src_install() {
emake DESTDIR="${D}" install || die
keepdir "${GAMES_DATADIR}"/${PN}/games
dodoc AUTHORS ChangeLog FULLSCREEN.howto NEWBIE NEWS README
prepgamesdirs
}