Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-roguelike/angband/
Date: Wed, 23 Jun 2021 02:24:54
Message-Id: 1624414957.ab2e317b8c224d015e945eea9dd79795df698a83.ionen@gentoo
1 commit: ab2e317b8c224d015e945eea9dd79795df698a83
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 23 00:20:42 2021 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 23 02:22:37 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab2e317b
7
8 games-roguelike/angband: drop 4.2.1
9
10 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
11
12 games-roguelike/angband/angband-4.2.1.ebuild | 106 ---------------------------
13 1 file changed, 106 deletions(-)
14
15 diff --git a/games-roguelike/angband/angband-4.2.1.ebuild b/games-roguelike/angband/angband-4.2.1.ebuild
16 deleted file mode 100644
17 index 2582bae9915..00000000000
18 --- a/games-roguelike/angband/angband-4.2.1.ebuild
19 +++ /dev/null
20 @@ -1,106 +0,0 @@
21 -# Copyright 1999-2020 Gentoo Authors
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=7
25 -
26 -inherit autotools desktop xdg-utils
27 -
28 -MAJOR_PV=$(ver_cut 1-2)
29 -
30 -DESCRIPTION="A roguelike dungeon exploration game based on the books of J.R.R. Tolkien"
31 -HOMEPAGE="https://rephial.org/"
32 -SRC_URI="https://rephial.org/downloads/${MAJOR_PV}/${P}.tar.gz
33 - https://dev.gentoo.org/~steils/distfiles/${P}-man.tar.gz"
34 -
35 -LICENSE="GPL-2"
36 -SLOT="0"
37 -KEYWORDS="~amd64 ~x86"
38 -IUSE="+ncurses sdl sound +X"
39 -
40 -REQUIRED_USE="sound? ( sdl )
41 - || ( X ncurses )"
42 -
43 -RDEPEND="X? (
44 - media-fonts/font-misc-misc
45 - x11-libs/libX11
46 - )
47 - ncurses? ( sys-libs/ncurses:0=[unicode] )
48 - sdl? (
49 - media-libs/libsdl2[video,X]
50 - media-libs/sdl2-image
51 - media-libs/sdl2-ttf
52 - sound? (
53 - media-libs/libsdl2[sound]
54 - media-libs/sdl2-mixer[mp3]
55 - )
56 - )"
57 -DEPEND="${RDEPEND}"
58 -BDEPEND="virtual/pkgconfig"
59 -
60 -src_prepare() {
61 - default
62 -
63 - sed -i -e '/libpath/s#datarootdir#datadir#' configure.ac || die
64 - sed -i -e "/^.SILENT/d" mk/buildsys.mk.in || die
65 -
66 - if use !sound ; then
67 - sed -i -e 's/sounds//' lib/Makefile || die
68 - fi
69 -
70 - # Game constant files are now system config files in Angband, but
71 - # users will be hidden from applying updates by default
72 - {
73 - echo "CONFIG_PROTECT_MASK=\"/etc/${PN}/customize/\""
74 - echo "CONFIG_PROTECT_MASK=\"/etc/${PN}/gamedata/\""
75 - } > "${T}"/99${PN} || die
76 -
77 - eautoreconf
78 -}
79 -
80 -src_configure() {
81 - local myconf=(
82 - --bindir="${EPREFIX}"/usr/bin
83 - --with-private-dirs
84 - $(use_enable X x11)
85 - $(use_enable ncurses curses)
86 - )
87 - if use sdl; then
88 - myconf+=(
89 - --enable-sdl2
90 - $(use_enable sound sdl2-mixer)
91 - )
92 - fi
93 -
94 - econf "${myconf[@]}"
95 -}
96 -
97 -src_install() {
98 - default
99 -
100 - dodoc changes.txt README.md
101 - doman "${WORKDIR}"/${PN}.1
102 - doenvd "${T}"/99${PN}
103 -
104 - if use X || use sdl; then
105 - use X && make_desktop_entry "angband -mx11" "Angband (X11)" "${PN}"
106 - use sdl && make_desktop_entry "angband -msdl2" "Angband (SDL2)" "${PN}"
107 -
108 - local s
109 - for s in 16 32 128 256 512; do
110 - newicon -s ${s} lib/icons/att-${s}.png "${PN}.png"
111 - done
112 - newicon -s scalable lib/icons/att.svg "${PN}.svg"
113 - fi
114 -}
115 -
116 -pkg_postinst() {
117 - if use X || use sdl; then
118 - xdg_icon_cache_update
119 - fi
120 -}
121 -
122 -pkg_postrm() {
123 - if use X || use sdl; then
124 - xdg_icon_cache_update
125 - fi
126 -}