Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-engines/frotz/
Date: Thu, 29 Apr 2021 11:41:54
Message-Id: 1619696276.a1703822ee4d05229a2fa4b115401001ce050dca.marecki@gentoo
1 commit: a1703822ee4d05229a2fa4b115401001ce050dca
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 29 11:37:21 2021 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 29 11:37:56 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1703822
7
8 games-engines/frotz: bump to 2.53
9
10 Trivial bump. Does not come with an automated test suite but having
11 manually run all the interactive tests provided in src/test/ using the
12 ncurses interface, everything seems to be in order.
13
14 Permission to commit in maintainers' stead granted by sam on Bugzilla.
15
16 Closes: https://bugs.gentoo.org/86576
17 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
18
19 games-engines/frotz/Manifest | 1 +
20 games-engines/frotz/frotz-2.53.ebuild | 75 +++++++++++++++++++++++++++++++++++
21 2 files changed, 76 insertions(+)
22
23 diff --git a/games-engines/frotz/Manifest b/games-engines/frotz/Manifest
24 index 393de8b60e3..6678f254461 100644
25 --- a/games-engines/frotz/Manifest
26 +++ b/games-engines/frotz/Manifest
27 @@ -1 +1,2 @@
28 DIST frotz-2.52.tar.bz2 289109 BLAKE2B d1e97e05d1da187846c64dacdf69f34a800be97b75121dc8de63c619687ed5ccbd6b03b2391d2896a14aaad1e4f8eb51926affb92a36f1a5bad8acec91524774 SHA512 387e7a7fe0cffd40b639a306eef89a22421a4ff4a8e5dbcf96a1ef3b901744b3f75a671953ecdc17bde0d699e4756d470b61c8213c47315baa2700da92d06710
29 +DIST frotz-2.53.tar.bz2 375800 BLAKE2B a3d14d11540cb12ed6e5326207946e26b0b3b85e13c50e7431f3901cfb19337661b233bf29077c1efe3a9663aef6d2886bba1717c8132d68e77580692fed30d1 SHA512 e920529920a0b831b859323046aeae032b4b84ac0296d4ef35026fe8a62798cf5f9f4e255af38421aa21ad5507cd87287924daafc759c9b9d7a089ba7d77d808
30
31 diff --git a/games-engines/frotz/frotz-2.53.ebuild b/games-engines/frotz/frotz-2.53.ebuild
32 new file mode 100644
33 index 00000000000..f03a3d07028
34 --- /dev/null
35 +++ b/games-engines/frotz/frotz-2.53.ebuild
36 @@ -0,0 +1,75 @@
37 +# Copyright 1999-2021 Gentoo Authors
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=7
41 +
42 +inherit toolchain-funcs
43 +
44 +DESCRIPTION="Interpreter for Z-code based text games"
45 +HOMEPAGE="https://661.org/proj/if/frotz/"
46 +SRC_URI="https://gitlab.com/DavidGriffith/${PN}/-/archive/${PV}/${P}.tar.bz2"
47 +
48 +LICENSE="GPL-2"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~arm ~x86"
51 +IUSE="ncurses sdl sound unicode"
52 +REQUIRED_USE="sound? ( || ( ncurses sdl ) )"
53 +
54 +DEPEND="
55 + ncurses? (
56 + sys-libs/ncurses:0=[unicode?]
57 + sound? (
58 + media-libs/libao
59 + media-libs/libmodplug
60 + media-libs/libsamplerate
61 + media-libs/libsndfile[-minimal]
62 + media-libs/libvorbis
63 + )
64 + )
65 + sdl? (
66 + media-libs/freetype:2
67 + media-libs/libpng:0=
68 + media-libs/libsdl2[sound,threads,video]
69 + media-libs/sdl2-mixer[mod,vorbis,wav]
70 + sys-libs/zlib
71 + virtual/jpeg:0=
72 + )
73 +"
74 +RDEPEND="${DEPEND}"
75 +BDEPEND="virtual/pkgconfig"
76 +
77 +src_compile() {
78 + emake \
79 + dumb \
80 + $(use ncurses && echo ncurses) \
81 + $(use sdl && echo sdl) \
82 + AR="$(tc-getAR)" \
83 + CC="$(tc-getCC)" \
84 + PKG_CONFIG="$(tc-getPKG_CONFIG)" \
85 + RANLIB="$(tc-getRANLIB)" \
86 + CURSES=$(usex unicode ncursesw ncurses) \
87 + USE_UTF8=$(usex unicode yes "") \
88 + SOUND_TYPE=$(usex sound ao none) \
89 + PREFIX="${EPREFIX}/usr" \
90 + SYSCONFDIR="${EPREFIX}/etc"
91 +}
92 +
93 +src_install() {
94 + emake \
95 + install_dumb \
96 + $(use ncurses && echo install) \
97 + $(use sdl && echo install_sdl) \
98 + PREFIX="${EPREFIX}/usr" \
99 + DESTDIR="${D}"
100 +
101 + dodoc \
102 + AUTHORS ChangeLog CONTRIBUTORS DUMB HOW_TO_PLAY README TODO \
103 + doc/frotz.conf-{big,small}
104 +}
105 +
106 +pkg_postinst() {
107 + echo
108 + elog "Global config file can be installed in ${EPREFIX}/etc/frotz.conf"
109 + elog "Sample config files are in ${EPREFIX}/usr/share/doc/${PF}"
110 + echo
111 +}