summaryrefslogtreecommitdiff
blob: 85838c24661fb44319c07f08f65e43996c6f9ce8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-server/nwn-ded/nwn-ded-1.30.ebuild,v 1.6 2004/06/24 23:21:18 agriffis Exp $

inherit games

DESCRIPTION="Neverwinter Nights Dedicated server"
HOMEPAGE="http://nwn.bioware.com/downloads/standaloneserver.html"
SRC_URI="http://nwdownloads.bioware.com/neverwinternights/standaloneserver/NWNDedicatedServer${PV}.zip"

LICENSE="NWN-EULA"
SLOT="0"
KEYWORDS="-* x86"
IUSE=""
DEPEND="app-arch/unzip"

S=${WORKDIR}

src_unpack() {
	unpack ${A}
	tar -zxf linuxdedserver${PV/.}.tar.gz || die
	rm linuxdedserver${PV/.}.tar.gz
}

src_install() {
	local dir=${GAMES_PREFIX_OPT}/${PN}
	dodir ${dir}

	mv ${S}/* ${D}/${dir}/ || die "installing server"
	dogamesbin ${FILESDIR}/nwserver
	dosed "s:GENTOO_DIR:${dir}:" ${GAMES_BINDIR}/nwserver

	prepgamesdirs
	chmod -R g+w ${D}/${dir}
}