diff --git a/app-emulation/plus42/Manifest b/app-emulation/plus42/Manifest index 156d37e652eab..e671f63b5d2bf 100644 --- a/app-emulation/plus42/Manifest +++ b/app-emulation/plus42/Manifest @@ -1 +1,2 @@ DIST plus42-upstream-1.2.6.tgz 7651293 BLAKE2B 3f2d62d13d654b52a4479d6afa3719e26acb849fe8a63523df9970c8701046a0b43830bccb0a35f12bdd784b7a858c1f40e16c5c878d413666eacbe7327b08fd SHA512 929e34809d5983654ce4a8fbcce9cb7d486d78c682367e8af02e5d05863c14143f4378bc047051cc13df6d96e4e60b64d74553e278ca7b6e350d0294650569ab +DIST plus42-upstream-1.2.7.tgz 7654451 BLAKE2B 9f6399d492fcbc7282fcb0e906dd67d09068e5e45969f90e9ae728d0f0371ba98715eb927d7d7795505a30f353df30379e0505cb9fdb1715612dfb4dbe9b686c SHA512 a7dbee0d4454ee4265df3e80d776eb99a8fcbdee8bcd42f83c288684064e9c131ec4de6b74eba8000df22086777c2ffcb07c53d83ed8fe87732c02317d2537c1 diff --git a/app-emulation/plus42/plus42-1.2.7.ebuild b/app-emulation/plus42/plus42-1.2.7.ebuild new file mode 100644 index 0000000000000..8749be2a6c4c2 --- /dev/null +++ b/app-emulation/plus42/plus42-1.2.7.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +MY_PV="${PN}-upstream-${PV}" + +DESCRIPTION="An Enhanced HP-42S Calculator Simulator" +HOMEPAGE="https://thomasokken.com/plus42/" +SRC_URI="https://thomasokken.com/plus42/upstream/${MY_PV}.tgz" +S=${WORKDIR}/${MY_PV} + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+alsa" + +DEPEND="app-accessibility/at-spi2-core + x11-libs/cairo + x11-libs/gdk-pixbuf + x11-libs/gtk+:3 + alsa? ( media-libs/alsa-lib )" +RDEPEND="${DEPEND}" + +DOCS=( CREDITS HISTORY README ) + +PATCHES=( + "${FILESDIR}/${PN}-1.0.9-fix-makefile.patch" + "${FILESDIR}/${PN}-1.0.12-fix-build-intel-lib.patch" +) + +src_prepare() { + default +} + +src_compile() { + local myconf + use alsa && myconf="AUDIO_ALSA=yes" + emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" ${myconf} -C gtk + emake -C gtk clean + emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" BCD_MATH=1 ${myconf} -C gtk +} + +src_install() { + default + dobin gtk/plus42bin gtk/plus42dec +}