diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-rpg/adonthell/adonthell-0.3.5-r1.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-rpg/adonthell/adonthell-0.3.5-r1.ebuild')
-rw-r--r-- | games-rpg/adonthell/adonthell-0.3.5-r1.ebuild | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/games-rpg/adonthell/adonthell-0.3.5-r1.ebuild b/games-rpg/adonthell/adonthell-0.3.5-r1.ebuild new file mode 100644 index 000000000000..d535d9fddbd1 --- /dev/null +++ b/games-rpg/adonthell/adonthell-0.3.5-r1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit autotools eutils python-single-r1 games + +DESCRIPTION="roleplaying game engine" +HOMEPAGE="http://adonthell.linuxgames.com/" +SRC_URI="https://savannah.nongnu.org/download/${PN}/${PN}-src-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="doc nls" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + media-libs/sdl-ttf + media-libs/sdl-mixer[vorbis] + media-libs/libsdl:0[X,video,sound] + 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-single-r1_pkg_setup + games_pkg_setup +} + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-configure.in.patch \ + "${FILESDIR}"/${P}-glibc-2.10.patch \ + "${FILESDIR}"/${P}-format.patch \ + "${FILESDIR}"/${P}-gcc46.patch + sed -i \ + -e "/AC_PATH_PROGS/s:python:${EPYTHON}:" \ + 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 + keepdir "${GAMES_DATADIR}"/${PN}/games + dodoc AUTHORS ChangeLog FULLSCREEN.howto NEWBIE NEWS README + prepgamesdirs +} |