summaryrefslogtreecommitdiff
path: root/games-server/nwn-ded
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-server/nwn-ded
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'games-server/nwn-ded')
-rw-r--r--games-server/nwn-ded/Manifest4
-rw-r--r--games-server/nwn-ded/metadata.xml8
-rw-r--r--games-server/nwn-ded/nwn-ded-1.69-r1.ebuild69
3 files changed, 81 insertions, 0 deletions
diff --git a/games-server/nwn-ded/Manifest b/games-server/nwn-ded/Manifest
new file mode 100644
index 000000000000..fc835790f181
--- /dev/null
+++ b/games-server/nwn-ded/Manifest
@@ -0,0 +1,4 @@
+DIST NWNDedicatedServer1.69.zip 606293816 BLAKE2B f5e9f49bcaf76329310eee092328ef6cfc7d825409d66369ec18a8b2f881a6f6232a0a63d89d23f755165c1e13e6140575549875b55e80a0002f85b7af2b98ee SHA512 0f91ab8d03d040389d9ad7ccc7d50079057d62d542fecfb2164a726511718ba982f7b2f9878bc1143f2c61b3ef7ab8f92e5e4007b515ad6aff51216c5b602ffd
+DIST NWNEnglish1.69dialog.zip 3200987 BLAKE2B 8d0864ce22b39862a72291afca3e4ea8ff7ae35cee0dd38cb1424d7f767aeb4df82e4a6c53a1d59c2e670e3af05c8e6ff1984e6f1065d7e71f70ead97d0a369e SHA512 8c3214a3bcf137ea3b4b59d89055b7e22d15b8ab8d6007d81a9e70e156f8af611a8032ce5cf5c42ecd8c5af7eebe95f012a3f91723f273efa42701fd036482be
+EBUILD nwn-ded-1.69-r1.ebuild 1787 BLAKE2B cddcef0e76a4d35888cacc73e12ab2e20e1715752e8aaec3d792bde67c3543e73ca50fbb69e0290885383e079a52e5dd918388486541f77e64d05ab33929e915 SHA512 fffe02b765fef007cd04230fb6d6c218c351a904b8f332cc7522fcc5990a9f049ab13278df7cfaea4db2632a87bb3d618a5730bf5da39997069111b3e21245fc
+MISC metadata.xml 249 BLAKE2B 7113a758d7abc93accec998a8843d8ef51ca8b72d72e659e224d5cec2a1a6a63e6c0605958091532ac6e51fa0d501ca4fd9f3f4a9e55baeb31519a02971b465f SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118
diff --git a/games-server/nwn-ded/metadata.xml b/games-server/nwn-ded/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-server/nwn-ded/metadata.xml
@@ -0,0 +1,8 @@
+<?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>
+</pkgmetadata>
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 000000000000..21ee32df32f6
--- /dev/null
+++ b/games-server/nwn-ded/nwn-ded-1.69-r1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils
+
+LANGUAGES="l10n_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
+ l10n_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}"
+}