summaryrefslogtreecommitdiff
path: root/games-fps/ut2003
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/ut2003
reinit the tree, so we can have metadata
Diffstat (limited to 'games-fps/ut2003')
-rw-r--r--games-fps/ut2003/Manifest5
-rw-r--r--games-fps/ut2003/metadata.xml11
-rw-r--r--games-fps/ut2003/ut2003-2225-r4.ebuild99
3 files changed, 115 insertions, 0 deletions
diff --git a/games-fps/ut2003/Manifest b/games-fps/ut2003/Manifest
new file mode 100644
index 000000000000..6cf4f48daa00
--- /dev/null
+++ b/games-fps/ut2003/Manifest
@@ -0,0 +1,5 @@
+DIST ut2003lnx_patch2225.tar.tar 10039316 SHA256 0c2d851e39b4491698f6fb3aefb9bf83340de85085f3b670d93a8cba29aefec3 SHA512 3c44b6254b2b778bf2aca826c710f51db4ec0687c21f1c98e1070f3a9ad7e1a809e741a5b94e20a44c56c60a8b1e4a049788ff5f2a4d581c4eedf3dbbc0da86d WHIRLPOOL dcdd705e9a69612d4672b38a00080063fca7a80123f7152fee8490018c080e0dbdbf7a74acf316f194d182acda2e6f092d1edcab56f4bc073df1f99e9b4832b0
+EBUILD ut2003-2225-r4.ebuild 2641 SHA256 557940d8ef87b7456837864de0321192b0bda0726db0e0cc158a66a72360ff8f SHA512 9cd02098000bdff8fb443808e71f3b027eb36e9c7060b95e733711938d1b22d7bbd66f12b98cddc47aa44e8f6516c8653ccc774a0bca6609e98533c272d5d268 WHIRLPOOL 4f2ad9da2bb4e25715e1bfc80b06053ef7e41477eede1cfb4fc6ce10c80ac2dbeaeb1e7fedf2153174938ba9c556d77ba25f421493c801b57950c67e867cea67
+MISC ChangeLog 2429 SHA256 0f43328b344043fcaa4dc98f2ba16dc167f272a419ac02627b7187b1e5ead272 SHA512 1b8c2e51656658642944710ff91b42219abbc016632643a0066caeae1db1859c1b2372d17800b3ef4a3c9142c7b876c497725ce761bcdaf4a1e690674570dd7b WHIRLPOOL ba73c129f1e51cdd1f3b4cf1e920385cbc62b4dd0cd1aaa67abf371c97b9dcbd067dfd7e99d686ae09a8072203b2feb55526b87e26ee052db14f05fccd285326
+MISC ChangeLog-2015 8090 SHA256 e58c097222b6b8b41f49d789a9a225ef48f9cff3a4f4896a14a42b590fbc4469 SHA512 b9f6baa63a0187dd9f3a085b417497f1a962d55a8380b089d70c6d5ec1af62af98d17d5241b439008da36c21d19c1750a39b1e146061f1ad474303f4abca8c54 WHIRLPOOL e671af55da3e4003ecc4153e3ff4cb22e38134fbee42a891eda32a8369b22e39fe929d62be8e2adc4e32b6622c0c7fdad24e5e7ac64f7595fed4384d2b9ddfc7
+MISC metadata.xml 771 SHA256 ba25f4169d4a689de3925a408b36b9d36c0f51673d3d23892f754aaa3a630dc4 SHA512 d30d55503e3b3897d2a5093c06a39f684bdf0879214931a360a87637cd62ae1ca019577f42275bf2b4ba28649ab2989b0a2e184998497ddc5ffddbb6ba35ef5e WHIRLPOOL c648bd9951f1f578cd893012dc4ba2165f3ee02bb654eeb1c6858b130a91e49e2719ebe0b912a7715901ce4d4575accfcc84641cf0662eadd56f97ec70a37be2
diff --git a/games-fps/ut2003/metadata.xml b/games-fps/ut2003/metadata.xml
new file mode 100644
index 000000000000..e716a53e0747
--- /dev/null
+++ b/games-fps/ut2003/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>
+Unreal Tounament 2003 is a first-person 3-D shooter and sequel to the 1999 Game of the Year, Unreal Tournament. The game was ported to Linux by Ryan "icculus" Gordon under contract from Epic Games and the Linux installer was released in the retail box. This game is commercial software and requires data from the original retail discs to play. If you're interested in checking out the technology behind Unreal Tournament 2003, you can "emerge ut2003-demo" to get the playable demo.
+</longdescription>
+</pkgmetadata>
diff --git a/games-fps/ut2003/ut2003-2225-r4.ebuild b/games-fps/ut2003/ut2003-2225-r4.ebuild
new file mode 100644
index 000000000000..bb23d7e85c24
--- /dev/null
+++ b/games-fps/ut2003/ut2003-2225-r4.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils games
+
+DESCRIPTION="Sequel to the 1999 Game of the Year multi-player first-person shooter"
+HOMEPAGE="http://www.unrealtournament2003.com/"
+SRC_URI="ftp://ftp.infogrames.net/misc/ut2003/ut2003lnx_patch2225.tar.tar"
+
+LICENSE="ut2003"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="dedicated"
+RESTRICT="strip"
+
+RDEPEND="
+ games-fps/ut2003-data
+ dedicated? ( games-server/ut2003-ded )
+ !dedicated? ( virtual/opengl[abi_x86_32(-)] )
+"
+DEPEND=""
+
+S=${WORKDIR}
+
+dir="${GAMES_PREFIX_OPT}/${PN}"
+Ddir="${D}/${dir}"
+
+src_unpack() {
+ unpack ut2003lnx_patch${PV}.tar.tar
+}
+
+src_install() {
+ insinto "${dir}"
+
+ games_make_wrapper ut2003 ./ut2003 "${dir}" "${dir}"
+ make_desktop_entry ut2003 "Unreal Tournament 2003" ut2003
+
+ # TODO: change this to use doexe/doins
+ # this brings our install up to the newest version
+ cp -r "${S}"/ut2003-lnx-2225/* "${Ddir}" || die
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ # here is where we check for the existence of a cdkey...
+ # if we don't find one, we ask the user for it
+ if [[ -f "${dir}"/System/cdkey ]] ; then
+ elog "A cdkey file is already present in ${dir}/System"
+ else
+ ewarn "You MUST run this before playing the game:"
+ ewarn "emerge --config =${CATEGORY}/${PF}"
+ ewarn "That way you can (re)enter your cdkey."
+ fi
+ elog
+ elog "To play the game run:"
+ elog " ut2003"
+ ewarn
+ ewarn "If you are not installing for the first time and you plan on running"
+ ewarn "a server, you will probably need to edit your"
+ ewarn "~/.ut2003/System/UT2003.ini file and add a line that says"
+ ewarn "AccessControlClass=crashfix.iaccesscontrolini to your"
+ ewarn "[Engine.GameInfo] section to close a security issue."
+}
+
+pkg_postrm() {
+ ewarn "This package leaves a cdkey file in ${dir}/System that you need"
+ ewarn "to remove to completely get rid of this game's files."
+}
+
+pkg_config() {
+ ewarn "Your CD key is NOT checked for validity here."
+ ewarn " Make sure you type it in correctly."
+ eerror "If you CTRL+C out of this, the game will not run!"
+ echo
+ einfo "CD key format is: XXXX-XXXX-XXXX-XXXX"
+ while true ; do
+ einfo "Please enter your CD key:"
+ read CDKEY1
+ einfo "Please re-enter your CD key:"
+ read CDKEY2
+ if [[ "${CDKEY1}" == "" ]] ; then
+ echo "You entered a blank CD key. Try again."
+ else
+ if [[ "${CDKEY1}" == "${CDKEY2}" ]] ; then
+ echo "${CDKEY1}" | tr a-z A-Z > ${dir}/System/cdkey
+ einfo "Thank you!"
+ chown games:games "${dir}"/System/cdkey
+ break
+ else
+ eerror "Your CD key entries do not match. Try again."
+ fi
+ fi
+ done
+}