summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2018-09-12 12:57:22 +0200
committerLars Wendler <polynomial-c@gentoo.org>2018-09-12 12:57:38 +0200
commit83a652d4d37f6b167d15077018f9f0ba817e2679 (patch)
treec3971e50f727ef6ba3df65ea917c64c26bc5047c /games-engines
parentgames-engines/residualvm: Added live ebuild. (diff)
downloadgentoo-83a652d4d37f6b167d15077018f9f0ba817e2679.tar.gz
gentoo-83a652d4d37f6b167d15077018f9f0ba817e2679.tar.bz2
gentoo-83a652d4d37f6b167d15077018f9f0ba817e2679.zip
games-engines/residualvm: Bump to version 0.3.1
Package-Manager: Portage-2.3.49, Repoman-2.3.10
Diffstat (limited to 'games-engines')
-rw-r--r--games-engines/residualvm/Manifest1
-rw-r--r--games-engines/residualvm/residualvm-0.3.1.ebuild91
2 files changed, 92 insertions, 0 deletions
diff --git a/games-engines/residualvm/Manifest b/games-engines/residualvm/Manifest
index e17a719991a0..3aa86f9db791 100644
--- a/games-engines/residualvm/Manifest
+++ b/games-engines/residualvm/Manifest
@@ -1 +1,2 @@
DIST residualvm-0.2.1-sources.tar.bz2 5533814 BLAKE2B befcb42c823d31ff1e8793d0c902bfdf6b3728530c97b3f43ada5d3b2903a0cddba3247095d1674e62cdd75a6db28a7a5f3b1437e5c39cb5eccb37dff9d52fad SHA512 9eed93770ef1ad828934c32e937b861c93f1ebbb0d936f3f56668e654588f734dc88e29446f0a69f8f26475e96b8ce7ca85318758b99aabc9586756692c721da
+DIST residualvm-0.3.1-sources.tar.bz2 6711799 BLAKE2B 93d21bc5ee2c567b1ef256a69a2634761cd52211a0b2d926edc67b65e0cc1bf23b41c91225e6d43990d61e6c3761acf19defaa9b477ad882d332ad77c71af1a6 SHA512 491a77f1775718795d93f099fa39ec5888755ac1df610089c17209334b98ae783271078ed03a61ced09835aa327446804a55522d4b83f618dd3b843c231444a0
diff --git a/games-engines/residualvm/residualvm-0.3.1.ebuild b/games-engines/residualvm/residualvm-0.3.1.ebuild
new file mode 100644
index 000000000000..7343afbb7e72
--- /dev/null
+++ b/games-engines/residualvm/residualvm-0.3.1.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit gnome2-utils toolchain-funcs xdg-utils
+
+DESCRIPTION="A cross-platform 3D game interpreter for play LucasArts' LUA-based 3D adventures"
+HOMEPAGE="http://www.residualvm.org/"
+if [[ "${PV}" = 9999* ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/residualvm/residualvm.git"
+else
+ SRC_URI="http://www.residualvm.org/downloads/release/${PV}/${P}-sources.tar.bz2"
+ KEYWORDS="~amd64 ~x86"
+fi
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+IUSE=""
+
+# TODO: fix dynamic plugin support
+# games crash without media-libs/libsdl[alsa]
+RDEPEND="
+ media-libs/alsa-lib
+ media-libs/freetype:2
+ media-libs/glew:0=
+ media-libs/libpng:0=
+ media-libs/libsdl2[X,sound,alsa,joystick,opengl,video]
+ sys-libs/zlib
+ virtual/glu
+ virtual/jpeg:0
+ virtual/opengl"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ # not an autotools script
+ # most configure options currently do nothing, verify on version bump !!!
+ # disable explicitly, otherwise we get unneeded linkage (some copy-paste build system)
+ local myconf=(
+ --backend=sdl
+ --disable-debug
+ --disable-faad
+ --disable-flac
+ --disable-fluidsynth
+ --disable-libunity
+ --disable-mad
+ --disable-sparkle
+ --disable-translation
+ --disable-tremor
+ --disable-vorbis
+ --docdir="/usr/share/doc/${PF}"
+ --enable-all-engines
+ --enable-release-mode
+ --enable-zlib
+ )
+ ./configure "${myconf[@]}" || die "configure failed"
+}
+
+src_compile() {
+ emake \
+ VERBOSE_BUILD=1 \
+ AR="$(tc-getAR) cru" \
+ RANLIB=$(tc-getRANLIB)
+}
+
+src_install() {
+ dobin residualvm
+
+ insinto "/usr/share/${PN}"
+ doins gui/themes/modern.zip dists/engine-data/residualvm-grim-patch.lab
+
+ doicon -s scalable icons/${PN}.svg
+ doicon -s 256 icons/${PN}.png
+ domenu dists/${PN}.desktop
+
+ doman dists/${PN}.6
+ dodoc AUTHORS README.md KNOWN_BUGS TODO
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ xdg_desktop_database_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+ xdg_desktop_database_update
+}