summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2004-09-29 23:43:45 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2004-09-29 23:43:45 +0000
commit6e4c7f218c48b4dda0b2537e63844ffdad5dbac4 (patch)
tree7efb20bbd3cded722c589ccb98be10c4ff9fa080 /games-strategy
parentAdded missing space to header. (Manifest recommit) (diff)
downloadgentoo-2-6e4c7f218c48b4dda0b2537e63844ffdad5dbac4.tar.gz
gentoo-2-6e4c7f218c48b4dda0b2537e63844ffdad5dbac4.tar.bz2
gentoo-2-6e4c7f218c48b4dda0b2537e63844ffdad5dbac4.zip
Initial import. Ebuild submitted by me. Closing bug #33206.
Diffstat (limited to 'games-strategy')
-rw-r--r--games-strategy/heroes3/ChangeLog10
-rw-r--r--games-strategy/heroes3/Manifest3
-rw-r--r--games-strategy/heroes3/files/digest-heroes3-1.3.1a2
-rw-r--r--games-strategy/heroes3/heroes3-1.3.1a.ebuild94
-rw-r--r--games-strategy/heroes3/metadata.xml9
5 files changed, 118 insertions, 0 deletions
diff --git a/games-strategy/heroes3/ChangeLog b/games-strategy/heroes3/ChangeLog
new file mode 100644
index 000000000000..1e6edfd239bf
--- /dev/null
+++ b/games-strategy/heroes3/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for games-strategy/heroes3
+# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/heroes3/ChangeLog,v 1.1 2004/09/29 23:43:45 wolf31o2 Exp $
+
+*heroes3-1.3.1a (29 Sep 2004)
+
+ 29 Sep 2004; Chris Gianelloni <wolf31o2@gentoo.org> +metadata.xml,
+ +heroes3-1.3.1a.ebuild:
+ Initial import. Ebuild submitted by me. Closing bug #33206.
+
diff --git a/games-strategy/heroes3/Manifest b/games-strategy/heroes3/Manifest
new file mode 100644
index 000000000000..398f7dbb0479
--- /dev/null
+++ b/games-strategy/heroes3/Manifest
@@ -0,0 +1,3 @@
+MD5 34b8e51cdaebdde59dbe921dd232e3a8 heroes3-1.3.1a.ebuild 2832
+MD5 11a7e1491b1ac042ac7216b26b4ad1fb metadata.xml 254
+MD5 448d580609f09736aaa5f762b631e813 files/digest-heroes3-1.3.1a 142
diff --git a/games-strategy/heroes3/files/digest-heroes3-1.3.1a b/games-strategy/heroes3/files/digest-heroes3-1.3.1a
new file mode 100644
index 000000000000..a34593c46c90
--- /dev/null
+++ b/games-strategy/heroes3/files/digest-heroes3-1.3.1a
@@ -0,0 +1,2 @@
+MD5 be8d44e9bc808019011161f7605c9ba1 heroes3-1.3.1a-cdrom-x86.run 3012188
+MD5 32b2749e8097df6cde0a529c99e4d620 heroes3-1.3.1a-ppc.run 2643068
diff --git a/games-strategy/heroes3/heroes3-1.3.1a.ebuild b/games-strategy/heroes3/heroes3-1.3.1a.ebuild
new file mode 100644
index 000000000000..3002f3228b44
--- /dev/null
+++ b/games-strategy/heroes3/heroes3-1.3.1a.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/heroes3/heroes3-1.3.1a.ebuild,v 1.1 2004/09/29 23:43:45 wolf31o2 Exp $
+
+# [x] Base Install Required (+4 MB)
+# [x] Scenarios (+7 MB)
+# [x] Sounds and Graphics (+118 MB)
+# [x] Music (+65 MB)
+# [x] Videos (+147 MB)
+# --------------------
+# Total 341 MB
+
+inherit games
+IUSE="nocd maps music sounds videos"
+DESCRIPTION="Heroes of Might and Magic III : The Restoration of Erathia - turn-based 2-D medieval combat"
+HOMEPAGE="http://www.lokigames.com/products/${PN}/"
+KEYWORDS="x86"
+
+# Since I do not have a PPC machine to test with, I will leave the PPC stuff in
+# here so someone else can stabilize loki_setupdb and loki_patch for PPC and
+# then KEYWORD this appropriately.
+SRC_URI="x86? ( ftp://ftp.planetmirror.com/pub/lokigames/updates/${PN}/${P}-cdrom-x86.run
+ ftp://snuffleupagus.animearchive.org/loki/updates/${PN}/${P}-cdrom-x86.run )
+ ppc? ( ftp://ftp.planetmirror.com/pub/lokigames/updates/${PN}/${P}-ppc.run
+ ftp://snuffleupagus.animearchive.org/loki/updates/${PN}/${P}-ppc.run )"
+
+LICENSE="LOKI-EULA"
+SLOT="0"
+RESTRICT="nostrip"
+
+DEPEND="virtual/libc
+ games-util/loki_patch"
+
+S=${WORKDIR}
+
+dir=${GAMES_PREFIX_OPT}/${PN}
+Ddir=${D}/${dir}
+
+pkg_setup() {
+ check_license || die "License check failed"
+ use nocd && ewarn "The full installation takes about 341 MB of space!"
+ games_pkg_setup
+}
+
+src_unpack() {
+ unpack_makeself
+}
+
+src_install() {
+ cdrom_get_cds hiscore.tar.gz
+ einfo "Copying files... this may take a while..."
+ exeinto ${dir}
+ doexe ${CDROM_ROOT}/bin/x86/${PN}
+ insinto ${dir}
+ doins ${CDROM_ROOT}/{Heroes_III_Tutorial.pdf,README,icon.{bmp,xpm}}
+
+ if use nocd; then
+ dodir ${dir}/{maps,mp3,data} ${dir}/data/video
+ cp -r ${CDROM_ROOT}/{data,maps,mp3} ${Ddir} || die "copying data"
+ else
+ dodir ${dir}/data
+ use maps && insinto ${dir}/maps && dodir ${dir}/maps && doins ${CDROM_ROOT}/maps/*
+ use music && insinto ${dir}/mp3 && dodir ${dir}/mp3 && doins ${CDROM_ROOT}/mp3/*
+ use sounds && insinto ${dir}/data && doins ${CDROM_ROOT}/data/{*.lod,*.snd}
+ use videos && insinto ${dir}/data/video && dodir ${dir}/data/video && doins ${CDROM_ROOT}/data/video/*
+ fi
+
+ cd ${Ddir}
+ tar xf ${CDROM_ROOT}/hiscore.tar.gz || die "unpacking hiscore"
+
+ cd ${S}
+ loki_patch --verify patch.dat
+ loki_patch patch.dat ${Ddir} >& /dev/null || die "patching"
+
+ games_make_wrapper heroes3 ./heroes3 ${dir}
+
+ # now, since these files are coming off a cd, the times/sizes/md5sums wont
+ # be different ... that means portage will try to unmerge some files (!)
+ # we run touch on ${D} so as to make sure portage doesnt do any such thing
+ find ${Ddir} -exec touch '{}' \;
+
+ insinto /usr/share/pixmaps
+ doins ${S}/heroes3.xpm
+
+ prepgamesdirs
+ make_desktop_entry heroes3 "Heroes of Might and Magic III" "heroes3.xpm"
+}
+
+pkg_postinst() {
+ einfo "To play the game run:"
+ einfo " heroes3"
+
+ games_pkg_postinst
+}
diff --git a/games-strategy/heroes3/metadata.xml b/games-strategy/heroes3/metadata.xml
new file mode 100644
index 000000000000..fe08918e6837
--- /dev/null
+++ b/games-strategy/heroes3/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>wolf31o2@gentoo.org</email>
+ <name>Chris Gianelloni</name>
+</maintainer>
+</pkgmetadata>