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/heretic2: heretic2-1.06c-r1.ebuild ChangeLog
Date: Wed, 25 Jun 2014 13:02:01
Message-Id: 20140625130157.88AFC2004E@flycatcher.gentoo.org
1 mgorny 14/06/25 13:01:57
2
3 Modified: ChangeLog
4 Added: heretic2-1.06c-r1.ebuild
5 Log:
6 Support multilib dependencies aside to emul-linux-x86.
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
9
10 Revision Changes Path
11 1.12 games-action/heretic2/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-action/heretic2/ChangeLog?rev=1.12&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-action/heretic2/ChangeLog?rev=1.12&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-action/heretic2/ChangeLog?r1=1.11&r2=1.12
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/games-action/heretic2/ChangeLog,v
20 retrieving revision 1.11
21 retrieving revision 1.12
22 diff -u -r1.11 -r1.12
23 --- ChangeLog 5 Feb 2012 05:00:48 -0000 1.11
24 +++ ChangeLog 25 Jun 2014 13:01:57 -0000 1.12
25 @@ -1,6 +1,11 @@
26 # ChangeLog for games-action/heretic2
27 -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/games-action/heretic2/ChangeLog,v 1.11 2012/02/05 05:00:48 vapier Exp $
29 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/games-action/heretic2/ChangeLog,v 1.12 2014/06/25 13:01:57 mgorny Exp $
31 +
32 +*heretic2-1.06c-r1 (25 Jun 2014)
33 +
34 + 25 Jun 2014; Michał Górny <mgorny@g.o> +heretic2-1.06c-r1.ebuild:
35 + Support multilib dependencies aside to emul-linux-x86.
36
37 05 Feb 2012; Mike Frysinger <vapier@g.o> heretic2-1.06c.ebuild:
38 Move to new unpacker eclass for unpack_makeself.
39 @@ -39,4 +44,3 @@
40 03 Oct 2006; Tristan Heaven <nyhm@g.o> +metadata.xml,
41 +heretic2-1.06c.ebuild:
42 Initial commit. Modified ebuild from bug #136869 by Anton Romanov.
43 -
44
45
46
47 1.1 games-action/heretic2/heretic2-1.06c-r1.ebuild
48
49 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-action/heretic2/heretic2-1.06c-r1.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-action/heretic2/heretic2-1.06c-r1.ebuild?rev=1.1&content-type=text/plain
51
52 Index: heretic2-1.06c-r1.ebuild
53 ===================================================================
54 # Copyright 1999-2014 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/games-action/heretic2/heretic2-1.06c-r1.ebuild,v 1.1 2014/06/25 13:01:57 mgorny Exp $
57
58 EAPI=5
59
60 inherit eutils unpacker cdrom multilib games
61
62 DESCRIPTION="Third-person classic magical action-adventure game"
63 HOMEPAGE="http://lokigames.com/products/heretic2/
64 http://www.ravensoft.com/heretic2.html"
65 SRC_URI="mirror://lokigames/${PN}/${P/%?/b}-unified-x86.run
66 mirror://lokigames/${PN}/${P}-unified-x86.run
67 mirror://lokigames/${PN}/${PN}-maps-1.0.run"
68
69 LICENSE="LOKI-EULA"
70 SLOT="0"
71 KEYWORDS="~amd64 ~x86"
72 IUSE=""
73 RESTRICT="strip"
74 QA_TEXTRELS="${GAMES_PREFIX_OPT:1}/${PN}/base/*.so"
75
76 DEPEND="games-util/loki_patch"
77 RDEPEND="virtual/opengl
78 amd64? (
79 || (
80 app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
81 virtual/opengl[abi_x86_32(-)]
82 )
83 || (
84 app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
85 (
86 x11-libs/libX11[abi_x86_32(-)]
87 x11-libs/libXext[abi_x86_32(-)]
88 )
89 )
90 )
91 x86? (
92 x11-libs/libX11
93 x11-libs/libXext
94 )"
95
96 S=${WORKDIR}
97
98 src_unpack() {
99 cdrom_get_cds bin/x86/glibc-2.1/${PN}
100 mkdir ${A}
101
102 local f
103 for f in * ; do
104 cd "${S}"/${f}
105 unpack_makeself ${f}
106 done
107 }
108
109 src_install() {
110 has_multilib_profile && ABI=x86
111
112 local dir=${GAMES_PREFIX_OPT}/${PN}
113
114 cd "${CDROM_ROOT}"
115
116 insinto "${dir}"
117 doins -r base help Manual.html README README.more
118
119 exeinto "${dir}"
120 doexe bin/x86/glibc-2.1/${PN}
121
122 games_make_wrapper ${PN} ./${PN} "${dir}" "${dir}"
123 sed -i \
124 -e 's/^exec /__GL_ExtensionStringVersion=17700 exec /' \
125 "${D}/${GAMES_BINDIR}/${PN}" || die
126 newicon icon.xpm ${PN}.xpm
127 make_desktop_entry ${PN} "Heretic II"
128
129 cd "${D}/${dir}"
130 ln -s "${CDROM_ROOT}"/*.gz .
131 unpack ./*.gz
132 rm -f *.gz
133
134 local d
135 for d in "${S}"/* ; do
136 pushd "${d}" > /dev/null
137 loki_patch patch.dat "${D}/${dir}" || die "loki_patch ${d} failed"
138 popd > /dev/null
139 done
140
141 rmdir gl_drivers
142 sed -i \
143 "128i set gl_driver \"/usr/$(get_libdir)/libGL.so\"" \
144 base/default.cfg \
145 || die "sed failed"
146
147 prepgamesdirs
148 }