Overlay/games-strategy/zod-engine/zod-engine-20110906-r1.ebuild

64 lines
1.4 KiB
Bash
Raw Normal View History

2015-03-22 13:53:48 +03:00
# Copyright 2014 Julian Ospald <hasufell@posteo.de>
2014-01-06 16:28:22 +04:00
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
WX_GTK_VER="2.8"
2015-03-22 13:53:48 +03:00
inherit eutils wxwidgets gnome2-utils
2014-01-06 16:28:22 +04:00
MY_P=zod_gentoo-${PV:0:4}-${PV:4:2}-${PV:6:2}
DESCRIPTION="Zod engine is a remake of the 1996 classic game by Bitmap Brothers called Z"
HOMEPAGE="http://zod.sourceforge.net/"
SRC_URI="mirror://sourceforge/zod/${MY_P}.tar.xz"
LICENSE="GPL-3 LGPL-2.1"
SLOT="0"
2018-06-21 11:54:11 +03:00
KEYWORDS="amd64 x86"
2014-01-06 16:28:22 +04:00
IUSE="+editor +launcher"
RDEPEND="
2015-03-22 13:53:48 +03:00
media-libs/libsdl[X,sound,video]
2014-01-06 16:28:22 +04:00
media-libs/sdl-ttf[X]
media-libs/sdl-mixer[mp3,timidity,vorbis,wav]
media-libs/sdl-image[png]
virtual/mysql
x11-libs/wxGTK:${WX_GTK_VER}[X]"
DEPEND="${RDEPEND}"
PDEPEND="~games-strategy/zod-engine-data-${PV}"
S=${WORKDIR}/${MY_P}/zod_engine
src_compile() {
2015-03-22 13:53:48 +03:00
emake -C zod_src DATA_PATH="\"/usr/share/${PN}\"" main $(usex editor "map_editor" "")
use launcher && emake -C zod_launcher_src DATA_PATH="\"/usr/share/${PN}\""
2014-01-06 16:28:22 +04:00
}
src_install() {
2015-03-22 13:53:48 +03:00
dobin zod_src/zod
2014-01-06 16:28:22 +04:00
dodoc zod_engine_help.txt
if use editor ; then
2015-03-22 13:53:48 +03:00
dobin zod_src/zod_map_editor
2014-01-06 16:28:22 +04:00
dodoc map_editor_help.txt
fi
if use launcher ; then
2015-03-22 13:53:48 +03:00
dobin zod_launcher_src/zod_launcher
2014-01-06 16:28:22 +04:00
newicon -s 32 zod_launcher_src/icon.png ${PN}.png
make_desktop_entry zod_launcher "Zod Engine"
fi
}
pkg_preinst() {
gnome2_icon_savelist
}
pkg_postinst() {
gnome2_icon_cache_update
}
pkg_postrm() {
gnome2_icon_cache_update
}
2015-03-22 13:53:48 +03:00