Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST openra-20141029.tar.gz 15340674 SHA256 4c3f8224a7ad9d3cb78c3ce2696850246ba0d9703cbd91bf5a42806b09c26a36 SHA512 44594ec3c3a590ae29b0291fdf2292c72ba920dff7892cc269e729a161505c4bc0c5c682bf3c6d3cabb0cdebfa3cac5975eeeeec3f5a673e948ed28132c4a313 WHIRLPOOL 39e4585500c9963b02e42d62829bbc258d83b0050e56f56a90da8292d0c31b0c2d5d68c8eefb8bba22ac1dc719671cee7b7ffe9909bbd9d4d146982108c6e530 | ||
DIST openra-20150424.tar.xz 12507176 SHA256 f6ed73693f1d6defce61f0fcf86deae9505cb2f798eb7844e71a3d70acafdfb7 SHA512 e720459f0882c4eadf7dcfee18968e8f4e9759f7e0c463b06efe2b68001a69c5d41b4d2c5aa43e974e00e66074a6d3efd110e588e1c49c38ce555cb7a9d18dca WHIRLPOOL 9aa16803386eeadfc5b15dcb0075bf351f633c249d58fc21aab9a4e46d349aac933c0bec64cc0df12003a06ac8f03f486579c3b93cf830e28135c6ef97349264 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# Copyright 2014 Julian Ospald <hasufell@posteo.de> | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Header: $ | ||
|
||
EAPI=5 | ||
|
||
inherit eutils mono-env gnome2-utils fdo-mime vcs-snapshot | ||
|
||
DESCRIPTION="A free RTS engine supporting games like Command & Conquer and Red Alert" | ||
HOMEPAGE="http://open-ra.org/" | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
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/jpeg | ||
virtual/opengl" | ||
RDEPEND="${DEPEND}" | ||
|
||
src_unpack() { | ||
vcs-snapshot_src_unpack | ||
} | ||
|
||
src_configure() { :; } | ||
|
||
src_prepare() { | ||
# register game-version | ||
sed \ | ||
-e "/Version/s/{DEV_VERSION}/release-${PV}/" \ | ||
-i mods/{ra,cnc,d2k}/mod.yaml || die | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
hasufell
Author
Owner
|
||
sed \ | ||
-e "s/@LIBLUA51@/liblua.so.${LUA_V}/" \ | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
hasufell
Author
Owner
|
||
thirdparty/Eluant.dll.config.in > Eluant.dll.config || die | ||
} | ||
|
||
src_compile() { | ||
emake $(usex tools "all" "") | ||
emake docs | ||
} | ||
|
||
src_install() { | ||
emake \ | ||
datadir="/usr/share" \ | ||
bindir="/usr/bin" \ | ||
libdir="/usr/libexec" \ | ||
DESTDIR="${D}" \ | ||
$(usex tools "install-all" "install") install-linux-scripts install-linux-mime | ||
|
||
exeinto /usr/libexec/openra | ||
doexe Eluant.dll.config | ||
|
||
# icons | ||
insinto /usr/share/icons/ | ||
doins -r packaging/linux/hicolor | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
# 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 | ||
} | ||
|
||
pkg_postinst() { | ||
gnome2_icon_cache_update | ||
fdo-mime_desktop_database_update | ||
fdo-mime_mime_database_update | ||
|
||
elog "optional dependencies:" | ||
elog " media-gfx/nvidia-cg-toolkit (fallback renderer if OpenGL fails)" | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
} | ||
|
||
pkg_postrm() { | ||
gnome2_icon_cache_update | ||
fdo-mime_desktop_database_update | ||
fdo-mime_mime_database_update | ||
} |
http://www.openra.net