From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- games-server/nwn-ded/Manifest | 7 +++ games-server/nwn-ded/metadata.xml | 8 ++++ games-server/nwn-ded/nwn-ded-1.69-r1.ebuild | 69 ++++++++++++++++++++++++++++ games-server/nwn-ded/nwn-ded-1.69.ebuild | 70 +++++++++++++++++++++++++++++ 4 files changed, 154 insertions(+) create mode 100644 games-server/nwn-ded/Manifest create mode 100644 games-server/nwn-ded/metadata.xml create mode 100644 games-server/nwn-ded/nwn-ded-1.69-r1.ebuild create mode 100644 games-server/nwn-ded/nwn-ded-1.69.ebuild (limited to 'games-server/nwn-ded') diff --git a/games-server/nwn-ded/Manifest b/games-server/nwn-ded/Manifest new file mode 100644 index 000000000000..9b0934d76800 --- /dev/null +++ b/games-server/nwn-ded/Manifest @@ -0,0 +1,7 @@ +DIST NWNDedicatedServer1.69.zip 606293816 SHA256 9df63ea1bf24b43be2c7568a1379cb7197fb591b0c0454ec2d20cec96234a45c SHA512 0f91ab8d03d040389d9ad7ccc7d50079057d62d542fecfb2164a726511718ba982f7b2f9878bc1143f2c61b3ef7ab8f92e5e4007b515ad6aff51216c5b602ffd WHIRLPOOL 2f309f42a01c4fc01f600cb3d23e2e2c82e5ad42462e695cc56a90a59ab220bb6324a4aef9714567d8fdc9393624d63b310ff2fe225c49151932aa16d26f110a +DIST NWNEnglish1.69dialog.zip 3200987 SHA256 357fd4c312d7598e9f563c61918f78c2235bd19acff8ac1b2d19140972828d66 SHA512 8c3214a3bcf137ea3b4b59d89055b7e22d15b8ab8d6007d81a9e70e156f8af611a8032ce5cf5c42ecd8c5af7eebe95f012a3f91723f273efa42701fd036482be WHIRLPOOL 09724f2ea25814ea98fe865207d6d7a160abfe0e582c71d2b8c649855a16b3596722525c52037f76a1cf9194053edbb19627eb16c27975646cc7247478554a1f +EBUILD nwn-ded-1.69-r1.ebuild 1793 SHA256 e1960914aaf2472256b89fd2a104484b7569fde9dc4ca5338f29c2d15c1ad2ae SHA512 cda6c5af5053ec20e5c21455a0d8062e348eb76f0883975928ba505a5392e138334d21c0a82fb077b26aeeb6b570c51bc5fae58e01760dffefc4243063467d33 WHIRLPOOL 9a071aa1ba8d4633956dc70a30eb004c35fc3bb9240204d50e811bf248305a629609fc4ea80b7f61bc057c14b8f77c6a4db86b1d41ed1b10d4116a2015a442b8 +EBUILD nwn-ded-1.69.ebuild 1810 SHA256 e074d33dd4119fbd2f5097d6b33cc305659c9c9cfddb27b1b3c445f422028fca SHA512 8c6167b5189e905953cf213306bcb3d5b3880e56138ad38cd40376e965b9090a2eb33baf5d2e920ebd5e385b024a2f3b94ef939abf8e526339224b810e4d8308 WHIRLPOOL e52aa5a4ed3b2f81823971d14b6a96e603d5b213b284ef538b713dd48323175f8e2a67c11deba22823f03f0397353fa75db2d0be20a1d808a288b16932256ff6 +MISC ChangeLog 2679 SHA256 3e27629130f23ae5e0ee2c32e560d5cc5998eb4eed85d2f7d7f91a6b4d3e6fab SHA512 2f4c35719eccb2bb195512c32fb6597882b5cb907e8c28693016190cbfdf3dca6f1d530399a8dc4514af318f921c905a6b23a7b65a93372aaceb4b95cadaeed5 WHIRLPOOL 790d5b378eb534fe7266283c9bb32ce78b59a3207f38f963b6b82e1866704ee2dfcbf9d630bb59c94aa6736982a00aff21ad868e24bcd14d8d35b87c654f5458 +MISC ChangeLog-2015 3712 SHA256 572a47c2c4ef0e6289818d48ad1fd71b8cb895e8a683e9e5cab387485049764d SHA512 9b92ba387f8a460114dd947055637d39a22b9b74378ef84a62e7d225012d8859e956e506ebad0199c487b46a58e8bb35a6b86f417a7b92544e067677ed9775fc WHIRLPOOL 30f4b24f5d43a6d6b1b479e77581d999f98176e812ad93067bc169a4b4c9d902015f3f6447d19f029c2c1be58f33350e35bc066e4f52f7a6f1c6fed28967d1a1 +MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088 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 @@ + + + + + games@gentoo.org + Gentoo Games Project + + 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..57623fe2cfb8 --- /dev/null +++ b/games-server/nwn-ded/nwn-ded-1.69-r1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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}" +} diff --git a/games-server/nwn-ded/nwn-ded-1.69.ebuild b/games-server/nwn-ded/nwn-ded-1.69.ebuild new file mode 100644 index 000000000000..ae6785044a9b --- /dev/null +++ b/games-server/nwn-ded/nwn-ded-1.69.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit games + +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=${GAMES_PREFIX_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 + 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} + cp -rfl ../common/* . || die + unpack "${a}" + cd .. + fi + done +} + +src_install() { + dodir ${dir} + + local currentlocale + for currentlocale in * ; do + if [[ ${currentlocale} != "common" ]] + then + games_make_wrapper nwserver-${currentlocale} ./nwserver "${dir}/${currentlocale}" "${dir}/${currentlocale}" + fi + done + + mv * "${D}/${dir}"/ || die + + prepgamesdirs + chmod -R g+w "${D}/${dir}" +} -- cgit v1.2.3