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-roguelike/wrogue/wrogue-0.8.0b-r1.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-roguelike/wrogue/wrogue-0.8.0b-r1.ebuild')
-rw-r--r-- | games-roguelike/wrogue/wrogue-0.8.0b-r1.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/games-roguelike/wrogue/wrogue-0.8.0b-r1.ebuild b/games-roguelike/wrogue/wrogue-0.8.0b-r1.ebuild new file mode 100644 index 000000000000..074880df4a8e --- /dev/null +++ b/games-roguelike/wrogue/wrogue-0.8.0b-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils + +DESCRIPTION="Gothic science fantasy roguelike game" +HOMEPAGE="https://freecode.com/projects/wrogue" +SRC_URI="mirror://gentoo/${P}.zip" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="media-libs/libsdl[video]" +DEPEND="${RDEPEND} + app-arch/unzip" + +PATCHES=( + "${FILESDIR}"/${P}-ldflags.patch +) + +src_prepare() { + default + + sed -i \ + -e "/AppData\[0\]/ s:AppData.*:strcpy(AppData, \"/usr/share/${PN}/\");:" \ + src/lib/appdir.c \ + || die "sed failed" +} + +src_compile() { + local myCPPFLAGS="-std=c99 -Iinclude -Ilib -Iui -Igenerate" + local myCFLAGS="$(sdl-config --cflags) ${CFLAGS}" + emake -C src -f linux.mak STRIP_BINARY=NO \ + CFLAGS="${myCPPFLAGS} ${myCFLAGS}" release +} + +src_install() { + dobin ${PN} + insinto /usr/share/${PN} + doins -r data + dodoc changes.txt + + newicon data/ui/icon.bmp ${PN}.bmp + make_desktop_entry ${PN} "Warp Rogue" /usr/share/pixmaps/${PN}.bmp +} |