app-emulation/plus42: add 1.3.12

Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
This commit is contained in:
Bernard Cafarelli 2025-12-09 09:29:28 +01:00
parent 585551e69a
commit 8d2908c40c
No known key found for this signature in database
GPG Key ID: 00F7AB331B0F097F
2 changed files with 50 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST plus42-upstream-1.3.10.tgz 7663336 BLAKE2B d3ea7060a1cc9cd5c71a17ada6721418f72e010b3fce4838d93222de400e1d980080e174c73eddcd6b5e3bc7bd5e18d930c32ce87a37d42e3544992e9f5b1262 SHA512 79459b3cb47078d4dbf8f251ba0781041bc9db13b78f4e5cbabaaef1fe3433bd860425de7515b7480b315f795afbb92fc20ce41586d81e2685ba3c20536efe6c
DIST plus42-upstream-1.3.12.tgz 7650034 BLAKE2B fe49da5b72542ce84f2fcdcf242b6bafb4b4a5af88cf9f0d2f798fe6b724c2c71656269d10779ac1046655404be7e931e02e529fee4fc4ac3348fbbc09efcbbc SHA512 60ffc6d466ae3274bc6c915f857fcf1e69a796acca7cf6e621fc335cb8fcb6dd694d42469ac537edac8c224a604b58e6432f2987cba461c2dc8674998a0271a6

View File

@ -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
}