public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Austin English" <wizardedit@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-server/nwn-ded/
Date: Fri,  5 Aug 2016 17:38:56 +0000 (UTC)	[thread overview]
Message-ID: <1470418726.157cad7c42b7b184f32185d26d9112044dee1cfc.wizardedit@gentoo> (raw)

commit:     157cad7c42b7b184f32185d26d9112044dee1cfc
Author:     Austin English <wizardedit <AT> gentoo <DOT> org>
AuthorDate: Fri Aug  5 17:38:34 2016 +0000
Commit:     Austin English <wizardedit <AT> gentoo <DOT> org>
CommitDate: Fri Aug  5 17:38:46 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=157cad7c

games-server/nwn-ded: remove deprecated games eclass

Also update to EAPI 6

Gentoo-Bug: https://bugs.gentoo.org/574082

Package-Manager: portage-2.3.0

 games-server/nwn-ded/nwn-ded-1.69-r1.ebuild | 70 +++++++++++++++++++++++++++++
 1 file changed, 70 insertions(+)

diff --git a/games-server/nwn-ded/nwn-ded-1.69-r1.ebuild b/games-server/nwn-ded/nwn-ded-1.69-r1.ebuild
new file mode 100644
index 0000000..cc264b9
--- /dev/null
+++ b/games-server/nwn-ded/nwn-ded-1.69-r1.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit eutils
+
+LANGUAGES="linguas_en"
+DIALOG_URL_BASE=http://files.bioware.com/neverwinternights/dialog/
+
+DESCRIPTION="Neverwinter Nights Dedicated server"
+HOMEPAGE="http://nwn.bioware.com/downloads/standaloneserver.html"
+SRC_URI="http://files.bioware.com/neverwinternights/updates/windows/server/NWNDedicatedServer${PV}.zip
+	linguas_en? ( ${DIALOG_URL_BASE}/english/NWNEnglish${PV}dialog.zip )"
+
+LICENSE="NWN-EULA"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE="${LANGUAGES}"
+RESTRICT="mirror strip"
+
+DEPEND="app-arch/unzip"
+
+S=${WORKDIR}
+
+dir="/opt/${PN}"
+QA_PREBUILT="${dir:1}/common/nwserver"
+
+src_unpack() {
+	mkdir common || die
+	cd common || die
+	unpack NWNDedicatedServer${PV}.zip
+	tar -zxf linuxdedserver${PV/./}.tar.gz || die
+	rm -f *dedserver*.{tar.gz,sit,zip} *.exe *.dll || die
+	cd ..
+	local currentlocale=""
+	local a
+	for a in ${A}
+	do
+		if [ -z "${a/*dialog*/}" ] ; then
+			if [ -z "${a/*English*/}" ]; then currentlocale="en"; fi
+			if [ -z "${a/*French*/}" ]; then currentlocale="fr"; fi
+			if [ -z "${a/*German*/}" ]; then currentlocale="de"; fi
+			if [ -z "${a/*Italian*/}" ]; then currentlocale="it"; fi
+			if [ -z "${a/*Spanish*/}" ]; then currentlocale="es"; fi
+			if [ -z "${a/*Japanese*/}" ]; then currentlocale="ja"; fi
+			mkdir ${currentlocale} || die
+			cd ${currentlocale} || die
+			cp -rfl ../common/* . || die
+			unpack "${a}"
+			cd ..
+		fi
+	done
+}
+
+src_install() {
+	dodir ${dir}
+
+	local currentlocale
+	for currentlocale in * ; do
+		if [[ ${currentlocale} != "common" ]]
+		then
+			make_wrapper nwserver-${currentlocale} ./nwserver "${dir}/${currentlocale}" "${dir}/${currentlocale}"
+		fi
+	done
+
+	mv * "${D}/${dir}"/ || die
+
+	chmod -R g+w "${D}/${dir}"
+}


             reply	other threads:[~2016-08-05 17:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-05 17:38 Austin English [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-01-03 22:23 [gentoo-commits] repo/gentoo:master commit in: games-server/nwn-ded/ Alfredo Tupone
2018-01-07  0:18 Ulrich Müller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1470418726.157cad7c42b7b184f32185d26d9112044dee1cfc.wizardedit@gentoo \
    --to=wizardedit@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox