summaryrefslogtreecommitdiff
path: root/games-engines
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2015-12-07 03:09:53 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2015-12-07 03:09:53 +0300
commit58c6ce9308423950fc405fad4343c895f497b496 (patch)
tree572e4117dda14111b9290ebc7fe628efeaec940c /games-engines
parentf5beac92da668d17991be8386a0e4c66541985ab (diff)
added gemrb git ebuild
Diffstat (limited to 'games-engines')
-rw-r--r--games-engines/gemrb/gemrb-scm.ebuild79
1 files changed, 79 insertions, 0 deletions
diff --git a/games-engines/gemrb/gemrb-scm.ebuild b/games-engines/gemrb/gemrb-scm.ebuild
new file mode 100644
index 0000000..73f3f23
--- /dev/null
+++ b/games-engines/gemrb/gemrb-scm.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Copyright 2014 Julian Ospald <hasufell@posteo.de>
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+WANT_CMAKE=always
+PYTHON_COMPAT=( python2_7 )
+inherit eutils cmake-utils gnome2-utils multilib python-single-r1 git-r3
+
+DESCRIPTION="Reimplementation of the Infinity engine"
+HOMEPAGE="http://gemrb.sourceforge.net/"
+SRC_URI=""
+EGIT_REPO_URI="git://github.com/gemrb/gemrb.git"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+IUSE=""
+
+RDEPEND="${PYTHON_DEPS}
+ media-libs/freetype
+ media-libs/glew
+ media-libs/libpng:0
+ media-libs/libsdl2[video]
+ media-libs/libvorbis
+ media-libs/openal
+ media-libs/sdl-mixer
+ sys-libs/zlib
+ virtual/opengl
+"
+DEPEND=${RDEPEND}
+
+src_prepare() {
+ sed -i \
+ -e '/COPYING/d' \
+ CMakeLists.txt || die
+}
+
+src_configure() {
+ mycmakeargs=(
+ -DCMAKE_INSTALL_PREFIX=/usr
+ -DBIN_DIR=/usr/bin
+ -DDATA_DIR=/usr/share/gemrb
+ -DSYSCONF_DIR=/etc/gemrb
+ -DLIB_DIR=/usr/$(get_libdir)/${PN}
+ -DMAN_DIR=/usr/share/man/man6
+ -DICON_DIR=/usr/share/pixmaps
+ -DMENU_DIR=/usr/share/applications
+ -DDOC_DIR="/usr/share/doc/${PF}"
+ -DSVG_DIR=/usr/share/icons/hicolor/scalable/apps
+ -DUSE_OPENGL=1
+ -DUSE_SDL2=ON
+ -DDISABLE_WERROR=1
+ )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+ dodoc README NEWS AUTHORS
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
+