Gentoo Archives: gentoo-commits

From: "Michal Gorny (mgorny)" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-action/descent3: descent3-1.4.0b-r2.ebuild ChangeLog
Date: Fri, 27 Jun 2014 11:29:27
Message-Id: 20140627112922.77A8B2004E@flycatcher.gentoo.org
1 mgorny 14/06/27 11:29:22
2
3 Modified: ChangeLog
4 Added: descent3-1.4.0b-r2.ebuild
5 Log:
6 Support multilib packages in dependencies. Update/fix dependencies.
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
9
10 Revision Changes Path
11 1.32 games-action/descent3/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-action/descent3/ChangeLog?rev=1.32&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-action/descent3/ChangeLog?rev=1.32&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-action/descent3/ChangeLog?r1=1.31&r2=1.32
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/games-action/descent3/ChangeLog,v
20 retrieving revision 1.31
21 retrieving revision 1.32
22 diff -u -r1.31 -r1.32
23 --- ChangeLog 14 Aug 2013 11:27:41 -0000 1.31
24 +++ ChangeLog 27 Jun 2014 11:29:22 -0000 1.32
25 @@ -1,6 +1,11 @@
26 # ChangeLog for games-action/descent3
27 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/games-action/descent3/ChangeLog,v 1.31 2013/08/14 11:27:41 patrick Exp $
29 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/games-action/descent3/ChangeLog,v 1.32 2014/06/27 11:29:22 mgorny Exp $
31 +
32 +*descent3-1.4.0b-r2 (27 Jun 2014)
33 +
34 + 27 Jun 2014; Michał Górny <mgorny@g.o> +descent3-1.4.0b-r2.ebuild:
35 + Support multilib packages in dependencies. Update/fix dependencies.
36
37 14 Aug 2013; Patrick Lauer <patrick@g.o> descent3-1.4.0b-r1.ebuild:
38 Whitespace / syntax fix
39
40
41
42 1.1 games-action/descent3/descent3-1.4.0b-r2.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-action/descent3/descent3-1.4.0b-r2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-action/descent3/descent3-1.4.0b-r2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: descent3-1.4.0b-r2.ebuild
48 ===================================================================
49 # Copyright 1999-2014 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/games-action/descent3/descent3-1.4.0b-r2.ebuild,v 1.1 2014/06/27 11:29:22 mgorny Exp $
52
53 EAPI=5
54
55 inherit eutils unpacker cdrom multilib games
56
57 IUSE="nocd videos"
58 DESCRIPTION="Descent 3 - 3-Dimensional indoor/outdoor spaceship combat"
59 HOMEPAGE="http://www.lokigames.com/products/descent3/"
60 SRC_URI="mirror://lokigames/${PN}/${PN}-1.4.0a-x86.run
61 mirror://lokigames/${PN}/${P}-x86.run"
62
63 LICENSE="LOKI-EULA"
64 SLOT="0"
65 KEYWORDS="~amd64 ~x86"
66 RESTRICT="strip"
67
68 DEPEND=""
69 RDEPEND="sys-libs/glibc
70 || (
71 (
72 media-libs/libsdl[abi_x86_32(-)]
73 media-libs/smpeg[abi_x86_32(-)]
74 virtual/opengl[abi_x86_32(-)]
75 x11-libs/libX11[abi_x86_32(-)]
76 x11-libs/libXext[abi_x86_32(-)]
77 )
78 amd64? (
79 app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
80 app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
81 app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
82 )
83 )"
84
85 dir=${GAMES_PREFIX_OPT}/${PN}
86 Ddir=${D}/${dir}
87
88 pkg_setup() {
89 games_pkg_setup
90 if use videos ; then
91 ewarn "The installed game takes about 1.2GB of space!"
92 elif use nocd ; then
93 ewarn "The installed game takes about 510MB of space!"
94 else
95 ewarn "The installed game takes about 220MB of space!"
96 fi
97 }
98
99 src_unpack() {
100 if use videos ; then
101 cdrom_get_cds missions/d3.mn3 movies/level1.mve
102 else
103 cdrom_get_cds missions/d3.mn3
104 fi
105 mkdir -p "${S}"/{a,b} || die
106 cd "${S}"/a || die
107 unpack_makeself ${PN}-1.4.0a-x86.run
108 cd "${S}"/b || die
109 unpack_makeself ${P}-x86.run
110 }
111
112 src_install() {
113 einfo "Copying files... this may take a while..."
114 exeinto "${dir}"
115 doexe ${CDROM_ROOT}/bin/x86/glibc-2.1/{${PN},nettest}
116 insinto "${dir}"
117 doins ${CDROM_ROOT}/{FAQ.txt,README{,.mercenary},d3.hog,icon.{bmp,xpm}}
118
119 cd "${Ddir}" || die
120 # TODO: move this to src_unpack where it belongs
121 tar xzf ${CDROM_ROOT}/data.tar.gz || die "uncompressing data"
122 tar xzf ${CDROM_ROOT}/shared.tar.gz || die "uncompressing shared"
123
124 if use nocd; then
125 doins -r ${CDROM_ROOT}/missions
126 fi
127
128 if use videos ; then
129 cdrom_load_next_cd
130 doins -r ${CDROM_ROOT}/movies
131 fi
132
133 cd "${S}"/a || die
134 bin/Linux/x86/loki_patch --verify patch.dat || die
135 bin/Linux/x86/loki_patch patch.dat "${Ddir}" >& /dev/null || die "patching a"
136 cd "${S}"/b || die
137 bin/Linux/x86/loki_patch --verify patch.dat || die
138 bin/Linux/x86/loki_patch patch.dat "${Ddir}" >& /dev/null || die "patching b"
139
140 # now, since these files are coming off a cd, the times/sizes/md5sums wont
141 # be different ... that means portage will try to unmerge some files (!)
142 # we run touch on ${D} so as to make sure portage doesnt do any such thing
143 find "${Ddir}" -exec touch '{}' +
144
145 games_make_wrapper descent3 ./descent3.dynamic "${dir}" "${dir}"
146 newicon ${CDROM_ROOT}/icon.xpm ${PN}.xpm
147
148 # Fix for 2.6 kernel crash
149 cd "${Ddir}" || die
150 ln -sf ppics.hog PPics.Hog
151
152 prepgamesdirs
153 make_desktop_entry ${PN} "Descent 3" ${PN}
154 }
155
156 pkg_postinst() {
157 games_pkg_postinst
158 elog "To play the game run:"
159 elog " descent3"
160 echo
161 }