commit:     96cd29c93318afa743475a047d2a062952ea0afd
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Tue Sep  3 22:10:33 2019 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Tue Sep  3 22:30:51 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96cd29c9

games-engines/frotz: Version bump to 2.45_pre20190903, many fixes

Not an actual release but much easier to build than the last one. Also
uses SDL2 rather than SDL1. Many thanks to upstream for merging all my
patches so quickly.

Fixes ncurses, prefix, cross-compiling, and probably more I forget.

Bug: https://bugs.gentoo.org/677778
Package-Manager: Portage-2.3.75, Repoman-2.3.17
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 games-engines/frotz/Manifest                      |  1 +
 games-engines/frotz/frotz-2.45_pre20190903.ebuild | 74 +++++++++++++++++++++++
 games-engines/frotz/metadata.xml                  |  2 +-
 3 files changed, 76 insertions(+), 1 deletion(-)

diff --git a/games-engines/frotz/Manifest b/games-engines/frotz/Manifest
index 479656678cb..2109b341c5b 100644
--- a/games-engines/frotz/Manifest
+++ b/games-engines/frotz/Manifest
@@ -1 +1,2 @@
 DIST frotz-2.43.tar.gz 160771 BLAKE2B 
edee48050b247320df3d02ea4682579d4f933a5853cc9a31f56c4d12596d5e5657e79e176ed1725e72028497a843db1d0b13833ffe44e41ec7f532f0d40ccaf9
 SHA512 
654f2ca2d1a625df8f88b5629e09a873668cea42688acdf154636b066b94fc9d70b7f45acb33a71d234c19b59c394c63aee38d6224245b3b329210e6b4a58409
+DIST frotz-57e915b5f5b8997d1e4a1e0dac4ace2e62b7f6e9.tar.bz2 281258 BLAKE2B 
d85a53157e539bb1e79aade97726b5b6f752d7799faea0f35063c3321c97ddbadf7bb9318533badb212b49b397c52e3fd458d5d08868d90b564002de3ffe4324
 SHA512 
45fc40f4eebb338e4e4cba8ef446726a9126d45b6646ffcf3a2679dfde5630500e492667363c63f7806630d4b8d88a225080c0a2696c4170d86b1cf4d8b0a06c

diff --git a/games-engines/frotz/frotz-2.45_pre20190903.ebuild 
b/games-engines/frotz/frotz-2.45_pre20190903.ebuild
new file mode 100644
index 00000000000..f2a3485e522
--- /dev/null
+++ b/games-engines/frotz/frotz-2.45_pre20190903.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+MY_PV="57e915b5f5b8997d1e4a1e0dac4ace2e62b7f6e9"
+MY_P="${PN}-${MY_PV}"
+DESCRIPTION="Interpreter for Z-code based text games"
+HOMEPAGE="https://661.org/proj/if/frotz/";
+SRC_URI="https://gitlab.com/DavidGriffith/${PN}/-/archive/${MY_PV}/${MY_P}.tar.bz2";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="ncurses sdl sound unicode"
+REQUIRED_USE="sound? ( || ( ncurses sdl ) )"
+
+DEPEND="
+       ncurses? (
+               sys-libs/ncurses:0=[unicode?]
+               sound? ( media-libs/libao )
+       )
+       sdl? (
+               media-libs/freetype:2
+               media-libs/libpng:0=
+               media-libs/libsdl2[sound,threads,video]
+               media-libs/sdl2-mixer
+               sys-libs/zlib
+               virtual/jpeg:0=
+       )
+"
+
+RDEPEND="${DEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+S="${WORKDIR}/${MY_P}"
+
+src_compile() {
+       emake \
+               dumb \
+               $(use ncurses && echo ncurses) \
+               $(use sdl && echo sdl) \
+               AR="$(tc-getAR)" \
+               CC="$(tc-getCC)" \
+               PKG_CONFIG="$(tc-getPKG_CONFIG)" \
+               RANLIB="$(tc-getRANLIB)" \
+               CURSES=$(usex unicode ncursesw ncurses) \
+               USE_UTF8=$(usex unicode yes "") \
+               SOUND=$(usex sound ao none) \
+               PREFIX="${EPREFIX}/usr" \
+               SYSCONFDIR="${EPREFIX}/etc"
+}
+
+src_install () {
+       emake \
+               install_dumb \
+               $(use ncurses && echo install) \
+               $(use sdl && echo install_sdl) \
+               PREFIX="${EPREFIX}/usr" \
+               DESTDIR="${D}"
+
+       dodoc \
+               AUTHORS ChangeLog CONTRIBUTORS DUMB HOW_TO_PLAY README TODO \
+               doc/frotz.conf-{big,small}
+}
+
+pkg_postinst() {
+       echo
+       elog "Global config file can be installed in ${EPREFIX}/etc/frotz.conf"
+       elog "Sample config files are in ${EPREFIX}/usr/share/doc/${PF}"
+       echo
+}

diff --git a/games-engines/frotz/metadata.xml b/games-engines/frotz/metadata.xml
index 051541926fb..455473e4c7c 100644
--- a/games-engines/frotz/metadata.xml
+++ b/games-engines/frotz/metadata.xml
@@ -6,6 +6,6 @@
                <name>Gentoo Games Project</name>
        </maintainer>
        <upstream>
-               <remote-id type="sourceforge">frotz</remote-id>
+               <remote-id type="gitlab">DavidGriffith/frotz</remote-id>
        </upstream>
 </pkgmetadata>

Reply via email to