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@gentoo.org>
This commit is contained in:
James Le Cuirot
2019-09-03 23:30:51 +01:00
parent 1006fc4dcf
commit 96cd29c933
3 changed files with 76 additions and 1 deletions
+1
View File
@@ -1 +1,2 @@
DIST frotz-2.43.tar.gz 160771 BLAKE2B edee48050b247320df3d02ea4682579d4f933a5853cc9a31f56c4d12596d5e5657e79e176ed1725e72028497a843db1d0b13833ffe44e41ec7f532f0d40ccaf9 SHA512 654f2ca2d1a625df8f88b5629e09a873668cea42688acdf154636b066b94fc9d70b7f45acb33a71d234c19b59c394c63aee38d6224245b3b329210e6b4a58409
DIST frotz-57e915b5f5b8997d1e4a1e0dac4ace2e62b7f6e9.tar.bz2 281258 BLAKE2B d85a53157e539bb1e79aade97726b5b6f752d7799faea0f35063c3321c97ddbadf7bb9318533badb212b49b397c52e3fd458d5d08868d90b564002de3ffe4324 SHA512 45fc40f4eebb338e4e4cba8ef446726a9126d45b6646ffcf3a2679dfde5630500e492667363c63f7806630d4b8d88a225080c0a2696c4170d86b1cf4d8b0a06c
@@ -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
}
+1 -1
View File
@@ -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>