summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-rpg/nwn')
-rw-r--r--games-rpg/nwn/ChangeLog8
-rw-r--r--games-rpg/nwn/Manifest6
-rw-r--r--games-rpg/nwn/nwn-1.69.ebuild116
3 files changed, 128 insertions, 2 deletions
diff --git a/games-rpg/nwn/ChangeLog b/games-rpg/nwn/ChangeLog
index b50b894e77a7..8c53c3da26fc 100644
--- a/games-rpg/nwn/ChangeLog
+++ b/games-rpg/nwn/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-rpg/nwn
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn/ChangeLog,v 1.68 2008/08/01 18:52:28 calchan Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn/ChangeLog,v 1.69 2008/08/02 13:45:12 calchan Exp $
+
+*nwn-1.69 (02 Aug 2008)
+
+ 02 Aug 2008; Denis Dupeyron <calchan@gentoo.org> +nwn-1.69.ebuild:
+ Version bump, see bug #231704. Massively simplified the ebuild since this
+ version supports only the english language.
01 Aug 2008; Denis Dupeyron <calchan@gentoo.org> Manifest:
Fixed Manifest, bug #227419.
diff --git a/games-rpg/nwn/Manifest b/games-rpg/nwn/Manifest
index fb60c438f305..7a0d5d8e9b9a 100644
--- a/games-rpg/nwn/Manifest
+++ b/games-rpg/nwn/Manifest
@@ -2,6 +2,9 @@ AUX fixinstall 2534 RMD160 9f9ae60341fcc61fbf9e8d47738d07bd96694718 SHA1 0cdba82
DIST English_linuxclient168_orig.tar.gz 130569338 RMD160 0622599a07c113ae69fed80416f7a6f16e9e715e SHA1 5677e8ae04f6f12f776e13105a8401e55053862b SHA256 03687bff0469cb08a7e5a14316e076a6bfe698121ccee4e2116f0bf119988092
DIST English_linuxclient168_xp1.tar.gz 134673662 RMD160 5e9227ad86c183f90666b4ef10378227a0e1193a SHA1 4060faa4839180b4823ae4669cacc6bf91b1b551 SHA256 e78716a83add4980674f86fd648d374b6086365620bde478b678edfdd4e7e82c
DIST English_linuxclient168_xp2.tar.gz 120144829 RMD160 22619133360c1283db268b0b3adbf16548716ccc SHA1 918db6dbdb9a7b1dfd11377c0db98ac5b1f6a18e SHA256 b8d69ad68c3e3ddf2332176ffd1494682bd9f9d254531720327a62be44e1ac2c
+DIST English_linuxclient169_orig.tar.gz 473297170 RMD160 f475c3562f23fba8213b72039e0934df6d162581 SHA1 c564941af9b2647785304a4751a6c17f6f353c84 SHA256 50932f9647ea7968dbb8f7ab1fc6478035fff0826379a45762c1de8e46d1d2b0
+DIST English_linuxclient169_xp1.tar.gz 477419208 RMD160 7dc1ced38a748a1ada18a77ebc2c9f4ae3493592 SHA1 96c9c233559c38096eb4e08e95fcb6d3157d25bb SHA256 678254a1dbc52c5c3fa628410e3231b05afa3a612433729e7ef12d41bea8fc16
+DIST English_linuxclient169_xp2.tar.gz 506025948 RMD160 10a1fcc9c7683fd2fcbf5add5f9a56e7c0fc3faa SHA1 d70a3a6b9c1a06eceaffd55628dba26b99002f0c SHA256 09715e2b95c025ef7f00d218deec1b1edce501530d8cba51d61097c69699763f
DIST French_linuxclient168_orig.tar.gz 131090499 RMD160 10965e3c88d917e483618bfc8f827f51dd46c5b1 SHA1 db051ba7ac592f7082bef8e78ffe3695aab33ad7 SHA256 f32ed5a759a0a6b49d8f9ef39e313d49a8931725c0d5a61d3a8737d125902315
DIST French_linuxclient168_xp1.tar.gz 151199720 RMD160 acb98760067cbc4674662d03ba78c9085cceccab SHA1 3288397c3017237ad86ff52f4882891bdce406f7 SHA256 b9f8fe388519bc824bd2b0198a6c51b93d8a3534d16718b164b6c983fea08f9a
DIST French_linuxclient168_xp2.tar.gz 133316339 RMD160 10e5b126dde805ac89b15d85c4eea983f85f462b SHA1 f6bd0d2f71120494b2a02bf715630b3e8a9686c4 SHA256 7cc11a8cc7a613714c8d01c42b061baad874001da479db1d26903f494894e98a
@@ -18,5 +21,6 @@ DIST nwn-libelf-0.1.tar.bz2 35932 RMD160 8865c8b2b1915f85eade6ccd2835502519184b1
DIST nwn-libsdl-1.2.13.tar.bz2 151293 RMD160 6e001bff0182867e633c00307d8c84b6b668f4eb SHA1 07c79dc2d852ead0fdc96a2626c00b19edbe6fbc SHA256 c8c0ccb382f99b0203ff284e19459d0b03ebd342e0e41410b55393de59e0dd8c
EBUILD nwn-1.68-r1.ebuild 7498 RMD160 e5be0ec7ad59ab08b43d7a013a96c05e8aeee89c SHA1 299bf4d69fbe86d06c5dafb90978ed3fdb240e5b SHA256 3c9730ca57d2ae73ccf92bf17a735563cda27a3d383c0e08cae218ec252acda6
EBUILD nwn-1.68-r4.ebuild 6815 RMD160 f06ad12238df99d7c52264d060180edae6a58efd SHA1 47b7e4e7401a5ed2e73ab9ececeb80e71cfdd08b SHA256 dd6415b53e33a4a4a58a97c4b84af0f02732616c239eb7a0b1b16837d243f276
-MISC ChangeLog 12224 RMD160 fe9c5302992d640ed59c8aa739bf8a90b895531e SHA1 0bd065a711d3dceced042ab2ef8427789f402d61 SHA256 de6b2531d7b928baf1b81495da027fbfff8b015259163b86980bce1dfe2cbca5
+EBUILD nwn-1.69.ebuild 3685 RMD160 15c00f32fab0f791859a7f7d8b5259b425ad6c34 SHA1 dea19de9ac7a550a621c356e52a6213a84105620 SHA256 40b0dc2197681f9e4f2530dc7b35065f12c9786dde028503cb6244bb5e9b7636
+MISC ChangeLog 12441 RMD160 3dd9c855aa1237cae18c13db3235647b638a4181 SHA1 5a931543fbdf7d9f994b15c287a0ebcd11b3c193 SHA256 c130f39e00190135c338cb93b9c19aa1377da538304014b73c7586f8e0892688
MISC metadata.xml 435 RMD160 57ca0a3136e9c0edf3c1cc5e13f0661f38d4879c SHA1 3e0e513cd5b6910cc4c1bb2bc8556753c4dda722 SHA256 1548515a46157153d708117cfe4fb01d2ba73a5f32a49967d2b70b4702b95604
diff --git a/games-rpg/nwn/nwn-1.69.ebuild b/games-rpg/nwn/nwn-1.69.ebuild
new file mode 100644
index 000000000000..0d4891da1dc0
--- /dev/null
+++ b/games-rpg/nwn/nwn-1.69.ebuild
@@ -0,0 +1,116 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn/nwn-1.69.ebuild,v 1.1 2008/08/02 13:45:12 calchan Exp $
+
+inherit eutils games
+
+MY_PV=${PV//.}
+PATCH_URL_BASE=http://files.bioware.com/neverwinternights/updates/linux/${MY_PV}/English_linuxclient${MY_PV}_
+
+DESCRIPTION="role-playing game set in a huge medieval fantasy world of Dungeons and Dragons"
+HOMEPAGE="http://nwn.bioware.com/downloads/linuxclient.html"
+SRC_URI="http://dev.gentoo.org/~calchan/distfiles/nwn-libsdl-1.2.13.tar.bz2
+ http://dev.gentoo.org/~calchan/distfiles/nwn-libelf-0.1.tar.bz2
+ !sou? ( !hou? ( ${PATCH_URL_BASE}orig.tar.gz ) )
+ sou? ( !hou? ( ${PATCH_URL_BASE}xp1.tar.gz ) )
+ hou? ( ${PATCH_URL_BASE}xp2.tar.gz )"
+
+LICENSE="NWN-EULA"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE="sou hou"
+RESTRICT="mirror strip"
+
+RDEPEND=">=games-rpg/nwn-data-1.29-r3
+ virtual/opengl
+ >=media-libs/libsdl-1.2.5
+ !<games-rpg/nwmouse-0.1-r1
+ x86? (
+ =virtual/libstdc++-3.3
+ x11-libs/libXext
+ x11-libs/libX11 )
+ amd64? (
+ app-emulation/emul-linux-x86-baselibs
+ app-emulation/emul-linux-x86-compat
+ app-emulation/emul-linux-x86-xlibs )"
+DEPEND=""
+
+S=${WORKDIR}/nwn
+
+GAMES_LICENSE_CHECK="yes"
+dir=${GAMES_PREFIX_OPT}/${PN}
+Ddir=${D}/${dir}
+
+die_from_busted_nwn-data() {
+ local use=$*
+ ewarn "You must emerge games-rpg/nwn-data with USE=$use. You can fix this"
+ ewarn "by doing the following:"
+ echo
+ elog "mkdir -p /etc/portage"
+ elog "echo 'games-rpg/nwn-data $use' >> /etc/portage/package.use"
+ elog "emerge --oneshot games-rpg/nwn-data"
+ die "nwn-data requires USE=$use"
+}
+
+pkg_setup() {
+ games_pkg_setup
+ if use sou
+ then
+ built_with_use games-rpg/nwn-data sou || die_from_busted_nwn-data sou
+ fi
+ if use hou
+ then
+ built_with_use games-rpg/nwn-data hou || die_from_busted_nwn-data hou
+ fi
+ built_with_use games-rpg/nwn-data linguas_en || die_from_busted_nwn-data linguas_en
+}
+
+src_unpack() {
+ mkdir -p "${S}"/en
+ cd "${S}"/en
+ unpack ${A}
+ mv lib ..
+}
+
+src_install() {
+ exeinto "${dir}"
+ doexe "${FILESDIR}"/fixinstall
+ sed -i \
+ -e "s:GENTOO_USER:${GAMES_USER}:" \
+ -e "s:GENTOO_GROUP:${GAMES_GROUP}:" \
+ -e "s:GENTOO_DIR:${GAMES_PREFIX_OPT}:" \
+ -e "s:override miles nwm:miles:" \
+ -e "s:chitin.key dialog.tlk nwmain:chitin.key:" \
+ -e "s:^chmod a-x:#chmod a-x:" \
+ "${Ddir}"/fixinstall || die "sed"
+ if use hou || use sou
+ then
+ sed -i \
+ -e "s:chitin.key patch.key:chitin.key:" \
+ "${Ddir}"/fixinstall || die "sed"
+ fi
+ fperms ug+x "${dir}"/fixinstall || die "perms"
+ mv "${S}"/* "${Ddir}"
+ games_make_wrapper nwn ./nwn "${dir}" "${dir}"
+ make_desktop_entry nwn "Neverwinter Nights"
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "The included custom libSDL is patched to enable the following key sequences:"
+ elog " * Left-Alt & Enter - Iconify Window"
+ elog " * Right-Alt & Enter - Toggle between FullScreen/Windowed"
+ elog " * Left-Control & G - Disable the mouse grab that keeps the cursor inside the NWN window"
+ elog " * Right-Control & G - Re-enable the mouse grab to keep the cursor inside the NWN window"
+ elog
+ elog "The NWN linux client is now installed."
+ elog "Proceed with the following step in order to get it working:"
+ elog "Run ${dir}/fixinstall as root"
+ echo
+ ewarn "This version supports only english, see http://nwn.bioware.com/support/patch.html"
+ ewarn "If you were playing with a different language you may want to backup your ~/.nwn and do:"
+ ewarn " mv ~/.nwn/<language> ~/.nwn/en"
+ ewarn "If it does not work, try removing ~/.nwn, start nwn then quit, and re-import all you"
+ ewarn "need (saves, etc...) in ~/.nwn/en, but please do not file a bug."
+}