Gentoo Archives: gentoo-commits

From: "Denis Dupeyron (calchan)" <calchan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-rpg/nwn: ChangeLog nwn-1.69.ebuild
Date: Sat, 02 Aug 2008 13:45:16
Message-Id: E1KPHQ1-0000BI-5c@stork.gentoo.org
1 calchan 08/08/02 13:45:13
2
3 Modified: ChangeLog
4 Added: nwn-1.69.ebuild
5 Log:
6 Version bump, see bug #231704. Massively simplified the ebuild since this version supports only the english language.
7 (Portage version: 2.2_rc5/cvs/Linux 2.6.25-gentoo-r6 i686)
8
9 Revision Changes Path
10 1.69 games-rpg/nwn/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-rpg/nwn/ChangeLog?rev=1.69&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-rpg/nwn/ChangeLog?rev=1.69&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-rpg/nwn/ChangeLog?r1=1.68&r2=1.69
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/games-rpg/nwn/ChangeLog,v
19 retrieving revision 1.68
20 retrieving revision 1.69
21 diff -u -r1.68 -r1.69
22 --- ChangeLog 1 Aug 2008 18:52:28 -0000 1.68
23 +++ ChangeLog 2 Aug 2008 13:45:12 -0000 1.69
24 @@ -1,6 +1,12 @@
25 # ChangeLog for games-rpg/nwn
26 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn/ChangeLog,v 1.68 2008/08/01 18:52:28 calchan Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn/ChangeLog,v 1.69 2008/08/02 13:45:12 calchan Exp $
29 +
30 +*nwn-1.69 (02 Aug 2008)
31 +
32 + 02 Aug 2008; Denis Dupeyron <calchan@g.o> +nwn-1.69.ebuild:
33 + Version bump, see bug #231704. Massively simplified the ebuild since this
34 + version supports only the english language.
35
36 01 Aug 2008; Denis Dupeyron <calchan@g.o> Manifest:
37 Fixed Manifest, bug #227419.
38
39
40
41 1.1 games-rpg/nwn/nwn-1.69.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-rpg/nwn/nwn-1.69.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-rpg/nwn/nwn-1.69.ebuild?rev=1.1&content-type=text/plain
45
46 Index: nwn-1.69.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn/nwn-1.69.ebuild,v 1.1 2008/08/02 13:45:12 calchan Exp $
51
52 inherit eutils games
53
54 MY_PV=${PV//.}
55 PATCH_URL_BASE=http://files.bioware.com/neverwinternights/updates/linux/${MY_PV}/English_linuxclient${MY_PV}_
56
57 DESCRIPTION="role-playing game set in a huge medieval fantasy world of Dungeons and Dragons"
58 HOMEPAGE="http://nwn.bioware.com/downloads/linuxclient.html"
59 SRC_URI="http://dev.gentoo.org/~calchan/distfiles/nwn-libsdl-1.2.13.tar.bz2
60 http://dev.gentoo.org/~calchan/distfiles/nwn-libelf-0.1.tar.bz2
61 !sou? ( !hou? ( ${PATCH_URL_BASE}orig.tar.gz ) )
62 sou? ( !hou? ( ${PATCH_URL_BASE}xp1.tar.gz ) )
63 hou? ( ${PATCH_URL_BASE}xp2.tar.gz )"
64
65 LICENSE="NWN-EULA"
66 SLOT="0"
67 KEYWORDS="-* ~amd64 ~x86"
68 IUSE="sou hou"
69 RESTRICT="mirror strip"
70
71 RDEPEND=">=games-rpg/nwn-data-1.29-r3
72 virtual/opengl
73 >=media-libs/libsdl-1.2.5
74 !<games-rpg/nwmouse-0.1-r1
75 x86? (
76 =virtual/libstdc++-3.3
77 x11-libs/libXext
78 x11-libs/libX11 )
79 amd64? (
80 app-emulation/emul-linux-x86-baselibs
81 app-emulation/emul-linux-x86-compat
82 app-emulation/emul-linux-x86-xlibs )"
83 DEPEND=""
84
85 S=${WORKDIR}/nwn
86
87 GAMES_LICENSE_CHECK="yes"
88 dir=${GAMES_PREFIX_OPT}/${PN}
89 Ddir=${D}/${dir}
90
91 die_from_busted_nwn-data() {
92 local use=$*
93 ewarn "You must emerge games-rpg/nwn-data with USE=$use. You can fix this"
94 ewarn "by doing the following:"
95 echo
96 elog "mkdir -p /etc/portage"
97 elog "echo 'games-rpg/nwn-data $use' >> /etc/portage/package.use"
98 elog "emerge --oneshot games-rpg/nwn-data"
99 die "nwn-data requires USE=$use"
100 }
101
102 pkg_setup() {
103 games_pkg_setup
104 if use sou
105 then
106 built_with_use games-rpg/nwn-data sou || die_from_busted_nwn-data sou
107 fi
108 if use hou
109 then
110 built_with_use games-rpg/nwn-data hou || die_from_busted_nwn-data hou
111 fi
112 built_with_use games-rpg/nwn-data linguas_en || die_from_busted_nwn-data linguas_en
113 }
114
115 src_unpack() {
116 mkdir -p "${S}"/en
117 cd "${S}"/en
118 unpack ${A}
119 mv lib ..
120 }
121
122 src_install() {
123 exeinto "${dir}"
124 doexe "${FILESDIR}"/fixinstall
125 sed -i \
126 -e "s:GENTOO_USER:${GAMES_USER}:" \
127 -e "s:GENTOO_GROUP:${GAMES_GROUP}:" \
128 -e "s:GENTOO_DIR:${GAMES_PREFIX_OPT}:" \
129 -e "s:override miles nwm:miles:" \
130 -e "s:chitin.key dialog.tlk nwmain:chitin.key:" \
131 -e "s:^chmod a-x:#chmod a-x:" \
132 "${Ddir}"/fixinstall || die "sed"
133 if use hou || use sou
134 then
135 sed -i \
136 -e "s:chitin.key patch.key:chitin.key:" \
137 "${Ddir}"/fixinstall || die "sed"
138 fi
139 fperms ug+x "${dir}"/fixinstall || die "perms"
140 mv "${S}"/* "${Ddir}"
141 games_make_wrapper nwn ./nwn "${dir}" "${dir}"
142 make_desktop_entry nwn "Neverwinter Nights"
143 prepgamesdirs
144 }
145
146 pkg_postinst() {
147 games_pkg_postinst
148 elog "The included custom libSDL is patched to enable the following key sequences:"
149 elog " * Left-Alt & Enter - Iconify Window"
150 elog " * Right-Alt & Enter - Toggle between FullScreen/Windowed"
151 elog " * Left-Control & G - Disable the mouse grab that keeps the cursor inside the NWN window"
152 elog " * Right-Control & G - Re-enable the mouse grab to keep the cursor inside the NWN window"
153 elog
154 elog "The NWN linux client is now installed."
155 elog "Proceed with the following step in order to get it working:"
156 elog "Run ${dir}/fixinstall as root"
157 echo
158 ewarn "This version supports only english, see http://nwn.bioware.com/support/patch.html"
159 ewarn "If you were playing with a different language you may want to backup your ~/.nwn and do:"
160 ewarn " mv ~/.nwn/<language> ~/.nwn/en"
161 ewarn "If it does not work, try removing ~/.nwn, start nwn then quit, and re-import all you"
162 ewarn "need (saves, etc...) in ~/.nwn/en, but please do not file a bug."
163 }