games-engines/residualvm: Bump to version 0.3.1
authorLars Wendler <polynomial-c@gentoo.org>
Wed, 12 Sep 2018 10:57:22 +0000 (12:57 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Wed, 12 Sep 2018 10:57:38 +0000 (12:57 +0200)
Package-Manager: Portage-2.3.49, Repoman-2.3.10

games-engines/residualvm/Manifest
games-engines/residualvm/residualvm-0.3.1.ebuild [new file with mode: 0644]

index e17a719991a00cb7e94f32e7700941ab42a8a686..3aa86f9db791dc1fefc73da39d843578e548d55b 100644 (file)
@@ -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 (file)
index 0000000..7343afb
--- /dev/null
@@ -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
+}