summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2015-08-10 02:01:30 +0200
committerJulian Ospald <hasufell@gentoo.org>2015-08-10 02:01:46 +0200
commitc1537bbcee03d1319b059a84a90f51931ec32212 (patch)
tree73eba5c4c6338501e7d32f7d251ad453c544face /games-strategy
parentdev-python/html5lib: arm/ppc*/x86 stable wrt bug #556820 (diff)
downloadgentoo-c1537bbcee03d1319b059a84a90f51931ec32212.tar.gz
gentoo-c1537bbcee03d1319b059a84a90f51931ec32212.tar.bz2
gentoo-c1537bbcee03d1319b059a84a90f51931ec32212.zip
games-strategy/openra: version bump to 20150424, wrt #547684
Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=547684
Diffstat (limited to 'games-strategy')
-rw-r--r--games-strategy/openra/Manifest1
-rw-r--r--games-strategy/openra/openra-20150424.ebuild92
2 files changed, 93 insertions, 0 deletions
diff --git a/games-strategy/openra/Manifest b/games-strategy/openra/Manifest
index e6a6a9f584c6..432ef0a9cae8 100644
--- a/games-strategy/openra/Manifest
+++ b/games-strategy/openra/Manifest
@@ -4,3 +4,4 @@ DIST openra-20131223.tar.gz 10770453 SHA256 408943991ffbba3ac1269cdb88c6080bfd4a
DIST openra-20140608.tar.gz 13536365 SHA256 cacfc1d96f856e63516263922e2c669e549358477d286f33f0828b0815502f96 SHA512 c13ea559b026a308eea6d1190633e25abee6f8272d23f97bf5edb02dfa82d1a65acea2927bf5e1090ab42cc260613aa9612cce4f118f4bbacd254b6cd5f070a6 WHIRLPOOL 4f5b9c8a5477eada39bc920d4d6f3271acc0dfb35f55d6a75509fd2e19570fad571aab45aa74a5addcb8f1f7a3d0c172f7aa1607804963dc510d52cd51b1bd48
DIST openra-20140722.tar.gz 13894070 SHA256 55dbfdd2ab11f22d9618c15d874f4ab381185dd99d830f03982fc284c71b9dd4 SHA512 d85345057da1b1dc02a47b5923b0bd28d57713d0e8b180aee113d956559850751f0b8c4a900d0802b2f1992039d3b6a55f51d4a64392b7ba554f5f1fe3ad1fda WHIRLPOOL 6ee575d74b2fdc83bd7ad3c5f75d3bde45490bc398fb22a7981794b3bce65c18200d3cd6252eb4a8f9af81bc9126fb5a99f260feaf5f23e4833147dfed3387dc
DIST openra-20141029.tar.gz 15340674 SHA256 4c3f8224a7ad9d3cb78c3ce2696850246ba0d9703cbd91bf5a42806b09c26a36 SHA512 44594ec3c3a590ae29b0291fdf2292c72ba920dff7892cc269e729a161505c4bc0c5c682bf3c6d3cabb0cdebfa3cac5975eeeeec3f5a673e948ed28132c4a313 WHIRLPOOL 39e4585500c9963b02e42d62829bbc258d83b0050e56f56a90da8292d0c31b0c2d5d68c8eefb8bba22ac1dc719671cee7b7ffe9909bbd9d4d146982108c6e530
+DIST openra-20150424.tar.xz 12507176 SHA256 f6ed73693f1d6defce61f0fcf86deae9505cb2f798eb7844e71a3d70acafdfb7 SHA512 e720459f0882c4eadf7dcfee18968e8f4e9759f7e0c463b06efe2b68001a69c5d41b4d2c5aa43e974e00e66074a6d3efd110e588e1c49c38ce555cb7a9d18dca WHIRLPOOL 9aa16803386eeadfc5b15dcb0075bf351f633c249d58fc21aab9a4e46d349aac933c0bec64cc0df12003a06ac8f03f486579c3b93cf830e28135c6ef97349264
diff --git a/games-strategy/openra/openra-20150424.ebuild b/games-strategy/openra/openra-20150424.ebuild
new file mode 100644
index 000000000000..38e937ebacfa
--- /dev/null
+++ b/games-strategy/openra/openra-20150424.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit eutils mono-env gnome2-utils fdo-mime vcs-snapshot games
+
+DESCRIPTION="A free RTS engine supporting games like Command & Conquer and Red Alert"
+HOMEPAGE="http://www.openra.net/"
+SRC_URI="https://dev.gentoo.org/~hasufell/distfiles/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="tools"
+
+LUA_V=5.1.5
+DEPEND="dev-dotnet/libgdiplus
+ ~dev-lang/lua-${LUA_V}:0
+ dev-lang/mono
+ media-libs/freetype:2
+ media-libs/libsdl2[opengl,video]
+ media-libs/openal
+ virtual/opengl"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ mono-env_pkg_setup
+ games_pkg_setup
+}
+
+src_unpack() {
+ vcs-snapshot_src_unpack
+}
+
+src_configure() { :; }
+
+src_prepare() {
+ # register game-version
+ emake VERSION="${PV}" version
+ sed \
+ -e "s/@LIBLUA51@/liblua.so.${LUA_V}/" \
+ thirdparty/Eluant.dll.config.in > Eluant.dll.config || die
+}
+
+src_compile() {
+ emake VERSION="${PV}" $(usex tools "all" "")
+ emake VERSION="${PV}" docs
+}
+
+src_install() {
+ emake \
+ datadir="/usr/share" \
+ bindir="${GAMES_BINDIR}" \
+ libdir="$(games_get_libdir)" \
+ VERSION="${PV}" \
+ DESTDIR="${D}" \
+ $(usex tools "install-all" "install") install-linux-scripts install-linux-mime install-linux-icons
+
+ exeinto "$(games_get_libdir)/openra"
+ doexe Eluant.dll.config
+
+ # desktop entries
+ make_desktop_entry "${PN} Game.Mods=cnc" "OpenRA CNC" ${PN}
+ make_desktop_entry "${PN} Game.Mods=ra" "OpenRA RA" ${PN}
+ make_desktop_entry "${PN} Game.Mods=d2k" "OpenRA Dune2k" ${PN}
+ make_desktop_entry "${PN}-editor" "OpenRA Map Editor" ${PN}
+
+ dodoc "${FILESDIR}"/README.gentoo README.md CONTRIBUTING.md AUTHORS \
+ DOCUMENTATION.md Lua-API.md
+
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}