Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

OpenRA was updated with new ebuild (openra-20120304_beta_rc1.ebuild)

  • Loading branch information...
commit 6c8cfcf7b8772e93b40713af729b48a27c4b961c 1 parent 59cad1c
@cerebrum authored
View
2  games-strategy/openra/Manifest
@@ -22,6 +22,7 @@ DIST openra-playtest-20111125.tar.gz 10214582 RMD160 b23a569b75d501b9b7555edc10f
DIST openra-playtest-20111208.tar.gz 10214243 RMD160 6e8a95f928bc14704cafcde689e2694ac992e3dd SHA1 e70a8ef834c9d34cbe27a450eba26427689d19b1 SHA256 382f282cb91511ba390f73e02acd01324ec9dbc34704ef076651dfba6d4891d9
DIST openra-playtest-20111209.tar.gz 10214325 RMD160 1d2b589c703b2075065ca0e136d6a116c2abf8b0 SHA1 e457af6d540fbcce4d49e8c9648f7e0ba49e1a61 SHA256 e501eccc4e5650c13b743817e64ea756208d6bbbaf7d26feff7632cc032aa2ec
DIST openra-playtest-20111223.tar.gz 10211784 RMD160 ed8831826ec7f05217358c0e999fdeb01b6e00fe SHA1 22f7adf236df5ee8e13b64c614127fb1865db5b3 SHA256 d671520c0f6e6aa815aa1d6ff632238224a81e927d02fe116de5dc6ba20d56b7
+DIST openra-playtest-20120304.tar.gz 10301420 RMD160 a99f2836247552490d749d6e4e87cacdc5f7d0d9 SHA1 18f450d58ecb8cd6312a0e10f8bd3f29fa6c3265 SHA256 74ee1cdc0f08e3f69bee7184c9d9d5c7d2fe65b7a385abc62073f542cff4d31e
DIST openra-release-20110906.tar.gz 10032788 RMD160 9c465d31ae18ad4e6d70b5f8e01c08eb5df5d18c SHA1 0d103e352782c13835763c11cd84062f3e775a0a SHA256 8fc8e92a85152fcb57c3e8d381d30006c683f85adf23bc279aabbab06cfb24f8
DIST openra-release-20111013.tar.gz 10186650 RMD160 9b5bfecf984eb8ae73d5dde2db8bafac371ff0e3 SHA1 a5c3b77230beeb4ee9d3199b6b247b1097a3520f SHA256 8c4c6cb561babd6895bcea395d498e896002c3d7d8559a7772a1fc1d066a7b59
EBUILD openra-20110906_beta_rc1-r1.ebuild 6685 RMD160 4db1bb01e86a3ad2e38296640b537bfe978f27f8 SHA1 366cfeff8704dcf1a0fc61f2fe79b7bfbfdf83cb SHA256 aa09f87a1e373d8308b7d4da220ab0cee07ad6904b9638f730c86c841820f494
@@ -39,4 +40,5 @@ EBUILD openra-20111125_beta_rc1.ebuild 6693 RMD160 d02f21db95b5dba1ef3d6486420ca
EBUILD openra-20111208_beta_rc1.ebuild 6644 RMD160 46ca7f0c350d2ba244ae8825a954a1cba3e36bb9 SHA1 f4895eacc0fe00d6eb473d1cab772b6ed2d342af SHA256 0e0c2da10441b4972f157ab6fa65eb525404abf0d591c83bf796faff1259f844
EBUILD openra-20111209_beta_rc1.ebuild 6644 RMD160 46ca7f0c350d2ba244ae8825a954a1cba3e36bb9 SHA1 f4895eacc0fe00d6eb473d1cab772b6ed2d342af SHA256 0e0c2da10441b4972f157ab6fa65eb525404abf0d591c83bf796faff1259f844
EBUILD openra-20111223_beta_rc1.ebuild 6644 RMD160 46ca7f0c350d2ba244ae8825a954a1cba3e36bb9 SHA1 f4895eacc0fe00d6eb473d1cab772b6ed2d342af SHA256 0e0c2da10441b4972f157ab6fa65eb525404abf0d591c83bf796faff1259f844
+EBUILD openra-20120304_beta_rc1.ebuild 6644 RMD160 46ca7f0c350d2ba244ae8825a954a1cba3e36bb9 SHA1 f4895eacc0fe00d6eb473d1cab772b6ed2d342af SHA256 0e0c2da10441b4972f157ab6fa65eb525404abf0d591c83bf796faff1259f844
MISC metadata.xml 483 RMD160 af596f764e692426ad7dce0bda11097169d898e1 SHA1 dccf90f8327ff8cdd4311604bcbc475ff0c8e709 SHA256 e6242efc5c037e6fbc12f87624047ba78effae03d5e426d3baefe6cfa4241d28
View
176 games-strategy/openra/openra-20120304_beta_rc1.ebuild
@@ -0,0 +1,176 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit versionator eutils #flag-o-matic
+
+MY_PV=$(get_major_version)
+#VERSION="release-${MY_PV}"
+VERSION="playtest-${MY_PV}"
+
+DESCRIPTION="A Libre/Free RTS engine supporting early Westwood games like Command & Conquer and Red Alert"
+HOMEPAGE="http://open-ra.org/"
+SRC_URI="http://www.github.com/OpenRA/OpenRA/tarball/${VERSION}
+ -> ${PN}-${VERSION}.tar.gz"
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="cg ra cnc"
+DEPEND="cg? (
+ >=media-gfx/nvidia-cg-toolkit-2
+ )
+ >=dev-lang/mono-2.6.7
+ media-libs/mesa
+ media-libs/freetype
+ >=media-libs/openal-1.1
+ >=media-libs/libsdl-1.2"
+RDEPEND="${DEPEND}"
+
+PREFIX="/usr"
+DATA_ROOT_DIR="${PREFIX}/share"
+INSTALL_DIR="${DATA_ROOT_DIR}/${PN}"
+INSTALL_DIR_BIN="${PREFIX}/bin"
+ICON_DIR="${DATA_ROOT_DIR}/icons"
+DESK_DIR="${DATA_ROOT_DIR}/desktop-directories"
+
+
+src_unpack() {
+ unpack "${A}"
+ mv OpenRA-OpenRA-* "${S}"
+}
+
+src_compile() {
+ epatch "${FILESDIR}/fix-prefix.patch"
+ epatch "${FILESDIR}/ramusic.patch"
+ emake || die "emake failed in ${S}"
+}
+
+src_install() {
+ # Update mod versions
+ sed "s/{DEV_VERSION}/$VERSION/" -i mods/ra/mod.yaml
+ sed "s/{DEV_VERSION}/$VERSION/" -i mods/cnc/mod.yaml
+ #filter-ldflags -s
+ #emake DESTDIR="${D}" LDFLAGS="${LDFLAGS}" install || die "Install failed"
+ emake DESTDIR="${D}" install || die "Install failed"
+ #exeinto "${INSTALL_DIR_BIN}"
+ #doexe packaging/linux/openra-bin || die "Install of openra-bin failed"
+ exeinto "${INSTALL_DIR}"
+ #doexe packaging/linux/OpenRA.Utility.sh || die "Install of OpenRA.Utility.sh failed"
+ # Move Tao libraries to correct place and remove empty dirs
+ mv -v ${D}${INSTALL_DIR}/thirdparty/Tao/* ${D}${INSTALL_DIR}/
+ rm -rv ${D}${INSTALL_DIR}/thirdparty
+ # Remove old and unnecessary wrapper script
+ rm -v ${D}${INSTALL_DIR_BIN}/openra
+ # Desktop Icons
+ sed "s/{VERSION}/${VERSION}/" ${FILESDIR}/openra-ra.desktop > openra-ra.desktop
+ sed "s/{VERSION}/${VERSION}/" ${FILESDIR}/openra-cnc.desktop > openra-cnc.desktop
+ sed "s/{VERSION}/${VERSION}/" ${FILESDIR}/openra-editor.desktop > openra-editor.desktop
+ domenu openra-ra.desktop openra-cnc.desktop openra-editor.desktop
+ if use cg ; then
+ sed "s/{VERSION}/${VERSION}/" ${FILESDIR}/openra-ra-cg.desktop > openra-ra-cg.desktop
+ sed "s/{VERSION}/${VERSION}/" ${FILESDIR}/openra-cnc-cg.desktop > openra-cnc-cg.desktop
+ domenu openra-ra-cg.desktop openra-cnc-cg.desktop
+ fi
+ # Icon images
+ insinto ${ICON_DIR}
+ doins -r packaging/linux/hicolor
+ # Desktop directory
+ insinto ${DESK_DIR}
+ doins ${FILESDIR}/openra.directory
+ # Desktop menu
+ insinto "$XDG_CONFIG_DIRS/menus/applications-merged"
+ doins ${FILESDIR}/games-openra.menu
+ dodoc COPYING HACKING CHANGELOG
+}
+
+pkg_postinst() {
+ elog
+ elog " You may run the game from desktop games menu or just manually"
+ elog " run the game with \`mono OpenRA.Game.exe Game.Mods=ra\` for Red Alert"
+ elog " or \`mono OpenRA.Game.exe Game.Mods=cnc\` for Command & Conquer."
+ if use cg ; then
+ elog
+ elog " You may also run the game with alternative Cg Graphics Renderer"
+ elog " by adding \`Graphics.Renderer=Cg\` parameter to above commands"
+ elog " (convenient for some integrated graphics cards) or run explicitly"
+ elog " with a default one by adding \`Graphics.Renderer=Gl\` parameter."
+ fi
+ cd "${INSTALL_DIR}"
+ # Download and install RA packages
+ if use ra ; then
+ mono OpenRA.Utility.exe --download-url=http://open-ra.org/get-dependency.php?file=ra-packages,/tmp/ra-packages.zip
+ mono OpenRA.Utility.exe --extract-zip=/tmp/ra-packages.zip,ra/packages/
+ else
+ elog
+ elog " The RA packages will need to be extracted to /home/<user>/.openra/Content/ra/"
+ elog " before the RA mod will actually work. You may execute OpenRA and it will"
+ elog " suggest to download content from CD or from OpenRA site automatically."
+ elog " You may also try to download minimal content pack from OpenRA site manually:"
+ elog " http://open-ra.org/get-dependency.php?file=ra-packages"
+ elog " But the better choice is to download full pack from original game CD or iso."
+ elog " However, full CD pack usage result in slower game start from OpenRA Lobby."
+ elog
+ elog " The required files for the Red Alert mod are:"
+ elog " EITHER:"
+ elog " * conquer.mix"
+ elog " * temperat.mix"
+ elog " * interior.mix"
+ elog " * snow.mix"
+ elog " * sounds.mix"
+ elog " * allies.mix"
+ elog " * russian.mix"
+ elog " OR:"
+ elog " * main.mix"
+ elog " AND:"
+ elog " * redalert.mix"
+ elog
+ fi
+
+ if use cnc ; then
+ mono OpenRA.Utility.exe --download-url=http://open-ra.org/get-dependency.php?file=cnc-packages,/tmp/cnc-packages.zip
+ mono OpenRA.Utility.exe --extract-zip=/tmp/cnc-packages.zip,cnc/packages/
+ else
+ elog
+ elog " The C&C packages will need to be extracted to /home/<user>/.openra/Contet/cnc/"
+ elog " before the C&C mod will actually work. You may execute OpenRA and it will"
+ elog " suggest to download content from CD or from OpenRA site automatically."
+ elog " You may also try to download minimal content pack from OpenRA site manually:"
+ elog " http://open-ra.org/get-dependency.php?file=cnc-packages"
+ elog " But the better choice is to download full pack from original game CD or iso."
+ elog " However, full CD pack usage result in slower game start from OpenRA Lobby."
+ elog
+ elog " The required files for the Command and Conquer mod are:"
+ elog " * cclocal.mix"
+ elog " * speech.mix"
+ elog " * conquer.mix"
+ elog " * sounds.mix"
+ elog " * tempicnh.mix"
+ elog " * temperat.mix"
+ elog " * winter.mix"
+ elog " * desert.mix"
+ elog
+ fi
+ elog
+ elog " Red Alert and C&C have been released by EA Games as freeware. They could be"
+ elog " downloaded from http://www.commandandconquer.com/classic"
+ elog " Unfortunately the installer is 16-bit and so won’t run on 64-bit operating"
+ elog " systems. This can be worked around by using the Red Alert Setup Manager"
+ elog " (http://ra.afraid.org/html/downloads/utilities-3.html)."
+ elog " Make sure you apply the no-CD protection fix so all the files needed"
+ elog " are installed to the hard drive."
+ elog
+ elog " If you have a case-sensitive filesystem you must change the filenames to"
+ elog " lower case."
+ elog
+ elog " Please note: OpenRA is currently at a beta release stage. Releases may"
+ elog " be buggy or unstable. If you have any problems, please report them to the"
+ elog " IRC channel (#openra on irc.freenode.net) or to the bug-tracker"
+ elog " (http://bugs.open-ra.org)."
+ elog
+ elog " You may also see servers list with"
+ elog " http://master.open-ra.org/list.php"
+ elog
+ update-desktop-database
+}

0 comments on commit 6c8cfcf

Please sign in to comment.
Something went wrong with that request. Please try again.