summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim A. Misbakh-Soloviov <git@mva.name>2018-02-12 00:47:58 +0700
committerVadim A. Misbakh-Soloviov <git@mva.name>2018-02-12 00:47:58 +0700
commit2671149b0467cd977600131470988d14098beac8 (patch)
treec81afafe95be900773c796dbbadb13bd5d17dc41
parentgames-strategy/glest: drop due to many problems: (diff)
downloadgamerlay-2671149b0467cd977600131470988d14098beac8.tar.gz
gamerlay-2671149b0467cd977600131470988d14098beac8.tar.bz2
gamerlay-2671149b0467cd977600131470988d14098beac8.zip
defcon: ebuild fix by email request of "R Moog"
-rw-r--r--games-strategy/defcon/Manifest3
-rw-r--r--games-strategy/defcon/defcon-1.6.1.ebuild35
2 files changed, 22 insertions, 16 deletions
diff --git a/games-strategy/defcon/Manifest b/games-strategy/defcon/Manifest
index d8e3142..da6de0c 100644
--- a/games-strategy/defcon/Manifest
+++ b/games-strategy/defcon/Manifest
@@ -1 +1,2 @@
-DIST defcon_1.6-1_amd64.tar.gz 62384251 SHA256 7245fb09a3e8d72185f79c673be34c4aaf8f1f956b4e3a8cd732e861dda08d4b SHA512 d178300000cf8eff589cdca5fbd00d32b30a84aa70cc6b51b9dcb698e4c2150fda8f91885bdc5123006c24820ad7588587d5f5da7be03bd1d30db824318a950a WHIRLPOOL 44d1960b9dcf31198e01d53bb24391c5e1a19f159bfc3b305d76f91c7663c7fe20f1de36f5f419e88b95ae12780ebf8559faa385aa0546e2c55d80a9e0fd3eb3
+DIST defcon_1.6-1_amd64.deb 62377900 SHA256 52142cf3684f054f2449bb0dae96a3b9e0a9d5bb003ea479b25f8a55daffcb26 SHA512 b71aacc3cd94eec8f1ea19ee03d8098fcdd96191c12d614f55076826ef0bb44c8ada66dfd3df7d94d042b33bdd8fa5f0f58e69fc980d6213c320ab4ce2d682a9 WHIRLPOOL 8c9813764b412f4b2d2f1d75530e60800e49b98668bce11e931d898404ec10d45bc42e3c5478154b696c41b9dff93bcb0c72817ece38aedb50cc11bbc53265f1
+DIST defcon_1.6-1_i386.deb 62311684 SHA256 e61f1ebe93eaf821b6313b37e080a76a9444c2c46afc8e2386a0f2b644b8d1d3 SHA512 0e60e8fbca2f3046228b656990e3adb471de4f64a99d435c96b1e5a8cc49b1250c48ceeb19a4bcb58354e750398de2559256d26a38b20286dec3c0ce7f97ebb8 WHIRLPOOL 0d5fed7be50abaa2dd29434aae986bb63851a208f394b950a55c89d02cc36faf571209730641842a7af1cde0f33501cd6cb0dcb33c8287ef591d5675c67d3cbe
diff --git a/games-strategy/defcon/defcon-1.6.1.ebuild b/games-strategy/defcon/defcon-1.6.1.ebuild
index a8e409a..5bd959c 100644
--- a/games-strategy/defcon/defcon-1.6.1.ebuild
+++ b/games-strategy/defcon/defcon-1.6.1.ebuild
@@ -1,46 +1,51 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-EAPI=4
+EAPI=6
-inherit games
-inherit versionator
+inherit eutils unpacker versionator
MY_PV=$(replace_version_separator 2 '-')
DESCRIPTION="http://www.introversion.co.uk/defcon/"
HOMEPAGE="Global thermonuclear war simulation with multiplayer support"
-SRC_URI="${PN}_${MY_PV}_amd64.tar.gz"
+BASE_URI="https://www.introversion.co.uk/defcon/downloads/${PN}_${MY_PV}___ARCH__.deb"
+SRC_URI="
+ x86? ( ${BASE_URI/__ARCH__/i386} )
+ amd64? ( ${BASE_URI/__ARCH__/amd64} )
+"
LICENSE="Introversion"
SLOT="0"
-KEYWORDS="~amd64"
-RESTRICT="fetch strip"
+KEYWORDS="~x86 ~amd64"
+RESTRICT="strip"
IUSE=""
DEPEND=""
RDEPEND="
+ ${DEPEND}
virtual/glu
media-libs/libogg
media-libs/libvorbis
media-libs/libsdl:0
- "
+"
-S="${WORKDIR}/${PN}"
+S="${WORKDIR}"
src_install() {
- local dir="${GAMES_PREFIX_OPT}/${PN}"
- local exe="${PN}.bin.x86_64"
+ local dir="/opt/${PN}"
+ local exe="${PN}.bin.${ARCH/amd/x86_}"
+ #use x86 && exe="${PN}.bin.x86"
+ #use amd64 && exe="${PN}.bin.x86_64"
insinto "${dir}"
exeinto "${dir}"
+ cd "${S}/usr/local/games/${PN}"
doexe "${exe}"
doicon "${PN}.png"
+ dodoc "linux.txt" "license.txt"
doins sounds.dat main.dat
- games_make_wrapper "${PN}" "./${exe}" "${dir}"
+ make_wrapper "${PN}" "./${exe}" "${dir}"
make_desktop_entry "${PN}" "${PN}" "${PN}"
-
- prepgamesdirs
}