summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2006-10-05 20:51:35 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2006-10-05 20:51:35 +0000
commit6b63e4c38215af9287035e4eec082a145ddb421a (patch)
tree27bbb8ec54223003f9759c58f323858ead5eebf3 /games-strategy
parentAdded games-strategy/heroes3 and games-strategy/heroes3-demo. (diff)
downloadhistorical-6b63e4c38215af9287035e4eec082a145ddb421a.tar.gz
historical-6b63e4c38215af9287035e4eec082a145ddb421a.tar.bz2
historical-6b63e4c38215af9287035e4eec082a145ddb421a.zip
Initial import. Ebuild by Paul Bredbury <brebs@sent.com>. Closing bug #141746.
Package-Manager: portage-2.1.2_pre1-r4
Diffstat (limited to 'games-strategy')
-rw-r--r--games-strategy/heroes3-demo/ChangeLog11
-rw-r--r--games-strategy/heroes3-demo/files/digest-heroes3-demo-1.3.1a3
-rw-r--r--games-strategy/heroes3-demo/heroes3-demo-1.3.1a.ebuild66
-rw-r--r--games-strategy/heroes3-demo/metadata.xml9
4 files changed, 89 insertions, 0 deletions
diff --git a/games-strategy/heroes3-demo/ChangeLog b/games-strategy/heroes3-demo/ChangeLog
new file mode 100644
index 000000000000..ba49acce3091
--- /dev/null
+++ b/games-strategy/heroes3-demo/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for games-strategy/heroes3-demo
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/heroes3-demo/ChangeLog,v 1.1 2006/10/05 20:51:35 wolf31o2 Exp $
+
+*heroes3-demo-1.3.1a (05 Oct 2006)
+
+ 05 Oct 2006; Chris Gianelloni <wolf31o2@gentoo.org> +metadata.xml,
+ +heroes3-demo-1.3.1a.ebuild:
+ Initial import. Ebuild by Paul Bredbury <brebs@sent.com>. Closing bug
+ #141746.
+
diff --git a/games-strategy/heroes3-demo/files/digest-heroes3-demo-1.3.1a b/games-strategy/heroes3-demo/files/digest-heroes3-demo-1.3.1a
new file mode 100644
index 000000000000..b19c3473ab8b
--- /dev/null
+++ b/games-strategy/heroes3-demo/files/digest-heroes3-demo-1.3.1a
@@ -0,0 +1,3 @@
+MD5 87cf129ad86da449386df67732aa33ae heroes3-demo.run 99026773
+RMD160 2bb26d261cce27ea32d10dc1ba77aa78b3a23729 heroes3-demo.run 99026773
+SHA256 15de1efce09839013b5e85eddc57364167c46776b181b124299362a79e6ce735 heroes3-demo.run 99026773
diff --git a/games-strategy/heroes3-demo/heroes3-demo-1.3.1a.ebuild b/games-strategy/heroes3-demo/heroes3-demo-1.3.1a.ebuild
new file mode 100644
index 000000000000..6c97fddba333
--- /dev/null
+++ b/games-strategy/heroes3-demo/heroes3-demo-1.3.1a.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/heroes3-demo/heroes3-demo-1.3.1a.ebuild,v 1.1 2006/10/05 20:51:35 wolf31o2 Exp $
+
+inherit eutils games
+
+MY_PN=${PN%-demo}
+
+DESCRIPTION="turn-based 2D medieval combat"
+HOMEPAGE="http://www.lokigames.com/products/heroes3/"
+SRC_URI="mirror://lokigames/loki_demos/${PN}.run"
+
+LICENSE="as-is"
+SLOT="0"
+
+# Should also work on ppc
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RESTRICT="strip"
+
+DEPEND="games-util/loki_patch"
+RDEPEND=">=sys-libs/lib-compat-loki-0.2
+ x86? (
+ x11-libs/libX11 )
+ amd64? (
+ app-emulation/emul-linux-x86-xlibs
+ app-emulation/emul-linux-x86-compat )"
+
+S=${WORKDIR}
+
+src_unpack() {
+ unpack_makeself
+}
+
+src_install() {
+ # Apply patch
+ loki_patch patch.dat data/ || die "loki patch failed"
+
+ local dir="${GAMES_PREFIX_OPT}/${PN}"
+ local demo="data/demos/${MY_PN}_demo"
+
+ local exe_stub="${MY_PN}_demo"
+ if use ppc ; then
+ exe="${exe_stub}.ppc"
+ else
+ exe="${exe_stub}.x86"
+ fi
+
+ insinto "${dir}"
+ exeinto "${dir}"
+ doins -r "${demo}"/* || die "doins ${demo} failed"
+ rm "${D}/${dir}"/{${exe_stub}*,*.sh} || die "rm executables failed"
+ doexe "${demo}/${exe}" || die "doexe ${exe} failed"
+
+ einfo "Linking libs provided by 'sys-libs/lib-compat-loki' to '${dir}'."
+ dosym /lib/loki_ld-linux.so.2 ${dir}/ld-linux.so.2 || die "dosym"
+ dosym /usr/lib/loki_libc.so.6 ${dir}/libc.so.6 || die "dosym"
+ dosym /usr/lib/loki_libnss_files.so.2 ${dir}/libnss_files.so.2 \
+ || die "dosym"
+
+ games_make_wrapper ${PN} "./${exe}" "${dir}"
+ newicon "${demo}/icon.xpm" ${PN}.png || die "newicon icon.xpm failed"
+ make_desktop_entry ${PN} "Heroes of Might and Magic III (Demo)" ${PN}.png
+
+ prepgamesdirs
+}
diff --git a/games-strategy/heroes3-demo/metadata.xml b/games-strategy/heroes3-demo/metadata.xml
new file mode 100644
index 000000000000..fe08918e6837
--- /dev/null
+++ b/games-strategy/heroes3-demo/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>