summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin English <wizardedit@gentoo.org>2016-11-10 17:00:14 -0600
committerAustin English <wizardedit@gentoo.org>2016-11-11 13:38:57 -0600
commit9e1d5d91199a6f6bdc51eb1790d1d923888b1329 (patch)
tree1d4410dfb256ab52b233c13a3d55b216c36ffba7 /games-engines/gemrb
parentgames-engines/frotz: remove deprecated games eclass (diff)
downloadgentoo-9e1d5d91199a6f6bdc51eb1790d1d923888b1329.tar.gz
gentoo-9e1d5d91199a6f6bdc51eb1790d1d923888b1329.tar.bz2
gentoo-9e1d5d91199a6f6bdc51eb1790d1d923888b1329.zip
games-engines/gemrb: remove deprecated games eclass
Also update to EAPI 6 Gentoo-Bug: https://bugs.gentoo.org/574082 Package-Manager: portage-2.3.2
Diffstat (limited to 'games-engines/gemrb')
-rw-r--r--games-engines/gemrb/gemrb-0.8.3-r1.ebuild77
1 files changed, 77 insertions, 0 deletions
diff --git a/games-engines/gemrb/gemrb-0.8.3-r1.ebuild b/games-engines/gemrb/gemrb-0.8.3-r1.ebuild
new file mode 100644
index 00000000000..4c1ea0a8649
--- /dev/null
+++ b/games-engines/gemrb/gemrb-0.8.3-r1.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+WANT_CMAKE=always
+inherit eutils python-any-r1 cmake-utils gnome2-utils
+
+DESCRIPTION="Reimplementation of the Infinity engine"
+HOMEPAGE="http://gemrb.sourceforge.net/"
+SRC_URI="mirror://sourceforge/gemrb/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="media-libs/freetype
+ media-libs/libpng:0
+ >=media-libs/libsdl-1.2[video]
+ media-libs/libvorbis
+ media-libs/openal
+ media-libs/sdl-mixer
+ sys-libs/zlib
+ ${PYTHON_DEPS}"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+pkg_setup() {
+ python-any-r1_pkg_setup
+}
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e '/COPYING/d' \
+ CMakeLists.txt || die
+}
+
+src_configure() {
+ mycmakeargs=(
+ -DBIN_DIR="/usr/bin"
+ -DCMAKE_INSTALL_PREFIX="/usr"
+ -DDATA_DIR="/usr/share/gemrb"
+ -DDOC_DIR="/usr/share/doc/${PF}"
+ -DICON_DIR=/usr/share/pixmaps
+ -DLIB_DIR="/usr/$(get_libdir)"
+ -DMAN_DIR=/usr/share/man/man6
+ -DMENU_DIR=/usr/share/applications
+ -DSVG_DIR=/usr/share/icons/hicolor/scalable/apps
+ -DSYSCONF_DIR="/etc/${PN}"
+ )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ DOCS="README NEWS AUTHORS" \
+ cmake-utils_src_install
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}