Gentoo Archives: gentoo-commits

From: "Michael Sterrett (mr_bones_)" <mr_bones_@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-action/xshipwars: ChangeLog xshipwars-2.6.1.ebuild
Date: Thu, 31 Dec 2009 23:02:29
Message-Id: E1NQU2E-0000l9-V0@stork.gentoo.org
1 mr_bones_ 09/12/31 23:02:26
2
3 Modified: ChangeLog
4 Added: xshipwars-2.6.1.ebuild
5 Log:
6 version bump (bug #292052)
7 (Portage version: 2.1.6.13/cvs/Linux i686)
8
9 Revision Changes Path
10 1.25 games-action/xshipwars/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-action/xshipwars/ChangeLog?rev=1.25&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-action/xshipwars/ChangeLog?rev=1.25&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-action/xshipwars/ChangeLog?r1=1.24&r2=1.25
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/games-action/xshipwars/ChangeLog,v
19 retrieving revision 1.24
20 retrieving revision 1.25
21 diff -u -r1.24 -r1.25
22 --- ChangeLog 6 Nov 2009 20:43:51 -0000 1.24
23 +++ ChangeLog 31 Dec 2009 23:02:26 -0000 1.25
24 @@ -1,6 +1,13 @@
25 # ChangeLog for games-action/xshipwars
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/games-action/xshipwars/ChangeLog,v 1.24 2009/11/06 20:43:51 mr_bones_ Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/games-action/xshipwars/ChangeLog,v 1.25 2009/12/31 23:02:26 mr_bones_ Exp $
29 +
30 +*xshipwars-2.6.1 (31 Dec 2009)
31 +
32 + 31 Dec 2009; Michael Sterrett <mr_bones_@g.o>
33 + +xshipwars-2.6.1.ebuild, +files/xshipwars-2.6.1-64bit.patch,
34 + +files/xshipwars-2.6.1-build.patch:
35 + version bump (bug #292052)
36
37 06 Nov 2009; Michael Sterrett <mr_bones_@g.o>
38 xshipwars-2.5.5.ebuild:
39
40
41
42 1.1 games-action/xshipwars/xshipwars-2.6.1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-action/xshipwars/xshipwars-2.6.1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-action/xshipwars/xshipwars-2.6.1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: xshipwars-2.6.1.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/games-action/xshipwars/xshipwars-2.6.1.ebuild,v 1.1 2009/12/31 23:02:26 mr_bones_ Exp $
52
53 EAPI=2
54 inherit eutils games
55
56 MY_P=xsw-${PV}
57 DESCRIPTION="massively multi-player, ultra graphical, space-oriented gaming system designed for network play"
58 HOMEPAGE="http://wolfsinger.com/~wolfpack/XShipWars/"
59 SRC_URI="http://wolfsinger.com/~wolfpack/XShipWars/${MY_P}.tar.bz2
60 http://wolfsinger.com/~wolfpack/XShipWars/xsw-data-${PV}.tar.bz2
61 mirror://gentoo/stimages-1.11.1.tar.bz2
62 mirror://gentoo/stsounds-1.6.4.tar.bz2"
63
64 LICENSE="GPL-2 xshipwars"
65 SLOT="0"
66 KEYWORDS="~amd64 ~ppc ~x86"
67 IUSE="joystick yiff debug"
68
69 RDEPEND="x11-libs/libXpm
70 joystick? ( media-libs/libjsw )
71 yiff? ( media-libs/yiff )"
72 DEPEND="${RDEPEND}
73 x11-proto/xextproto"
74
75 S=${WORKDIR}/${MY_P}
76
77 src_prepare() {
78 epatch \
79 "${FILESDIR}"/${P}-build.patch \
80 "${FILESDIR}"/${P}-64bit.patch
81 sed -i \
82 -e "/^BINDIR/s:=.*:=${GAMES_BINDIR}:" \
83 -e "/^DATADIR/s:=.*:=${GAMES_DATADIR}:" \
84 */Makefile.install.UNIX || die
85 sed -i \
86 -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \
87 client/xsw.h || die
88 }
89
90 src_configure() {
91 :
92 }
93
94 src_compile() {
95 local myconf=" \
96 --disable-arch-i486 \
97 --disable-arch-i586 \
98 --disable-arch-i686 \
99 --disable-arch-pentiumpro \
100 --disable-ESounD \
101 $(use_enable joystick libjsw) \
102 $(use_enable debug) \
103 --enable-X11 \
104 --enable-libXpm \
105 $(use_enable yiff Y2) \
106 "
107 # xsw uses --{en,dis}able=FEATURE syntax
108 myconf=${myconf//able-/able=}
109
110 local x
111 for x in client monitor unvedit ; do #server
112 ./configure.${x} Linux --prefix="${GAMES_PREFIX}" ${myconf} || die
113 emake -j1 -f Makefile.${x} all || die
114 done
115 }
116
117 src_install() {
118 local x
119 for x in client monitor unvedit ; do #server
120 emake -j1 DESTDIR="${D}" -f Makefile.${x} install || die
121 done
122
123 insinto "${GAMES_DATADIR}"/${PN}
124 doins -r "${WORKDIR}"/{etc,images,sounds} || die
125
126 dodoc AUTHORS CREDITS README
127 prepgamesdirs
128 }
129
130 pkg_postinst() {
131 games_pkg_postinst
132 echo
133 elog "Before playing, you should get a copy of the installed "
134 elog "global XShipWars client configuration file and copy it to "
135 elog "your home directory:"
136 echo
137 elog "# mkdir ~/.shipwars/"
138 elog "# cd /usr/share/games/xshipwars/etc/"
139 elog "# cp xsw.ini ~/.shipwars/"
140 elog "# cp universes.ini ~/.shipwars"
141 echo
142 elog "You will probably need to edit xsw.ini to fit your needs."
143 echo
144 elog "Then type 'xsw &' to start the game"
145 echo
146 elog "Type 'monitor &' to start the Universe Monitor"
147 elog "Type 'unvedit &' to start the Universe Editor"
148 }