1 |
mr_bones_ 09/01/23 07:34:17 |
2 |
|
3 |
Modified: ChangeLog smac-6.0a.ebuild |
4 |
Log: |
5 |
integrate patch from Thomas Juerges for ppc support (bug #249427) |
6 |
(Portage version: 2.1.6.4/cvs/Linux 2.6.28.1 i686) |
7 |
|
8 |
Revision Changes Path |
9 |
1.16 games-strategy/smac/ChangeLog |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/smac/ChangeLog?rev=1.16&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/smac/ChangeLog?rev=1.16&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/smac/ChangeLog?r1=1.15&r2=1.16 |
14 |
|
15 |
Index: ChangeLog |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo-x86/games-strategy/smac/ChangeLog,v |
18 |
retrieving revision 1.15 |
19 |
retrieving revision 1.16 |
20 |
diff -u -r1.15 -r1.16 |
21 |
--- ChangeLog 13 Sep 2008 06:24:30 -0000 1.15 |
22 |
+++ ChangeLog 23 Jan 2009 07:34:17 -0000 1.16 |
23 |
@@ -1,6 +1,9 @@ |
24 |
# ChangeLog for games-strategy/smac |
25 |
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
26 |
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/smac/ChangeLog,v 1.15 2008/09/13 06:24:30 maekke Exp $ |
27 |
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
28 |
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/smac/ChangeLog,v 1.16 2009/01/23 07:34:17 mr_bones_ Exp $ |
29 |
+ |
30 |
+ 23 Jan 2009; Michael Sterrett <mr_bones_@g.o> smac-6.0a.ebuild: |
31 |
+ integrate patch from Thomas Juerges for ppc support (bug #249427) |
32 |
|
33 |
13 Sep 2008; Markus Meier <maekke@g.o> smac-6.0a.ebuild: |
34 |
add ~amd64, bug #188602 |
35 |
|
36 |
|
37 |
|
38 |
1.18 games-strategy/smac/smac-6.0a.ebuild |
39 |
|
40 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/smac/smac-6.0a.ebuild?rev=1.18&view=markup |
41 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/smac/smac-6.0a.ebuild?rev=1.18&content-type=text/plain |
42 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/smac/smac-6.0a.ebuild?r1=1.17&r2=1.18 |
43 |
|
44 |
Index: smac-6.0a.ebuild |
45 |
=================================================================== |
46 |
RCS file: /var/cvsroot/gentoo-x86/games-strategy/smac/smac-6.0a.ebuild,v |
47 |
retrieving revision 1.17 |
48 |
retrieving revision 1.18 |
49 |
diff -u -r1.17 -r1.18 |
50 |
--- smac-6.0a.ebuild 13 Sep 2008 06:24:30 -0000 1.17 |
51 |
+++ smac-6.0a.ebuild 23 Jan 2009 07:34:17 -0000 1.18 |
52 |
@@ -1,17 +1,20 @@ |
53 |
-# Copyright 1999-2008 Gentoo Foundation |
54 |
+# Copyright 1999-2009 Gentoo Foundation |
55 |
# Distributed under the terms of the GNU General Public License v2 |
56 |
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/smac/smac-6.0a.ebuild,v 1.17 2008/09/13 06:24:30 maekke Exp $ |
57 |
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/smac/smac-6.0a.ebuild,v 1.18 2009/01/23 07:34:17 mr_bones_ Exp $ |
58 |
|
59 |
+EAPI=2 |
60 |
inherit eutils games |
61 |
|
62 |
DESCRIPTION="Linux port of the popular strategy game from Firaxis" |
63 |
HOMEPAGE="http://www.lokigames.com/products/smac/" |
64 |
-SRC_URI="mirror://lokigames/${PN}/${P}-x86.run" |
65 |
+SRC_URI="x86? ( mirror://lokigames/${PN}/${P}-x86.run ) |
66 |
+ amd64? ( mirror://lokigames/${PN}/${P}-x86.run ) |
67 |
+ ppc? ( http://mirrors.dotsrc.org/lokigames/installers/${PN}/${PN}-install-ppc.run )" |
68 |
|
69 |
LICENSE="LOKI-EULA" |
70 |
SLOT="0" |
71 |
-KEYWORDS="~amd64 ~x86" |
72 |
-IUSE="videos" |
73 |
+KEYWORDS="~ppc ~amd64 ~x86" |
74 |
+IUSE="+videos" |
75 |
RESTRICT="strip" |
76 |
|
77 |
DEPEND="games-util/loki_patch" |
78 |
@@ -20,7 +23,7 @@ |
79 |
x11-libs/libXext |
80 |
x11-libs/libXau |
81 |
x11-libs/libXdmcp |
82 |
- sys-libs/lib-compat-loki |
83 |
+ !ppc? ( sys-libs/lib-compat-loki ) |
84 |
media-libs/libsdl |
85 |
media-libs/sdl-ttf |
86 |
media-libs/sdl-mixer |
87 |
@@ -35,13 +38,14 @@ |
88 |
cdrom_get_cds Alien_Crossfire_Manual.pdf |
89 |
mkdir -p "${S}"/a |
90 |
cd "${S}"/a |
91 |
- unpack_makeself ${P}-x86.run |
92 |
+ use x86 || use amd64 && unpack_makeself ${P}-x86.run |
93 |
+ use ppc && unpack_makeself ${PN}-install-ppc.run |
94 |
} |
95 |
|
96 |
src_install() { |
97 |
einfo "Copying files... this may take a while..." |
98 |
exeinto "${dir}" |
99 |
- doexe "${CDROM_ROOT}"/bin/x86/{smac,smacx,smacpack} |
100 |
+ doexe "${CDROM_ROOT}"/bin/x86/{smac,smacx,smacpack} || die "doexe failed" |
101 |
|
102 |
insinto "${dir}" |
103 |
doins ${CDROM_ROOT}/{{Alien_Crossfire,Alpha_Centauri}_Manual.pdf,QuickStart.txt,README,icon.{bmp,xpm}} |
104 |
@@ -50,41 +54,47 @@ |
105 |
tar xzf "${CDROM_ROOT}"/data.tar.gz || die "unpack" |
106 |
insinto "${dir}"/data |
107 |
doins "${CDROM_ROOT}"/data/*.{pcx,cvr,flc,gif} || die "copying data" |
108 |
- doins -r "${CDROM_ROOT}"/data/facs || die "copying fac-data" |
109 |
- doins -r "${CDROM_ROOT}"/data/fx || die "copying fx-data" |
110 |
- doins -r "${CDROM_ROOT}"/data/projs || die "copying projects-data" |
111 |
- doins -r "${CDROM_ROOT}"/data/techs || die "copying tech-data" |
112 |
- doins -r "${CDROM_ROOT}"/data/voices || die "copying voices" |
113 |
+ doins -r "${CDROM_ROOT}"/data/{facs,fx,projs,techs,voices} \ |
114 |
+ || die "doins failed" |
115 |
|
116 |
if use videos ; then |
117 |
doins -r "${CDROM_ROOT}"/data/movies || die "copying movies" |
118 |
fi |
119 |
|
120 |
cd "${S}"/a |
121 |
+ if use ppc ; then |
122 |
+ cd ${P}-ppc |
123 |
+ fi |
124 |
loki_patch --verify patch.dat |
125 |
loki_patch patch.dat "${Ddir}" >& /dev/null || die "patching" |
126 |
|
127 |
# now, since these files are coming off a cd, the times/sizes/md5sums wont |
128 |
# be different ... that means portage will try to unmerge some files (!) |
129 |
# we run touch on ${D} so as to make sure portage doesnt do any such thing |
130 |
- find "${Ddir}" -exec touch '{}' \; |
131 |
+ find "${Ddir}" -exec touch '{}' + |
132 |
|
133 |
newicon "${CDROM_ROOT}"/icon.xpm smac.xpm |
134 |
|
135 |
+ games_make_wrapper ${PN}pack ./${PN}pack "${dir}" "${dir}" |
136 |
games_make_wrapper ${PN} ./${PN} "${dir}" "${dir}" |
137 |
games_make_wrapper ${PN}x ./${PN}x "${dir}" "${dir}" |
138 |
+ make_desktop_entry smacpack "Sid Meier's SMAC Planetary Pack" smacpack |
139 |
make_desktop_entry smac "Sid Meier's Alpha Centauri" smac |
140 |
make_desktop_entry smacx "Sid Meier's Alpha Centauri - Alien Crossfire" smac |
141 |
prepgamesdirs |
142 |
|
143 |
- einfo "Linking libs provided by 'sys-libs/lib-compat-loki' to '${dir}'." |
144 |
- dosym /lib/loki_ld-linux.so.2 "${dir}"/ld-linux.so.2 && \ |
145 |
- dosym /usr/lib/loki_libc.so.6 "${dir}"/libc.so.6 && \ |
146 |
- dosym /usr/lib/loki_libnss_files.so.2 "${dir}"/libnss_files.so.2 || die "dosym failed" |
147 |
+ if use x86 || use amd64 ; then |
148 |
+ einfo "Linking libs provided by 'sys-libs/lib-compat-loki' to '${dir}'." |
149 |
+ dosym /lib/loki_ld-linux.so.2 "${dir}"/ld-linux.so.2 && \ |
150 |
+ dosym /usr/lib/loki_libc.so.6 "${dir}"/libc.so.6 && \ |
151 |
+ dosym /usr/lib/loki_libnss_files.so.2 "${dir}"/libnss_files.so.2 || die "dosym failed" |
152 |
+ fi |
153 |
} |
154 |
|
155 |
pkg_postinst() { |
156 |
games_pkg_postinst |
157 |
+ elog "To start Sid Meyer's SMAC Planetary Pack run:" |
158 |
+ elog " smac" |
159 |
elog "To play Sid Meyer's Alpha Centauri run:" |
160 |
elog " smac" |
161 |
elog "To play Alien Crossfire run:" |