summaryrefslogtreecommitdiff
path: root/games-fps/soldieroffortune
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-fps/soldieroffortune
reinit the tree, so we can have metadata
Diffstat (limited to 'games-fps/soldieroffortune')
-rw-r--r--games-fps/soldieroffortune/Manifest5
-rw-r--r--games-fps/soldieroffortune/metadata.xml11
-rw-r--r--games-fps/soldieroffortune/soldieroffortune-1.06a-r1.ebuild83
3 files changed, 99 insertions, 0 deletions
diff --git a/games-fps/soldieroffortune/Manifest b/games-fps/soldieroffortune/Manifest
new file mode 100644
index 000000000000..d2e32d09b229
--- /dev/null
+++ b/games-fps/soldieroffortune/Manifest
@@ -0,0 +1,5 @@
+DIST sof-1.06a-cdrom-x86.run 22928437 SHA256 44546073f26a610ec554f3d197e157a6691c0891651689308e62feccc01a1c16 SHA512 91ef3953bd6b6630ab602f64d15a3056f85d90139b18aa3eb9a9a0a75db2ece61ef683ddf1d03b63f0dfc902d7a27914ae673398713941f281e96555d9645078 WHIRLPOOL 986d4f7a5115203fec37ebb187c80e27ff4f986b19157afd42179af9f032b20bf305352cc4a3efe38a0b181ac8d3dcb8c98399fdf3b370b076cbe7615c4cd4d0
+EBUILD soldieroffortune-1.06a-r1.ebuild 2096 SHA256 0b17df8cb3528fc69d868a86d931ed0739fbe2624a65a290716e91b07e1563f8 SHA512 d00e133d64a8ae9ab0ba0cea2b3dddb0628ed73391873fadaa75e45b034d4b551cd82d6f8c9df87896ee7cc8ee195cb974de16f6141558c0ba306602e7421a90 WHIRLPOOL 57db3614a88ff03e0a1427defdd199f0de327e06ae1e458e3fa6454b8b1dc84cf02d0ac8312cd5f844cea3de03b8d5ed5dc87018ed1cd2743237f62f0c6558b2
+MISC ChangeLog 2461 SHA256 8bc5d76a4a60a0f0b47277f8ca88a9ebdfaa06979a16cfbf22e5402c43509de0 SHA512 ea53ae96f76cc00970f232d06bd2ceef6866ac558f92347e5bc3d197712723f57d486a5d8fe54f376168b3669b1c71ced2c7d2ac992b7f929cc72b331f120b46 WHIRLPOOL e6a899aaf91beaafbc968702825df8fb436c369ce8eddf71b82837e8e14f954bed364d90fc87b4646a0c627290e7105f8296513bec09525cfcdf2dde02013e0c
+MISC ChangeLog-2015 5218 SHA256 6d2d42985633af1817bbc80c9741f18fb6c25af8f3e0901620cc0570ce532362 SHA512 fc1d9324a1d7a51c5cc6f00c5fe32223bcf37c8db8ca404d6136a48aeb5ceb47a389539dd3d492feedb55021fb5389e4f5db8a90c9d36fe9f06c7c90f4a01572 WHIRLPOOL f788e55f5226de717e2f6f9a7f1ed73bf64c4d91c14306a015771c16418d3c3dbabd5e9685bc59cd819d3b5fd310d41d9d03b578f9a88003584deb8bde9a7d5d
+MISC metadata.xml 963 SHA256 fcfade382c4b7cdfa9787d6cfaea456cad37a96cd56549350ab89320c6a794f5 SHA512 59c285b27116238b779238f0179124a2ef1eefca76ae20a84f65ea8850548228dd540ba90b856dafccdd489f911beabb7b2b0a1fa4630562c995f845421f4895 WHIRLPOOL 63992b2bb84392f3218f45a6c52f99b9ce80b83e5897295e001d68858fcebd377a4b8785730b0c4120002a1ff8f2f441862e1622fc3c90667984f0170a7a37c2
diff --git a/games-fps/soldieroffortune/metadata.xml b/games-fps/soldieroffortune/metadata.xml
new file mode 100644
index 000000000000..dc508d82ecaa
--- /dev/null
+++ b/games-fps/soldieroffortune/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+<longdescription>
+Soldier of Fortune is a first-person 3-D shooter based on the mercenary trade. You play as John, an ex-military mercinary who still has plenty of good friends on the inside. For a wad of bucks, you'll do the job -- no cares, no worries. Just get the gun, play for keeps, get paid, on to the next one -- that's your life. That's what you do. And you're good at it, one of the best even. But now is the time for your biggest challenge ever. The game was ported to Linux by the now defunct Loki Entertainment and is commercial software. You can still pick up a copy from Tuxgames (http://www.tuxgames.com), but supplies are limited, as the publisher is no longer in business.
+</longdescription>
+</pkgmetadata>
diff --git a/games-fps/soldieroffortune/soldieroffortune-1.06a-r1.ebuild b/games-fps/soldieroffortune/soldieroffortune-1.06a-r1.ebuild
new file mode 100644
index 000000000000..2d9af482ccd5
--- /dev/null
+++ b/games-fps/soldieroffortune/soldieroffortune-1.06a-r1.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit check-reqs eutils unpacker cdrom games
+
+DESCRIPTION="First-person shooter based on the mercenary trade"
+HOMEPAGE="http://www.lokigames.com/products/sof/"
+SRC_URI="mirror://lokigames/sof/sof-${PV}-cdrom-x86.run"
+
+LICENSE="LOKI-EULA"
+SLOT="0"
+KEYWORDS="amd64 x86"
+RESTRICT="strip"
+IUSE=""
+
+DEPEND="games-util/loki_patch"
+RDEPEND="sys-libs/glibc
+ amd64? ( sys-libs/glibc[multilib] )
+ virtual/opengl[abi_x86_32(-)]
+ media-libs/libsdl[X,opengl,sound,abi_x86_32(-)]
+ x11-libs/libXrender[abi_x86_32(-)]
+ x11-libs/libXrandr[abi_x86_32(-)]
+ media-libs/smpeg[abi_x86_32(-)]"
+
+S=${WORKDIR}
+
+dir=${GAMES_PREFIX_OPT}/${PN}
+Ddir=${ED}/${dir}
+unpackDir=${T}/unpack
+
+CHECKREQS_DISK_BUILD="1450M"
+CHECKREQS_DISK_USR="725M"
+
+pkg_pretend() {
+ check-reqs_pkg_pretend
+}
+
+src_unpack() {
+ cdrom_get_cds sof.xpm
+ unpack_makeself
+ mkdir ${unpackDir} || die
+ tar xzf "${CDROM_ROOT}"/paks.tar.gz -C "${unpackDir}" || die
+ tar xzf "${CDROM_ROOT}"/binaries.tar.gz -C "${unpackDir}" || die
+}
+
+src_install() {
+ einfo "Copying files... this may take a while..."
+ exeinto "${dir}"
+ doexe "${CDROM_ROOT}"/bin/x86/glibc-2.1/sof
+ insinto "${dir}"
+ doins -r "${unpackDir}"/*
+ doins "${CDROM_ROOT}"/{README,kver.pub,sof.xpm}
+
+ cd "${S}"
+ export _POSIX2_VERSION=199209
+ loki_patch --verify patch.dat
+ loki_patch patch.dat "${Ddir}" >& /dev/null || die
+
+ # 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 '{}' +
+
+ games_make_wrapper sof ./sof "${dir}" "${dir}"
+
+ # fix buffer overflow
+ sed -i -e '/^exec/i \
+export MESA_EXTENSION_MAX_YEAR=2003 \
+export __GL_ExtensionStringVersion=17700' \
+ "${ED}/${GAMES_BINDIR}/sof" || die
+
+ doicon "${CDROM_ROOT}"/sof.xpm
+ make_desktop_entry sof "Soldier of Fortune" sof
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "To play the game run:"
+ elog " sof"
+}