Skip to content

Commit

Permalink
[games-strategy/openra] version bump to 20150424
Browse files Browse the repository at this point in the history
  • Loading branch information
hasufell committed May 8, 2015
1 parent a710acc commit 4c86fee
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 0 deletions.
1 change: 1 addition & 0 deletions games-strategy/openra/Manifest
@@ -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
88 changes: 88 additions & 0 deletions games-strategy/openra/openra-20150424.ebuild
@@ -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.

Copy link
@Mailaender

This comment has been minimized.

Copy link
@hasufell

hasufell May 27, 2015

Author Owner
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.

Copy link
@Mailaender

Mailaender May 27, 2015

make version

This comment has been minimized.

Copy link
@hasufell

hasufell May 27, 2015

Author Owner

by default results in the broken version git-, but I guess I could do emake VERSION=${PV} version, as long as that works...

edit: doesn't seem to work

This comment has been minimized.

Copy link
@hasufell

hasufell May 27, 2015

Author Owner

Ah, very nice... emake doc implicitly calls version and breaks it.

This comment has been minimized.

Copy link
@hasufell

hasufell May 27, 2015

Author Owner
sed \
-e "s/@LIBLUA51@/liblua.so.${LUA_V}/" \

This comment has been minimized.

Copy link
@Mailaender

Mailaender May 27, 2015

make dependencies

This comment has been minimized.

Copy link
@hasufell

hasufell May 27, 2015

Author Owner

The whole dependency rules are all broken, because they randomly fetch files. In addition, the configure-linux-native-deps.sh file does not give me the control I want.

This comment has been minimized.

Copy link
@Mailaender

Mailaender May 27, 2015

The whole dependency rules are all broken, because they randomly fetch files.

However those are needed. They were previously bundled and stored in SCM for all platforms which was even worse. You can also compile and system install the CLI dependencies yourself and ln -sf them. I started to experiment with that myself. See https://build.opensuse.org/package/show/games:openra/playtest however re-usability is probably low so it is not worth the effort.

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.

Copy link
@Mailaender

Mailaender May 27, 2015

make install-linux-icons

This comment has been minimized.

Copy link
@hasufell

hasufell May 27, 2015

Author Owner

# 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.

Copy link
@Mailaender

Mailaender May 27, 2015

This renderer is long gone.

This comment has been minimized.

Copy link
@hasufell

hasufell May 27, 2015

Author Owner
}

pkg_postrm() {
gnome2_icon_cache_update
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
}

0 comments on commit 4c86fee

Please sign in to comment.