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