commit: e13aab6d391cb2ef03c5eab4160d8332cd96e314 Author: Lucio Sauer <watermanpaint <AT> posteo <DOT> net> AuthorDate: Fri Aug 16 00:15:20 2024 +0000 Commit: Lucio Sauer <watermanpaint <AT> posteo <DOT> net> CommitDate: Fri Aug 16 00:42:41 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e13aab6d
app-emulation/x48ng: add 0.38.0 Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net> app-emulation/x48ng/Manifest | 1 + app-emulation/x48ng/x48ng-0.38.0.ebuild | 87 +++++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+) diff --git a/app-emulation/x48ng/Manifest b/app-emulation/x48ng/Manifest index 7cf43c088..ed641a490 100644 --- a/app-emulation/x48ng/Manifest +++ b/app-emulation/x48ng/Manifest @@ -1 +1,2 @@ DIST x48ng-0.37.99_p20240812.tar.gz 189817 BLAKE2B e3a69a4cacbaf78254391023f3b5ace6d090ac5ea9b68560dfc3d164c85f27ac9f75308a3ff3b6eec8ae16af70ce9d6dc81d2eeb1d0bd1b31ea3ba5d0af4c859 SHA512 f6a2f77b208d125692e9bb40229b5fea81dbea7d27bc65e24f7082e4278af0d21ab69adea40bbd44081eca40d522facbc31c16b956a6c9b3a815d2d2ac2742cd +DIST x48ng-0.38.0.gh.tar.gz 189888 BLAKE2B a14072ec2f36d24b58eac49bf416943eb66df60898ab3936295a1f4db23daf2d48a0c411f902c4310f2156bb25f6392912377731f202a9e1e74423f8e6d8741f SHA512 c67e21e176c048fcbe8afb72e69a40c686a9f8d5187adf3797943d400fff7069a0c160f8952561a25b0286cdfbe303cf7c3744ce31fe1ccc281b63dd553b3d3b diff --git a/app-emulation/x48ng/x48ng-0.38.0.ebuild b/app-emulation/x48ng/x48ng-0.38.0.ebuild new file mode 100644 index 000000000..8fec24997 --- /dev/null +++ b/app-emulation/x48ng/x48ng-0.38.0.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LUA_COMPAT=( luajit ) + +inherit lua-single prefix toolchain-funcs + +DESCRIPTION="HP48 emulator" + +HOMEPAGE="https://github.com/gwenhael-le-moine/x48ng" + +SRC_URI="https://github.com/gwenhael-le-moine/x48ng/archive/refs/tags/${PV}.tar.gz + -> ${P}.gh.tar.gz" + +LICENSE="GPL-2 MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="sdl X" +REQUIRED_USE="${LUA_REQUIRED_USE}" + +RDEPEND="${LUA_DEPS} +sys-libs/ncurses:= +sys-libs/readline:= +X? ( + x11-libs/libX11 + x11-libs/libXext +) +sdl? ( + =media-libs/libsdl-1.2* + media-libs/sdl-gfx:= +) +" +DEPEND="${RDEPEND} + X? ( x11-base/xorg-proto ) +" +BDEPEND="virtual/pkgconfig" + +src_prepare() { + sed -e "s/lua)/${ELUA})/" -e 's/LICENSE//' -i Makefile || die + default +} + +src_configure() { + conf=( + $(usex X WITH_X11={yes,no}) + $(usex sdl WITH_SDL={yes,no}) + ) +} + +src_compile() { + tc-export CC PKG_CONFIG + export {C,CPP,LD}FLAGS + emake ${conf[@]} +} + +src_install() { + emake install DESTDIR="${D}" PREFIX="${EPREFIX}/usr" \ + MANDIR="${EPREFIX}/usr/share/man" \ + DOCDIR="${EPREFIX}/usr/share/doc/${PF}" \ + ${conf[@]} + hprefixify "${ED}"/usr/share/x48ng/setup-x48ng-home.sh +} + +pkg_postinst() { + elog "Run ${EROOT}/usr/share/x48ng/setup-x48ng-home.sh to setup your" + elog "config directory." + elog + elog "The X48 emulator requires an HP48 ROM image to run." + elog + elog "If you own an HP-48 calculator, you can use the ROMDump utility" + elog "included with this package to obtain it from your calculator." + elog "The instructions of how to do this are included in the package." + elog + elog "Alternatively, HP has provided the ROM images for non-commercial" + elog "use only." + elog + elog "Due to confusion over the legal status of these ROMs you must" + elog "manually download one from http://www.hpcalc.org/hp48/pc/emulators/" + elog "If you consent to it, this can be done with the aforementioned" + elog "script. In that case, it sets up a HP 48GX with a 128KB card in" + elog "port 1 and a 4MB card in port 2." + elog + elog "You will only have to do this the first time you run x48ng. The" + elog "ROM will be stored in your config directory for future runs." +}
