diff options
author | Stefan Schweizer <genstef@gentoo.org> | 2006-01-06 13:49:24 +0000 |
---|---|---|
committer | Stefan Schweizer <genstef@gentoo.org> | 2006-01-06 13:49:24 +0000 |
commit | 6926288716898be175087b45c19d6410471cad70 (patch) | |
tree | d04eb2621f31c3058b1952bd1a8707ae301c706f /games-strategy | |
parent | stable amd64 (diff) | |
download | gentoo-2-6926288716898be175087b45c19d6410471cad70.tar.gz gentoo-2-6926288716898be175087b45c19d6410471cad70.tar.bz2 gentoo-2-6926288716898be175087b45c19d6410471cad70.zip |
New ebuild thanks to Martti Rannanjärvi <mrannanj@iki.fi>, Russell Smith <mr-russ@pws.com.au>, Giacomo Perale <ghepeu@virgilio.it>, Jacob Gemmell <dante333@gci.net>, Mr. Bones. <mr_bones_@gentoo.org>, Hinrik Örn Sigurðsson <flanders@simnet.is>, Chris Gianelloni <wolf31o2@gentoo.org>, Wescott <wescott2003@hotmail.com> and Florian Manschwetus <FlorianManschwetus@gmx.de>
(Portage version: 2.1_pre3-r1)
Diffstat (limited to 'games-strategy')
-rw-r--r-- | games-strategy/wargus/ChangeLog | 16 | ||||
-rw-r--r-- | games-strategy/wargus/Manifest | 6 | ||||
-rw-r--r-- | games-strategy/wargus/files/digest-wargus-2.1 | 1 | ||||
-rw-r--r-- | games-strategy/wargus/files/wargus-2.1-ai.patch | 105 | ||||
-rw-r--r-- | games-strategy/wargus/files/wargus-2.1-aitransporter.patch | 16 | ||||
-rw-r--r-- | games-strategy/wargus/files/wargus-2.1-humanbasespell.patch | 23 | ||||
-rw-r--r-- | games-strategy/wargus/metadata.xml | 9 | ||||
-rw-r--r-- | games-strategy/wargus/wargus-2.1.ebuild | 40 |
8 files changed, 216 insertions, 0 deletions
diff --git a/games-strategy/wargus/ChangeLog b/games-strategy/wargus/ChangeLog new file mode 100644 index 000000000000..e4d8aeb759ed --- /dev/null +++ b/games-strategy/wargus/ChangeLog @@ -0,0 +1,16 @@ +# ChangeLog for games-strategy/wargus +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/wargus/ChangeLog,v 1.1 2006/01/06 13:49:24 genstef Exp $ + +*wargus-2.1 (06 Jan 2006) + + 06 Jan 2006; Stefan Schweizer <genstef@gentoo.org> + +files/wargus-2.1-ai.patch, +files/wargus-2.1-aitransporter.patch, + +files/wargus-2.1-humanbasespell.patch, +metadata.xml, +wargus-2.1.ebuild: + New ebuild thanks to Martti Rannanjärvi <mrannanj@iki.fi>, Russell Smith + <mr-russ@pws.com.au>, Giacomo Perale <ghepeu@virgilio.it>, Jacob Gemmell + <dante333@gci.net>, Mr. Bones. <mr_bones_@gentoo.org>, Hinrik Örn Sigurðsson + <flanders@simnet.is>, Chris Gianelloni <wolf31o2@gentoo.org>, Wescott + <wescott2003@hotmail.com> and Florian Manschwetus + <FlorianManschwetus@gmx.de> + diff --git a/games-strategy/wargus/Manifest b/games-strategy/wargus/Manifest new file mode 100644 index 000000000000..4feff4893daa --- /dev/null +++ b/games-strategy/wargus/Manifest @@ -0,0 +1,6 @@ +MD5 59bed4d175323dc039269ff235b3228c files/digest-wargus-2.1 66 +MD5 ccab340688762495f87a266fdb7ba9d3 files/wargus-2.1-ai.patch 5923 +MD5 0ab572fde330c03c24f73f69d4708e6a files/wargus-2.1-aitransporter.patch 929 +MD5 dda80e07159e799ca5b26f211180139b files/wargus-2.1-humanbasespell.patch 1146 +MD5 59b69aef9a760073b02c82194eab4800 metadata.xml 263 +MD5 124f35ef67b08367bb6b371db0271e86 wargus-2.1.ebuild 941 diff --git a/games-strategy/wargus/files/digest-wargus-2.1 b/games-strategy/wargus/files/digest-wargus-2.1 new file mode 100644 index 000000000000..272d1d918959 --- /dev/null +++ b/games-strategy/wargus/files/digest-wargus-2.1 @@ -0,0 +1 @@ +MD5 571363cc79c5c532c48f31ad5c06398d wargus-2.1-src.tar.gz 542211 diff --git a/games-strategy/wargus/files/wargus-2.1-ai.patch b/games-strategy/wargus/files/wargus-2.1-ai.patch new file mode 100644 index 000000000000..e63b3c7837cc --- /dev/null +++ b/games-strategy/wargus/files/wargus-2.1-ai.patch @@ -0,0 +1,105 @@ +diff -ur wargusbaseunpatched/wargus-2.1/scripts/ai/campaign.lua wargusbaseaipatched/wargus-2.1/scripts/ai/campaign.lua +--- wargusbaseunpatched/wargus-2.1/scripts/ai/campaign.lua 2004-04-30 01:40:38.000000000 +0200 ++++ wargusbaseaipatched/wargus-2.1/scripts/ai/campaign.lua 2005-09-23 16:25:05.000000000 +0200 +@@ -26,7 +26,7 @@ + -- along with this program; if not, write to the Free Software + -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + -- +--- $Id: wargus-2.1-ai.patch,v 1.1 2006/01/06 13:49:24 genstef Exp $ ++-- $Id: wargus-2.1-ai.patch,v 1.1 2006/01/06 13:49:24 genstef Exp $ + + --============================================================================= + -- This AI script builds only workers and tankers and oil platform. +@@ -92,10 +92,12 @@ + function() return AiSet(AiTanker(), 1) end, + function() return AiWait(AiWorker()) end, + function() return AiNeed(AiPlatform()) end, +- function() return AiForce(0, {AiDestroyer(), 2, AiSoldier(), 3, AiShooter(), 4, AiTransporter(), 4}) end, +- function() return AiForce(1, {AiDestroyer(), 2, AiSoldier(), 3, AiShooter(), 4, AiTransporter(), 4}) end, ++ function() return AiSet(AiTransport(), 4) end, ++ function() return AiForce(0, {AiDestroyer(), 2, AiSoldier(), 3, AiShooter(), 4}) end, ++ function() return AiForce(1, {AiDestroyer(), 2, AiSoldier(), 3, AiShooter(), 4}) end, + function() return AiSleep(27000) end, +- function() return AiForce(1, {AiDestroyer(), 4, AiSoldier(), 10, AiShooter(), 8, AiTransporter(), 6}) end, ++ function() return AiSet(AiTransport(), 6) end, ++ function() return AiForce(1, {AiDestroyer(), 4, AiSoldier(), 10, AiShooter(), 8}) end, + function() return AiSleep(22000) end, + function() return AiSleep(22000) end, + function() return AiSleep(18000) end, +@@ -166,12 +168,14 @@ + function() return AiSet(AiTransporter(), 1) end, + function() return AiWait(AiWorker()) end, + function() return AiNeed(AiPlatform()) end, +- function() return AiForce(0, {AiDestroyer(), 3, AiSoldier(), 4, AiShooter(), 3, AiTransporter(), 2}) end, ++ function() return AiForce(0, {AiDestroyer(), 3, AiSoldier(), 4, AiShooter(), 3}) end, ++ function() return AiSet(AiTransporter(), 3) end, + function() return AiSleep(3000) end, + function() return AiSleep(4000) end, + function() return AiSleep(4000) end, + function() return AiSleep(12000) end, +- function() return AiForce(0, {AiDestroyer(), 4, AiSoldier(), 12, AiShooter(), 4, AiTransporter(), 4}) end, ++ function() return AiForce(0, {AiDestroyer(), 4, AiSoldier(), 12, AiShooter(), 4}) end, ++ function() return AiSet(AiTransporter(), 7) end, + function() return AiSleep(14000) end, + function() return AiSleep(12000) end, + function() return AiLoop(hum_05_loop_funcs, hum_05_loop_pos) end, +@@ -254,7 +258,7 @@ + local hum_08_loop_funcs = { + function() print("Looping !") return false end, + function() return AiSleep(16000) end, +- function() return AiForce(0, {AiSoldier(), 1, AiShooter(), 4, AiCavalry(), 3, AiCatapult, 1}) end, ++ function() return AiForce(0, {AiSoldier(), 1, AiShooter(), 4, AiCavalry(), 3, AiCatapult(), 1}) end, + function() return AiSleep(14000) end, + function() return AiSleep(12000) end, + function() hum_08_loop_pos[player] = 0; return false end, +@@ -270,12 +274,12 @@ + function() return AiSleep(10000) end, + function() return AiSleep(15000) end, + function() return AiResearch(AiUpgradeCavalryMage()) end, +- function() return AiResearch(AiCavalryMageSpell1) end, +- function() return AiResearch(AiUpgradeMissile1) end, ++ function() return AiResearch(AiCavalryMageSpell1()) end, ++ function() return AiResearch(AiUpgradeMissile1()) end, + function() return AiForce(0, {AiSoldier(), 2, AiShooter(), 5, AiCavalry(), 4, AiCatapult(), 1}) end, + function() return AiSleep(15000) end, +- function() return AiResearch(AiUpgradeWeapon1) end, +- function() return AiResearch(AiUpgradeArmor1) end, ++ function() return AiResearch(AiUpgradeWeapon1()) end, ++ function() return AiResearch(AiUpgradeArmor1()) end, + function() return AiSleep(21000) end, + function() return AiResearch(AiUpgradeEliteShooter()) end, + function() return AiSleep(12000) end, +@@ -314,7 +318,8 @@ + function() print("Looping !") return false end, + function() return AiSleep(5000) end, + function() return AiForce(0, {AiSoldier(), 4, AiShooter(), 4, AiCavalry(), 4, +- AiCatapult(), 1, AiTransporter(), 1}) end, ++ AiCatapult(), 1}) end, ++ function() return AiSet(AiTransporter(), 1) end, + function() return AiSleep(6000) end, + function() return AiForce(0, {AiDestroyer(), 3, AiBattleship(), 1}) end, + function() return AiSleep(5000) end, +@@ -333,18 +338,19 @@ + function() return AiWait(AiWorker()) end, + + function() return AiSet(AiTransporter(), 1) end, +- function() return AiForce(0, {AiDestroyer(), 2, AiTransporter(), 1}) end, ++ function() return AiForce(0, {AiDestroyer(), 2}) end, + function() return AiSleep(6000) end, + function() return AiForce(0, {AiSoldier(), 4, AiShooter(), 4, +- AiDestroyer(), 2, AiTransporter(), 1}) end, ++ AiDestroyer(), 2}) end, + + function() return AiResearch(AiUpgradeCavalryMage()) end, + function() return AiResearch(AiCavalryMageSpell1()) end, + function() return AiResearch(AiMageSpell1()) end, + function() return AiResearch(AiMageSpell2()) end, + function() return AiResearch(AiUpgradeMissile1()) end, +- +- function() return AiForce(0, {AiSoldier(), 4, AiShooter(), 4, AiTransporter(), 1, AiDestroyer(), 2}) end, ++ ++ function() return AiSet(AiTransporter(), 2) end, ++ function() return AiForce(0, {AiSoldier(), 4, AiShooter(), 4, AiDestroyer(), 2}) end, + function() return AiResearch(AiUpgradeWeapon1()) end, + function() return AiSleep(4000) end, + function() return AiResearch(AiUpgradeArmor1()) end, diff --git a/games-strategy/wargus/files/wargus-2.1-aitransporter.patch b/games-strategy/wargus/files/wargus-2.1-aitransporter.patch new file mode 100644 index 000000000000..e92102a7e5a5 --- /dev/null +++ b/games-strategy/wargus/files/wargus-2.1-aitransporter.patch @@ -0,0 +1,16 @@ +--- wargus-2.1.orig/scripts/ai/campaign.lua 2004-04-30 01:40:38.000000000 +0200 ++++ wargus-2.1/scripts/ai/campaign.lua 2005-09-23 16:25:05.000000000 +0200 +@@ -92,11 +92,11 @@ + function() return AiSet(AiTanker(), 1) end, + function() return AiWait(AiWorker()) end, + function() return AiNeed(AiPlatform()) end, +- function() return AiSet(AiTransport(), 4) end, ++ function() return AiSet(AiTransporter(), 4) end, + function() return AiForce(0, {AiDestroyer(), 2, AiSoldier(), 3, AiShooter(), 4}) end, + function() return AiForce(1, {AiDestroyer(), 2, AiSoldier(), 3, AiShooter(), 4}) end, + function() return AiSleep(27000) end, +- function() return AiSet(AiTransport(), 6) end, ++ function() return AiSet(AiTransporter(), 6) end, + function() return AiForce(1, {AiDestroyer(), 4, AiSoldier(), 10, AiShooter(), 8}) end, + function() return AiSleep(22000) end, + function() return AiSleep(22000) end, diff --git a/games-strategy/wargus/files/wargus-2.1-humanbasespell.patch b/games-strategy/wargus/files/wargus-2.1-humanbasespell.patch new file mode 100644 index 000000000000..606f5094ec27 --- /dev/null +++ b/games-strategy/wargus/files/wargus-2.1-humanbasespell.patch @@ -0,0 +1,23 @@ +diff -ur wargusbaseaipatched/wargus-2.1/scripts/human/buttons.lua wargusbasepatched/wargus-2.1/scripts/human/buttons.lua +--- wargusbaseaipatched/wargus-2.1/scripts/human/buttons.lua 2004-02-11 11:39:08.000000000 +0100 ++++ wargusbasepatched/wargus-2.1/scripts/human/buttons.lua 2005-11-25 15:39:39.055416352 +0100 +@@ -169,7 +169,8 @@ + + DefineButton( { Pos = 7, Level = 0, Icon = "icon-holy-vision", + Action = "cast-spell", Value = "spell-holy-vision", +- Allowed = "check-upgrade", AllowArg = {"upgrade-holy-vision"}, ++-- Allowed = "check-upgrade", AllowArg = {"upgrade-holy-vision"}, ++ Allowed = "check-upgrade", AllowArg = {"upgrade-paladin"}, + Key = "v", Hint = "HOLY ~!VISION", + ForUnit = {"unit-paladin", "unit-knight-rider", + "unit-man-of-light"} } ) +@@ -197,7 +198,8 @@ + + DefineButton( { Pos = 4, Level = 0, Icon = "icon-fireball", + Action = "cast-spell", Value = "spell-fireball", +- Allowed = "check-upgrade", AllowArg = {"upgrade-fireball"}, ++-- Allowed = "check-upgrade", AllowArg = {"upgrade-fireball"}, ++ Allowed = "check-true", + Key = "f", Hint = "~!FIREBALL", + ForUnit = {"unit-mage", "unit-white-mage"} } ) + diff --git a/games-strategy/wargus/metadata.xml b/games-strategy/wargus/metadata.xml new file mode 100644 index 000000000000..5e190bca68e8 --- /dev/null +++ b/games-strategy/wargus/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <maintainer> + <email>genstef@gentoo.org</email> + <name>Stefan Schweizer</name> + </maintainer> +</pkgmetadata> diff --git a/games-strategy/wargus/wargus-2.1.ebuild b/games-strategy/wargus/wargus-2.1.ebuild new file mode 100644 index 000000000000..de3a2e5e61bb --- /dev/null +++ b/games-strategy/wargus/wargus-2.1.ebuild @@ -0,0 +1,40 @@ +# Copyright 2004-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/wargus/wargus-2.1.ebuild,v 1.1 2006/01/06 13:49:24 genstef Exp $ + +inherit eutils games + +DESCRIPTION="Warcraft II for the Stratagus game engine (Needs WC2 DOS CD)" +HOMEPAGE="http://wargus.sf.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +DEPEND="media-libs/libpng + sys-libs/zlib" +RDEPEND="=games-engines/stratagus-${PV:0:3}*" + +pkg_setup() { + cdrom_get_cds data/rezdat.war + games_pkg_setup +} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch ${FILESDIR}/wargus-2.1-humanbasespell.patch \ + ${FILESDIR}/wargus-2.1-ai.patch \ + ${FILESDIR}/wargus-2.1-aitransporter.patch +} + +src_install() { + local dir="${GAMES_DATADIR}/stratagus/${PN}" + dodir "${dir}" + ./build.sh -p "${CDROM_ROOT}" -o "${D}/${dir}" -v \ + || die "Failed to extract data" + games_make_wrapper wargus "./stratagus -d \"${dir}\"" "${GAMES_BINDIR}" + prepgamesdirs +} |