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-roguelike/angband: metadata.xml ChangeLog angband-3.1.2_p2.ebuild
Date: Tue, 16 Feb 2010 22:25:17
Message-Id: E1NhVr0-0004xQ-VR@stork.gentoo.org
1 mr_bones_ 10/02/16 22:25:14
2
3 Modified: metadata.xml ChangeLog
4 Added: angband-3.1.2_p2.ebuild
5 Log:
6 version bump (bug #299406) with development from Widget and ssuominen
7 (Portage version: 2.1.7.16/cvs/Linux i686)
8
9 Revision Changes Path
10 1.3 games-roguelike/angband/metadata.xml
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-roguelike/angband/metadata.xml?rev=1.3&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-roguelike/angband/metadata.xml?rev=1.3&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-roguelike/angband/metadata.xml?r1=1.2&r2=1.3
15
16 Index: metadata.xml
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/games-roguelike/angband/metadata.xml,v
19 retrieving revision 1.2
20 retrieving revision 1.3
21 diff -u -r1.2 -r1.3
22 --- metadata.xml 4 Mar 2004 17:04:21 -0000 1.2
23 +++ metadata.xml 16 Feb 2010 22:25:13 -0000 1.3
24 @@ -1,5 +1,8 @@
25 <?xml version="1.0" encoding="UTF-8"?>
26 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
27 <pkgmetadata>
28 -<herd>games</herd>
29 + <herd>games</herd>
30 + <use>
31 + <flag name='sound'>Enable and install sounds</flag>
32 + </use>
33 </pkgmetadata>
34
35
36
37 1.30 games-roguelike/angband/ChangeLog
38
39 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-roguelike/angband/ChangeLog?rev=1.30&view=markup
40 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-roguelike/angband/ChangeLog?rev=1.30&content-type=text/plain
41 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-roguelike/angband/ChangeLog?r1=1.29&r2=1.30
42
43 Index: ChangeLog
44 ===================================================================
45 RCS file: /var/cvsroot/gentoo-x86/games-roguelike/angband/ChangeLog,v
46 retrieving revision 1.29
47 retrieving revision 1.30
48 diff -u -r1.29 -r1.30
49 --- ChangeLog 7 Jan 2010 22:04:12 -0000 1.29
50 +++ ChangeLog 16 Feb 2010 22:25:13 -0000 1.30
51 @@ -1,6 +1,12 @@
52 # ChangeLog for games-roguelike/angband
53 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
54 -# $Header: /var/cvsroot/gentoo-x86/games-roguelike/angband/ChangeLog,v 1.29 2010/01/07 22:04:12 josejx Exp $
55 +# $Header: /var/cvsroot/gentoo-x86/games-roguelike/angband/ChangeLog,v 1.30 2010/02/16 22:25:13 mr_bones_ Exp $
56 +
57 +*angband-3.1.2_p2 (16 Feb 2010)
58 +
59 + 16 Feb 2010; Michael Sterrett <mr_bones_@g.o>
60 + +angband-3.1.2_p2.ebuild:
61 + version bump (bug #299406) with development from Widget and ssuominen
62
63 07 Jan 2010; Joseph Jezak <josejx@g.o> angband-3.0.9e.ebuild:
64 Marked ppc stable for bug #294528.
65
66
67
68 1.1 games-roguelike/angband/angband-3.1.2_p2.ebuild
69
70 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-roguelike/angband/angband-3.1.2_p2.ebuild?rev=1.1&view=markup
71 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-roguelike/angband/angband-3.1.2_p2.ebuild?rev=1.1&content-type=text/plain
72
73 Index: angband-3.1.2_p2.ebuild
74 ===================================================================
75 # Copyright 1999-2010 Gentoo Foundation
76 # Distributed under the terms of the GNU General Public License v2
77 # $Header: /var/cvsroot/gentoo-x86/games-roguelike/angband/angband-3.1.2_p2.ebuild,v 1.1 2010/02/16 22:25:13 mr_bones_ Exp $
78
79 EAPI=2
80 inherit versionator games
81
82 MAJOR_PV=$(get_version_component_range 1-2)
83 MY_P=${P/_p/v}
84
85 DESCRIPTION="A roguelike dungeon exploration game based on the books of J.R.R. Tolkien"
86 HOMEPAGE="http://rephial.org/"
87 SRC_URI="http://rephial.org/downloads/${MAJOR_PV}/${MY_P}-src.tar.gz"
88
89 LICENSE="Moria"
90 SLOT="0"
91 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
92 IUSE="gtk ncurses sdl +sound X"
93
94 RDEPEND="gtk? ( gnome-base/libglade
95 x11-libs/pango
96 x11-libs/gtk+:2
97 dev-libs/glib:2 )
98 X? ( x11-libs/libSM
99 x11-libs/libX11 )
100 !ncurses? ( !X? ( !sdl? ( !gtk? ( sys-libs/ncurses ) ) ) )
101 sdl? ( media-libs/libsdl[video,X]
102 media-libs/sdl-ttf
103 media-libs/sdl-image
104 sound? ( media-libs/sdl-mixer
105 media-libs/libsdl[audio] ) )"
106 DEPEND="${RDEPEND}
107 dev-util/pkgconfig"
108
109 S=${WORKDIR}/${MY_P}
110
111 src_configure() {
112 local myconf
113
114 if use sdl; then
115 myconf="$(use_enable sound sdl-mixer)"
116 else
117 myconf="--disable-sdl-mixer"
118 fi
119
120 econf \
121 --bindir="${GAMES_BINDIR}" \
122 --with-configpath="${GAMES_SYSCONFDIR}/${PN}" \
123 --with-libpath="${GAMES_DATADIR}/${PN}" \
124 --with-varpath="${GAMES_STATEDIR}/${PN}" \
125 --with-private-dirs \
126 $(use_enable X x11) \
127 $(use_enable gtk) \
128 $(use_enable sdl) \
129 $(use_enable ncurses curses) \
130 $( use !gtk && use !sdl && use !ncurses && use !X && \
131 echo --enable-curses) \
132 ${myconf}
133 }
134
135 src_install() {
136 emake DESTDIR="${D}" install || die
137
138 # Edit files are now system config files in Angband, but
139 # users will be hidden from applying updates by default
140 echo "CONFIG_PROTECT_MASK=\"${GAMES_SYSCONFDIR}/${PN}/edit/\"" \
141 > "${T}"/99${PN}
142 doenvd "${T}"/99${PN} || die
143
144 dodoc changes.txt faq.txt readme.txt thanks.txt || die
145
146 # Create desktop entries if required.
147 ICON_LOC="${GAMES_DATADIR}/${PN}/xtra/icon/att-32.png"
148 if use X; then
149 make_desktop_entry "angband -mx11" "Angband (X11)" "${ICON_LOC}" || die
150 fi
151
152 if use sdl; then
153 make_desktop_entry "angband -msdl" "Angband (SDL)" "${ICON_LOC}" || die
154 fi
155
156 if use gtk; then
157 make_desktop_entry "angband -mgtk" "Angband (GTK)" "${ICON_LOC}" || die
158 fi
159
160 use ncurses || rm -rf "${D}${GAMES_DATADIR}/${PN}/xtra/graf"
161 use sound || rm -rf "${D}${GAMES_DATADIR}/${PN}/xtra/sound"
162
163 prepgamesdirs
164 }
165
166 pkg_postinst() {
167 echo
168 elog "Angband now uses private savefiles instead of system-wide ones"
169 elog "This version of Angband is not compatible with the save files"
170 elog "of previous versions"
171 echo
172
173 games_pkg_postinst
174 }