diff options
Diffstat (limited to 'games-roguelike/scourge/scourge-0.21.1-r1.ebuild')
-rw-r--r-- | games-roguelike/scourge/scourge-0.21.1-r1.ebuild | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/games-roguelike/scourge/scourge-0.21.1-r1.ebuild b/games-roguelike/scourge/scourge-0.21.1-r1.ebuild new file mode 100644 index 000000000000..5eeec7c52315 --- /dev/null +++ b/games-roguelike/scourge/scourge-0.21.1-r1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools desktop wxwidgets + +DESCRIPTION="A graphical rogue-like adventure game" +HOMEPAGE="https://sourceforge.net/projects/scourge/" +SRC_URI="mirror://sourceforge/${PN}/${P}.src.tar.gz + mirror://sourceforge/${PN}/${P}.data.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=" + media-libs/freetype:2 + media-libs/libsdl[joystick,video] + media-libs/sdl-image[png] + media-libs/sdl-mixer[vorbis] + media-libs/sdl-net + media-libs/sdl-ttf + virtual/libintl + virtual/opengl + virtual/glu" +DEPEND="${RDEPEND} + sys-devel/gettext + virtual/pkgconfig" + +S="${WORKDIR}/${PN}" + +PATCHES=( + "${FILESDIR}"/${P}-gcc47.patch + "${FILESDIR}"/${P}-gcc6.patch + "${FILESDIR}"/${P}-automake-1.13.patch + "${FILESDIR}"/${P}-freetype_pkgconfig.patch +) + +src_prepare() { + default + + # bug #257601 + sed -i \ + -e '/AC_CHECK_HEADERS.*glext/ s:):, [#include <GL/gl.h>] ):' \ + configure.in || die + sed -i \ + -e '/snprintf/s/tmp, 256/tmp, sizeof(tmp)/' \ + src/scourgehandler.cpp || die + mv configure.{in,ac} || die + eautoreconf +} + +src_configure() { + local myeconfargs=( + --with-data-dir=/usr/share/${PN} + --localedir=/usr/share/locale + ) + econf "${myeconfargs[@]}" +} + +src_install() { + default + insinto /usr/share/${PN} + doins -r ../scourge_data/* + doicon assets/scourge.png + make_desktop_entry scourge S.C.O.U.R.G.E. +} |