summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin English <wizardedit@gentoo.org>2016-08-05 11:45:10 -0500
committerAustin English <wizardedit@gentoo.org>2016-08-05 12:38:46 -0500
commit62227e71dcc4c9c4ef4df4f341c7a36c1a07da92 (patch)
tree877ab6cd7547c2eef17f3830cf037e191b82a0b4 /games-server
parentgames-server/bf1942-lnxded: remove unused files (diff)
downloadgentoo-62227e71dcc4c9c4ef4df4f341c7a36c1a07da92.tar.gz
gentoo-62227e71dcc4c9c4ef4df4f341c7a36c1a07da92.tar.bz2
gentoo-62227e71dcc4c9c4ef4df4f341c7a36c1a07da92.zip
games-server/bf1942-lnxded: remove deprecated games eclass
Also update to EAPI 6 Gentoo-Bug: https://bugs.gentoo.org/574082 Package-Manager: portage-2.3.0
Diffstat (limited to 'games-server')
-rw-r--r--games-server/bf1942-lnxded/bf1942-lnxded-1.61-r1.ebuild42
1 files changed, 42 insertions, 0 deletions
diff --git a/games-server/bf1942-lnxded/bf1942-lnxded-1.61-r1.ebuild b/games-server/bf1942-lnxded/bf1942-lnxded-1.61-r1.ebuild
new file mode 100644
index 000000000000..a199aaf1f999
--- /dev/null
+++ b/games-server/bf1942-lnxded/bf1942-lnxded-1.61-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit eutils unpacker
+
+DESCRIPTION="dedicated server for Battlefield 1942"
+HOMEPAGE="http://www.battlefield.com/battlefield-1942"
+SRC_URI="http://ftp.games.skynet.be/pub/misc/${PN/-/_}-1.6-rc2.run
+ http://ftp.games.skynet.be/pub/misc/bf1942-update-${PV}.tar.gz"
+
+LICENSE="bf1942-lnxded"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+RESTRICT="mirror bindist strip"
+
+S=${WORKDIR}
+
+dir="/opt/bf1942"
+Ddir="${D}/${dir}"
+
+QA_PREBUILT="${dir}/*.so ${dir}/bf1942_lnxded.*"
+
+src_unpack() {
+ mkdir bf1942 || die
+ pushd bf1942 || die
+ unpack_makeself ${PN/-/_}-1.6-rc2.run
+ popd || die
+ unpack bf1942-update-${PV}.tar.gz
+}
+
+src_install() {
+ dodir "${dir}"
+ mv -f "${S}"/bf1942/* "${S}" || die
+ rm -rf "${S}"/bf1942 || die
+
+ mv "${S}"/* "${Ddir}" || die
+ dosym bf1942_lnxded.dynamic "${dir}"/bf1942_lnxded
+ make_wrapper ${PN} ./bf1942_lnxded "${dir}"
+}