1 |
commit: bb219b0ded728e7d8577b6bf40d933556264a8cb |
2 |
Author: Stefan Strogin <steils <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 20 06:33:53 2019 +0000 |
4 |
Commit: Stefan Strogin <steils <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 20 06:35:43 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb219b0d |
7 |
|
8 |
games-roguelike/angband: bump version to 4.2.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.72, Repoman-2.3.17 |
11 |
Signed-off-by: Stefan Strogin <steils <AT> gentoo.org> |
12 |
|
13 |
games-roguelike/angband/Manifest | 1 + |
14 |
games-roguelike/angband/angband-4.2.0.ebuild | 127 +++++++++++++++++++++++++++ |
15 |
games-roguelike/angband/metadata.xml | 1 + |
16 |
3 files changed, 129 insertions(+) |
17 |
|
18 |
diff --git a/games-roguelike/angband/Manifest b/games-roguelike/angband/Manifest |
19 |
index 89392c28f50..0e9b762249c 100644 |
20 |
--- a/games-roguelike/angband/Manifest |
21 |
+++ b/games-roguelike/angband/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST angband-4.1.3.tar.gz 19924395 BLAKE2B 573181ab9b3a01abdc34cfac9e69a757eb7558c67c9490240890bc920c6c2a8ebea6268b733f06a6e421829d807fa135131c1512edfc344610a269139cc5ac47 SHA512 7810e1f04e337c1b5d1ddb6013785c953e0149dfa536c75dd8816fdfd304c37a09103d653cee0c150225c6ba702e121300a65012d8034079cd41f86a730f9c2a |
24 |
+DIST angband-4.2.0.tar.gz 24727127 BLAKE2B 4bdd5cfe49080fc38b988e6606eadddc2e872ca7b01f34e692ca299a420689310e9e972355986e802e654a27837ac2621eb3bc0823b7e771dc0a851a5c5a8bc6 SHA512 b5c4884ce765bc45d7c21b8be06bc29c7d84c16e48341967b5d6a847f250db104ef509fc28e8887d4f1cd9ed545e504781186936a1f38931d5113e2fb58b32c3 |
25 |
|
26 |
diff --git a/games-roguelike/angband/angband-4.2.0.ebuild b/games-roguelike/angband/angband-4.2.0.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..acb1f3d093c |
29 |
--- /dev/null |
30 |
+++ b/games-roguelike/angband/angband-4.2.0.ebuild |
31 |
@@ -0,0 +1,127 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+inherit autotools desktop xdg-utils |
38 |
+ |
39 |
+MAJOR_PV=$(ver_cut 1-2) |
40 |
+ |
41 |
+DESCRIPTION="A roguelike dungeon exploration game based on the books of J.R.R. Tolkien" |
42 |
+HOMEPAGE="https://rephial.org/" |
43 |
+SRC_URI="https://rephial.org/downloads/${MAJOR_PV}/${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="GPL-2" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+IUSE="+ncurses sdl sdl2 sound +X" |
49 |
+ |
50 |
+REQUIRED_USE="sdl2? ( sdl ) |
51 |
+ sound? ( sdl ) |
52 |
+ || ( X ncurses )" |
53 |
+ |
54 |
+RDEPEND="X? ( |
55 |
+ media-fonts/font-misc-misc |
56 |
+ x11-libs/libX11 |
57 |
+ ) |
58 |
+ ncurses? ( sys-libs/ncurses:0=[unicode] ) |
59 |
+ sdl? ( |
60 |
+ !sdl2? ( |
61 |
+ media-libs/libsdl[video,X] |
62 |
+ media-libs/sdl-image |
63 |
+ media-libs/sdl-ttf |
64 |
+ sound? ( |
65 |
+ media-libs/libsdl[sound] |
66 |
+ media-libs/sdl-mixer[mp3] |
67 |
+ ) |
68 |
+ ) |
69 |
+ sdl2? ( |
70 |
+ media-libs/libsdl2[video,X] |
71 |
+ media-libs/sdl2-image |
72 |
+ media-libs/sdl2-ttf |
73 |
+ sound? ( |
74 |
+ media-libs/libsdl2[sound] |
75 |
+ media-libs/sdl2-mixer[mp3] |
76 |
+ ) |
77 |
+ ) |
78 |
+ )" |
79 |
+DEPEND="${RDEPEND}" |
80 |
+BDEPEND="virtual/pkgconfig" |
81 |
+ |
82 |
+src_prepare() { |
83 |
+ default |
84 |
+ |
85 |
+ sed -i -e '/libpath/s#datarootdir#datadir#' configure.ac || die |
86 |
+ sed -i -e "/^.SILENT/d" mk/buildsys.mk.in || die |
87 |
+ |
88 |
+ if use !sound ; then |
89 |
+ sed -i -e 's/sounds//' lib/Makefile || die |
90 |
+ fi |
91 |
+ |
92 |
+ # Game constant files are now system config files in Angband, but |
93 |
+ # users will be hidden from applying updates by default |
94 |
+ { |
95 |
+ echo "CONFIG_PROTECT_MASK=\"/etc/${PN}/customize/\"" |
96 |
+ echo "CONFIG_PROTECT_MASK=\"/etc/${PN}/gamedata/\"" |
97 |
+ } > "${T}"/99${PN} || die |
98 |
+ |
99 |
+ eautoreconf |
100 |
+} |
101 |
+ |
102 |
+src_configure() { |
103 |
+ local myconf=( |
104 |
+ --bindir="${EPREFIX}"/usr/bin |
105 |
+ --with-private-dirs |
106 |
+ $(use_enable X x11) |
107 |
+ $(use_enable ncurses curses) |
108 |
+ ) |
109 |
+ if use sdl; then |
110 |
+ if use sdl2; then |
111 |
+ myconf+=( |
112 |
+ --enable-sdl2 |
113 |
+ $(use_enable sound sdl2-mixer) |
114 |
+ ) |
115 |
+ else |
116 |
+ myconf+=( |
117 |
+ --enable-sdl |
118 |
+ $(use_enable sound sdl-mixer) |
119 |
+ ) |
120 |
+ fi |
121 |
+ fi |
122 |
+ |
123 |
+ econf "${myconf[@]}" |
124 |
+} |
125 |
+ |
126 |
+src_install() { |
127 |
+ default |
128 |
+ |
129 |
+ dodoc changes.txt readme.txt |
130 |
+ dodoc docs/{a-quick-demo,attack,birth,command,customize,dungeon,faq,guide}.rst |
131 |
+ doenvd "${T}"/99${PN} |
132 |
+ |
133 |
+ if use X || use sdl; then |
134 |
+ use X && make_desktop_entry "angband -mx11" "Angband (X11)" "${PN}" |
135 |
+ if use sdl; then |
136 |
+ use sdl2 && make_desktop_entry "angband -msdl2" "Angband (SDL2)" "${PN}" \ |
137 |
+ || make_desktop_entry "angband -msdl" "Angband (SDL)" "${PN}" |
138 |
+ fi |
139 |
+ |
140 |
+ local s |
141 |
+ for s in 16 32 128 256 512; do |
142 |
+ newicon -s ${s} lib/icons/att-${s}.png "${PN}.png" |
143 |
+ done |
144 |
+ newicon -s scalable lib/icons/att.svg "${PN}.svg" |
145 |
+ fi |
146 |
+} |
147 |
+ |
148 |
+pkg_postinst() { |
149 |
+ if use X || use sdl; then |
150 |
+ xdg_icon_cache_update |
151 |
+ fi |
152 |
+} |
153 |
+ |
154 |
+pkg_postrm() { |
155 |
+ if use X || use sdl; then |
156 |
+ xdg_icon_cache_update |
157 |
+ fi |
158 |
+} |
159 |
|
160 |
diff --git a/games-roguelike/angband/metadata.xml b/games-roguelike/angband/metadata.xml |
161 |
index 3f75f809dba..a3f5689683f 100644 |
162 |
--- a/games-roguelike/angband/metadata.xml |
163 |
+++ b/games-roguelike/angband/metadata.xml |
164 |
@@ -10,6 +10,7 @@ |
165 |
<name>Stefan Strogin</name> |
166 |
</maintainer> |
167 |
<use> |
168 |
+ <flag name="sdl2">Use libsdl2 instead of libsdl</flag> |
169 |
<flag name="sound">Enable and install sounds</flag> |
170 |
</use> |
171 |
</pkgmetadata> |