Gentoo Archives: gentoo-commits

From: Stefan Strogin <steils@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-engines/frotz/
Date: Tue, 02 Jun 2020 00:16:03
Message-Id: 1591056918.79948e7dfc595460081be7ff64f9c769b2e31c12.steils@gentoo
1 commit: 79948e7dfc595460081be7ff64f9c769b2e31c12
2 Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
3 AuthorDate: Mon Jun 1 17:32:45 2020 +0000
4 Commit: Stefan Strogin <steils <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 2 00:15:18 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79948e7d
7
8 games-engines/frotz: update to 2.52
9
10 New version can be compiled with GCC 10 (#707608).
11
12 Closes: https://bugs.gentoo.org/707608
13 Package-Manager: Portage-2.3.99, Repoman-2.3.22
14 Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com>
15 Signed-off-by: Stefan Strogin <steils <AT> gentoo.org>
16
17 games-engines/frotz/Manifest | 1 +
18 games-engines/frotz/frotz-2.52.ebuild | 75 +++++++++++++++++++++++++++++++++++
19 2 files changed, 76 insertions(+)
20
21 diff --git a/games-engines/frotz/Manifest b/games-engines/frotz/Manifest
22 index af3e74b6b95..70924e87de1 100644
23 --- a/games-engines/frotz/Manifest
24 +++ b/games-engines/frotz/Manifest
25 @@ -1 +1,2 @@
26 DIST frotz-2.50b2.tar.bz2 281065 BLAKE2B bffe35e9f77e7ef89b76bbe29a3f97ad94ac529bd4930790a25c147f336036b1bfdae1ea52cf87e62121189f4e1bce890f5bc3ddbfb0e68e9ffa290fc1567cc9 SHA512 12398c5bf963aaa7e1ad51a1ca3afaddf4849c2aed8e2cabffc411294b501181de69f99bad2a1c8de9777df4b448af6d85b695c56de4b3112cd32fd7d6cb33c7
27 +DIST frotz-2.52.tar.bz2 289109 BLAKE2B d1e97e05d1da187846c64dacdf69f34a800be97b75121dc8de63c619687ed5ccbd6b03b2391d2896a14aaad1e4f8eb51926affb92a36f1a5bad8acec91524774 SHA512 387e7a7fe0cffd40b639a306eef89a22421a4ff4a8e5dbcf96a1ef3b901744b3f75a671953ecdc17bde0d699e4756d470b61c8213c47315baa2700da92d06710
28
29 diff --git a/games-engines/frotz/frotz-2.52.ebuild b/games-engines/frotz/frotz-2.52.ebuild
30 new file mode 100644
31 index 00000000000..cab60c1ec29
32 --- /dev/null
33 +++ b/games-engines/frotz/frotz-2.52.ebuild
34 @@ -0,0 +1,75 @@
35 +# Copyright 1999-2020 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +inherit toolchain-funcs
41 +
42 +DESCRIPTION="Interpreter for Z-code based text games"
43 +HOMEPAGE="https://661.org/proj/if/frotz/"
44 +SRC_URI="https://gitlab.com/DavidGriffith/${PN}/-/archive/${PV}/${P}.tar.bz2"
45 +
46 +LICENSE="GPL-2"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~arm ~x86"
49 +IUSE="ncurses sdl sound unicode"
50 +REQUIRED_USE="sound? ( || ( ncurses sdl ) )"
51 +
52 +DEPEND="
53 + ncurses? (
54 + sys-libs/ncurses:0=[unicode?]
55 + sound? (
56 + media-libs/libao
57 + media-libs/libmodplug
58 + media-libs/libsamplerate
59 + media-libs/libsndfile[-minimal]
60 + media-libs/libvorbis
61 + )
62 + )
63 + sdl? (
64 + media-libs/freetype:2
65 + media-libs/libpng:0=
66 + media-libs/libsdl2[sound,threads,video]
67 + media-libs/sdl2-mixer[mod,vorbis,wav]
68 + sys-libs/zlib
69 + virtual/jpeg:0=
70 + )
71 +"
72 +RDEPEND="${DEPEND}"
73 +BDEPEND="virtual/pkgconfig"
74 +
75 +src_compile() {
76 + emake \
77 + dumb \
78 + $(use ncurses && echo ncurses) \
79 + $(use sdl && echo sdl) \
80 + AR="$(tc-getAR)" \
81 + CC="$(tc-getCC)" \
82 + PKG_CONFIG="$(tc-getPKG_CONFIG)" \
83 + RANLIB="$(tc-getRANLIB)" \
84 + CURSES=$(usex unicode ncursesw ncurses) \
85 + USE_UTF8=$(usex unicode yes "") \
86 + SOUND_TYPE=$(usex sound ao none) \
87 + PREFIX="${EPREFIX}/usr" \
88 + SYSCONFDIR="${EPREFIX}/etc"
89 +}
90 +
91 +src_install() {
92 + emake \
93 + install_dumb \
94 + $(use ncurses && echo install) \
95 + $(use sdl && echo install_sdl) \
96 + PREFIX="${EPREFIX}/usr" \
97 + DESTDIR="${D}"
98 +
99 + dodoc \
100 + AUTHORS ChangeLog CONTRIBUTORS DUMB HOW_TO_PLAY README TODO \
101 + doc/frotz.conf-{big,small}
102 +}
103 +
104 +pkg_postinst() {
105 + echo
106 + elog "Global config file can be installed in ${EPREFIX}/etc/frotz.conf"
107 + elog "Sample config files are in ${EPREFIX}/usr/share/doc/${PF}"
108 + echo
109 +}