Gentoo Archives: gentoo-commits

From: Michael Sterrett <mr_bones_@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-roguelike/angband/
Date: Tue, 29 Dec 2015 07:41:37
Message-Id: 1451374845.f1f0a0ec2ab04eb41b5eb591a56071dc6cf558cc.mr_bones_@gentoo
1 commit: f1f0a0ec2ab04eb41b5eb591a56071dc6cf558cc
2 Author: Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 29 04:00:55 2015 +0000
4 Commit: Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 29 07:40:45 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1f0a0ec
7
8 old
9
10 Package-Manager: portage-2.2.24
11
12 games-roguelike/angband/Manifest | 2 -
13 games-roguelike/angband/angband-3.4.1.ebuild | 100 ---------------------------
14 games-roguelike/angband/angband-3.5.1.ebuild | 98 --------------------------
15 3 files changed, 200 deletions(-)
16
17 diff --git a/games-roguelike/angband/Manifest b/games-roguelike/angband/Manifest
18 index 5c7c7c7..663f322 100644
19 --- a/games-roguelike/angband/Manifest
20 +++ b/games-roguelike/angband/Manifest
21 @@ -1,3 +1 @@
22 DIST angband-4.0.3.tar.gz 19884304 SHA256 1752d22a164bb073b9a7be322a2b607b06a4c919c073d012c010a61578081ce8 SHA512 c900648b6972e27ab30aaac776bbad34aee2196b5b80c4574762ff21c7c42a42061f76379ec4c0c2aefdfd1647aa76f2bd9fdd0286a7bc762616d97799e51a24 WHIRLPOOL 45c6eb4b71bf51bf2d41d270a8bb699d924137ccce605df867bf098f8545067c405a4ea851fe25e37304c908a13dd4e41229bf653bb87632f2fedb64323f2363
23 -DIST angband-v3.4.1.tar.gz 17880537 SHA256 461e36d22c15df330b4d4eaa850e4f2c2da6731d23e99fa13a056249343fd945 SHA512 76099c8fa999e88ea1324bb70b4dee5df1faccd1fa256cc0c460ce2c5ddae9634fdef876bd0d826e99e6dcc54a9f9cf619d82552dc658d0115b97e0e644c19d3 WHIRLPOOL 4e74092deb1868a7c172c206058ebf198f5bdf08f50ebfa5cd3a4a4200998283d9d1896ff39f41fa88f74b78940bee16a3f8a2ce949a69b3e01417017cc32545
24 -DIST angband-v3.5.1.tar.gz 20539732 SHA256 c5ca3ab75fd820a49eb2b9ab8b1c2a811ff992276f9800cc61c686e90bd4d447 SHA512 a45a64b4de1161f327594b93177432c22a00301e7e6058a5e9c1407343c4448217564303578d46f3ea15c94b86aeaf813685a04a70a5dae58511cbf0427b86dc WHIRLPOOL b5f32d90b9923c8ea00eae762b3e743f3d1175290feb5bd38064a29954e8685545eb2129eabcb98e2386f7d425c9ce966c8824634844d23dd91dbbd8b32586bd
25
26 diff --git a/games-roguelike/angband/angband-3.4.1.ebuild b/games-roguelike/angband/angband-3.4.1.ebuild
27 deleted file mode 100644
28 index 7d383dc..0000000
29 --- a/games-roguelike/angband/angband-3.4.1.ebuild
30 +++ /dev/null
31 @@ -1,100 +0,0 @@
32 -# Copyright 1999-2014 Gentoo Foundation
33 -# Distributed under the terms of the GNU General Public License v2
34 -# $Id$
35 -
36 -EAPI=5
37 -inherit eutils versionator games
38 -
39 -MAJOR_PV=$(get_version_component_range 1-2)
40 -MY_P=${PN}-v${PV}
41 -
42 -DESCRIPTION="A roguelike dungeon exploration game based on the books of J.R.R. Tolkien"
43 -HOMEPAGE="http://rephial.org/"
44 -SRC_URI="http://rephial.org/downloads/${MAJOR_PV}/${MY_P}.tar.gz"
45 -
46 -LICENSE="GPL-2"
47 -SLOT="0"
48 -KEYWORDS="amd64 ppc x86"
49 -IUSE="ncurses sdl +sound X"
50 -
51 -RDEPEND="X? ( x11-libs/libX11 )
52 - !ncurses? ( !X? ( !sdl? ( sys-libs/ncurses ) ) )
53 - ncurses? ( sys-libs/ncurses )
54 - sdl? ( media-libs/libsdl[video,X]
55 - media-libs/sdl-ttf
56 - media-libs/sdl-image
57 - sound? ( media-libs/sdl-mixer
58 - media-libs/libsdl[sound] ) )"
59 -DEPEND="${RDEPEND}
60 - virtual/pkgconfig"
61 -
62 -S=${WORKDIR}/${MY_P}
63 -
64 -DOCS=( changes.txt faq.txt readme.txt thanks.txt )
65 -
66 -src_prepare() {
67 - # fix paths
68 - sed -i \
69 - -e '/libpath/s#datarootdir#datadir#' \
70 - -e '/X_PRE_LIBS/s:-lSM -lICE::' \
71 - configure || die
72 -
73 - sed -i \
74 - -e "/^.SILENT/d" \
75 - mk/buildsys.mk.in || die
76 -}
77 -
78 -src_configure() {
79 - local myconf
80 -
81 - if use sdl; then
82 - myconf="$(use_enable sound sdl-mixer)"
83 - else
84 - myconf="--disable-sdl-mixer"
85 - fi
86 -
87 - egamesconf \
88 - --bindir="${GAMES_BINDIR}" \
89 - --with-private-dirs \
90 - $(use_enable X x11) \
91 - $(use_enable sdl) \
92 - $(use_enable ncurses curses) \
93 - $(use !sdl && use !ncurses && use !X && \
94 - echo --enable-curses) \
95 - ${myconf}
96 -}
97 -
98 -src_install() {
99 - default
100 -
101 - # Edit files are now system config files in Angband, but
102 - # users will be hidden from applying updates by default
103 - echo "CONFIG_PROTECT_MASK=\"${GAMES_SYSCONFDIR}/${PN}/edit/\"" \
104 - > "${T}"/99${PN}
105 - doenvd "${T}"/99${PN} || die
106 -
107 - # Create desktop entries if required.
108 - ICON_LOC="${GAMES_DATADIR}/${PN}/xtra/icon/att-32.png"
109 - if use X; then
110 - make_desktop_entry "angband -mx11" "Angband (X11)" "${ICON_LOC}"
111 - fi
112 -
113 - if use sdl; then
114 - make_desktop_entry "angband -msdl" "Angband (SDL)" "${ICON_LOC}"
115 - fi
116 -
117 - use ncurses || rm -rf "${D}${GAMES_DATADIR}/${PN}/xtra/graf"
118 - use sound || rm -rf "${D}${GAMES_DATADIR}/${PN}/xtra/sound"
119 -
120 - prepgamesdirs
121 -}
122 -
123 -pkg_postinst() {
124 - echo
125 - elog "Angband now uses private savefiles instead of system-wide ones"
126 - elog "This version of Angband is not compatible with the save files"
127 - elog "of previous versions"
128 - echo
129 -
130 - games_pkg_postinst
131 -}
132
133 diff --git a/games-roguelike/angband/angband-3.5.1.ebuild b/games-roguelike/angband/angband-3.5.1.ebuild
134 deleted file mode 100644
135 index 8a7f562..0000000
136 --- a/games-roguelike/angband/angband-3.5.1.ebuild
137 +++ /dev/null
138 @@ -1,98 +0,0 @@
139 -# Copyright 1999-2015 Gentoo Foundation
140 -# Distributed under the terms of the GNU General Public License v2
141 -# $Id$
142 -
143 -EAPI=5
144 -inherit eutils versionator games
145 -
146 -MAJOR_PV=$(get_version_component_range 1-2)
147 -MY_P=${PN}-v${PV}
148 -
149 -DESCRIPTION="A roguelike dungeon exploration game based on the books of J.R.R. Tolkien"
150 -HOMEPAGE="http://rephial.org/"
151 -SRC_URI="http://rephial.org/downloads/${MAJOR_PV}/${MY_P}.tar.gz"
152 -
153 -LICENSE="GPL-2"
154 -SLOT="0"
155 -KEYWORDS="amd64 ~ppc x86"
156 -IUSE="ncurses sdl +sound X"
157 -
158 -RDEPEND="X? ( x11-libs/libX11 )
159 - !ncurses? ( !X? ( !sdl? ( sys-libs/ncurses[unicode] ) ) )
160 - ncurses? ( sys-libs/ncurses[unicode] )
161 - sdl? ( media-libs/libsdl[video,X]
162 - media-libs/sdl-ttf
163 - media-libs/sdl-image
164 - sound? ( media-libs/sdl-mixer[mp3]
165 - media-libs/libsdl[sound] ) )"
166 -DEPEND="${RDEPEND}
167 - virtual/pkgconfig"
168 -
169 -src_prepare() {
170 - # fix paths
171 - sed -i \
172 - -e '/libpath/s#datarootdir#datadir#' \
173 - -e '/X_PRE_LIBS/s:-lSM -lICE::' \
174 - configure || die
175 -
176 - sed -i \
177 - -e "/^.SILENT/d" \
178 - mk/buildsys.mk.in || die
179 -}
180 -
181 -src_configure() {
182 - local myconf
183 -
184 - if use sdl; then
185 - myconf="$(use_enable sound sdl-mixer)"
186 - else
187 - myconf="--disable-sdl-mixer"
188 - fi
189 -
190 - egamesconf \
191 - --bindir="${GAMES_BINDIR}" \
192 - --with-private-dirs \
193 - $(use_enable X x11) \
194 - $(use_enable sdl) \
195 - $(use_enable ncurses curses) \
196 - $(use !sdl && use !ncurses && use !X && \
197 - echo --enable-curses) \
198 - ${myconf}
199 -}
200 -
201 -src_install() {
202 - DOCS=( changes.txt faq.txt readme.txt thanks.txt )
203 -
204 - default
205 -
206 - # Edit files are now system config files in Angband, but
207 - # users will be hidden from applying updates by default
208 - echo "CONFIG_PROTECT_MASK=\"${GAMES_SYSCONFDIR}/${PN}/edit/\"" \
209 - > "${T}"/99${PN}
210 - doenvd "${T}"/99${PN} || die
211 -
212 - # Create desktop entries if required.
213 - ICON_LOC="${GAMES_DATADIR}/${PN}/xtra/icon/att-32.png"
214 - if use X; then
215 - make_desktop_entry "angband -mx11" "Angband (X11)" "${ICON_LOC}"
216 - fi
217 -
218 - if use sdl; then
219 - make_desktop_entry "angband -msdl" "Angband (SDL)" "${ICON_LOC}"
220 - fi
221 -
222 - use ncurses || rm -rf "${D}${GAMES_DATADIR}/${PN}/xtra/graf"
223 - use sound || rm -rf "${D}${GAMES_DATADIR}/${PN}/xtra/sound"
224 -
225 - prepgamesdirs
226 -}
227 -
228 -pkg_postinst() {
229 - echo
230 - elog "Angband now uses private savefiles instead of system-wide ones"
231 - elog "This version of Angband is not compatible with the save files"
232 - elog "of previous versions"
233 - echo
234 -
235 - games_pkg_postinst
236 -}