1 |
mr_bones_ 12/05/28 02:45:04 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: uqm-0.7.0-r1.ebuild |
5 |
Log: |
6 |
correct install location for addon files (bug #417705) |
7 |
|
8 |
(Portage version: 2.1.10.49/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.33 games-strategy/uqm/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/uqm/ChangeLog?rev=1.33&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/uqm/ChangeLog?rev=1.33&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/uqm/ChangeLog?r1=1.32&r2=1.33 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/games-strategy/uqm/ChangeLog,v |
20 |
retrieving revision 1.32 |
21 |
retrieving revision 1.33 |
22 |
diff -u -r1.32 -r1.33 |
23 |
--- ChangeLog 3 Oct 2011 19:58:21 -0000 1.32 |
24 |
+++ ChangeLog 28 May 2012 02:45:04 -0000 1.33 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for games-strategy/uqm |
27 |
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/uqm/ChangeLog,v 1.32 2011/10/03 19:58:21 josejx Exp $ |
29 |
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/uqm/ChangeLog,v 1.33 2012/05/28 02:45:04 mr_bones_ Exp $ |
31 |
+ |
32 |
+*uqm-0.7.0-r1 (28 May 2012) |
33 |
+ |
34 |
+ 28 May 2012; Michael Sterrett <mr_bones_@g.o> +uqm-0.7.0-r1.ebuild: |
35 |
+ correct install location for addon files (bug #417705) |
36 |
|
37 |
03 Oct 2011; Joseph Jezak <josejx@g.o> uqm-0.7.0.ebuild: |
38 |
Marked ppc/ppc64 stable for bug #379419. |
39 |
|
40 |
|
41 |
|
42 |
1.1 games-strategy/uqm/uqm-0.7.0-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/uqm/uqm-0.7.0-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/uqm/uqm-0.7.0-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: uqm-0.7.0-r1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2012 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/games-strategy/uqm/uqm-0.7.0-r1.ebuild,v 1.1 2012/05/28 02:45:04 mr_bones_ Exp $ |
52 |
|
53 |
EAPI=2 |
54 |
inherit eutils multilib games |
55 |
|
56 |
DESCRIPTION="The Ur-Quan Masters: Port of Star Control 2" |
57 |
HOMEPAGE="http://sc2.sourceforge.net/" |
58 |
SRC_URI="mirror://sourceforge/sc2/${P}-source.tgz |
59 |
mirror://sourceforge/sc2/${P}-content.uqm |
60 |
music? ( mirror://sourceforge/sc2/${P}-3domusic.uqm ) |
61 |
voice? ( mirror://sourceforge/sc2/${P}-voice.uqm ) |
62 |
remix? ( mirror://sourceforge/sc2/${PN}-remix-pack1.zip \ |
63 |
mirror://sourceforge/sc2/${PN}-remix-pack2.zip \ |
64 |
mirror://sourceforge/sc2/${PN}-remix-pack3.zip )" |
65 |
|
66 |
LICENSE="GPL-2" |
67 |
SLOT="0" |
68 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
69 |
IUSE="music opengl remix voice" |
70 |
|
71 |
RDEPEND="media-libs/libvorbis |
72 |
virtual/jpeg |
73 |
>=media-libs/libpng-1.4 |
74 |
media-libs/libsdl |
75 |
media-libs/sdl-image |
76 |
media-libs/libogg |
77 |
media-libs/libvorbis |
78 |
media-libs/libmikmod" |
79 |
DEPEND="${RDEPEND} |
80 |
app-arch/unzip" |
81 |
|
82 |
src_unpack() { |
83 |
unpack ${P}-source.tgz |
84 |
} |
85 |
|
86 |
src_prepare() { |
87 |
local myopengl |
88 |
|
89 |
# Because the new 0.6.* source archives have |
90 |
# everything in a subdir called "sc2". This, |
91 |
# I have found, is the simplest way to get |
92 |
# around that problem. (That doesn't change |
93 |
# the fact that the rest of this ebuild is |
94 |
# very nasty. I was not able to clean it up.) |
95 |
mv ./sc2/* ./ |
96 |
|
97 |
use opengl \ |
98 |
&& myopengl=opengl \ |
99 |
|| myopengl=pure |
100 |
|
101 |
cat <<-EOF > config.state |
102 |
CHOICE_debug_VALUE='nodebug' |
103 |
CHOICE_graphics_VALUE='${myopengl}' |
104 |
CHOICE_sound_VALUE='mixsdl' |
105 |
CHOICE_accel_VALUE='plainc' |
106 |
INPUT_install_prefix_VALUE='${GAMES_PREFIX}' |
107 |
INPUT_install_bindir_VALUE='\$prefix/bin' |
108 |
INPUT_install_libdir_VALUE='\$prefix/lib' |
109 |
INPUT_install_sharedir_VALUE='${GAMES_DATADIR}/' |
110 |
EOF |
111 |
|
112 |
# Take out the read so we can be non-interactive. |
113 |
sed -i \ |
114 |
-e '/read CHOICE/d' build/unix/menu_functions \ |
115 |
|| die "sed menu_functions failed" |
116 |
|
117 |
# support the user's CFLAGS. |
118 |
sed -i \ |
119 |
-e "s/-O3/${CFLAGS}/" build/unix/build.config \ |
120 |
|| die "sed build.config failed" |
121 |
|
122 |
sed -i \ |
123 |
-e "s:@INSTALL_LIBDIR@:$(games_get_libdir)/:g" build/unix/uqm-wrapper.in \ |
124 |
|| die "sed uqm-wrapper.in failed" |
125 |
} |
126 |
|
127 |
src_compile() { |
128 |
./build.sh uqm || die "build failed" |
129 |
} |
130 |
|
131 |
src_install() { |
132 |
# Using the included install scripts seems quite painful. |
133 |
# This manual install is totally fragile but maybe they'll |
134 |
# use a sane build system for the next release. |
135 |
newgamesbin uqm-wrapper uqm || die "newgamesbin failed" |
136 |
exeinto "$(games_get_libdir)"/${PN} |
137 |
doexe uqm || die "doexe failed" |
138 |
|
139 |
insinto "${GAMES_DATADIR}"/${PN}/content/packages |
140 |
doins "${DISTDIR}"/${P}-content.uqm || die "doins failed" |
141 |
echo ${P} > "${D}${GAMES_DATADIR}"/${PN}/content/version \ |
142 |
|| die "creating version file failed" |
143 |
|
144 |
insinto "${GAMES_DATADIR}"/${PN}/content/addons |
145 |
if use music; then |
146 |
doins "${DISTDIR}"/${P}-3domusic.uqm || die "doins failed" |
147 |
fi |
148 |
|
149 |
if use voice; then |
150 |
doins "${DISTDIR}"/${P}-voice.uqm || die "doins failed" |
151 |
fi |
152 |
|
153 |
if use remix; then |
154 |
insinto "${GAMES_DATADIR}"/${PN}/content/addons/uqmremix |
155 |
doins "${DISTDIR}"/${PN}-remix-pack{1,2,3}.zip || die "doins failed" |
156 |
fi |
157 |
|
158 |
dodoc AUTHORS ChangeLog Contributing README WhatsNew doc/users/manual.txt |
159 |
docinto devel |
160 |
dodoc doc/devel/[!n]* |
161 |
docinto devel/netplay |
162 |
dodoc doc/devel/netplay/* |
163 |
make_desktop_entry uqm "The Ur-Quan Masters" |
164 |
prepgamesdirs |
165 |
|
166 |
} |
167 |
|
168 |
pkg_postinst() { |
169 |
games_pkg_postinst |
170 |
if use remix ; then |
171 |
echo |
172 |
elog "To hear all the remixed music made by the The Ur-Quan Masters" |
173 |
elog "project's Precursors Team instead of the original ones," |
174 |
elog "start the game with:" |
175 |
elog " --addon uqmremix" |
176 |
echo |
177 |
fi |
178 |
} |