From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 180D813832E for ; Fri, 5 Aug 2016 17:39:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D0C1E21C096; Fri, 5 Aug 2016 17:39:00 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F37B621C096 for ; Fri, 5 Aug 2016 17:38:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2DCED340B98 for ; Fri, 5 Aug 2016 17:38:59 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C8922244E for ; Fri, 5 Aug 2016 17:38:56 +0000 (UTC) From: "Austin English" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Austin English" Message-ID: <1470418726.157cad7c42b7b184f32185d26d9112044dee1cfc.wizardedit@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-server/nwn-ded/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-server/nwn-ded/nwn-ded-1.69-r1.ebuild X-VCS-Directories: games-server/nwn-ded/ X-VCS-Committer: wizardedit X-VCS-Committer-Name: Austin English X-VCS-Revision: 157cad7c42b7b184f32185d26d9112044dee1cfc X-VCS-Branch: master Date: Fri, 5 Aug 2016 17:38:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: c48c9039-e15f-4224-8757-1551b277b092 X-Archives-Hash: 2622661fc696bee9d78c790d4cceea23 commit: 157cad7c42b7b184f32185d26d9112044dee1cfc Author: Austin English gentoo org> AuthorDate: Fri Aug 5 17:38:34 2016 +0000 Commit: Austin English gentoo 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}" +}