sheepshaver-1.0.0_p20251227tatsh-overlay
download
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools desktop fcaps flag-o-matic
DESCRIPTION="Macintosh emulator (updated fork)."
HOMEPAGE="https://github.com/kanjitalk755/macemu"
SHA="2d388f768246180aa4263c5c50d511fa13488f55"
SRC_URI="https://github.com/kanjitalk755/macemu/archive/${SHA}.tar.gz -> ${P}.tar.gz
https://sheepshaver.cebix.net/images/sheep.png -> ${PN}-icon.png"
S="${WORKDIR}/macemu-${SHA}/SheepShaver/src/Unix"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+jit"
DEPEND="dev-libs/glib
media-libs/libsdl2
x11-libs/gtk+:2
x11-libs/libX11"
RDEPEND="${DEPEND}"
PATCHES=( "${FILESDIR}/${PN}-0001-fix-implicit.patch" )
MAKEOPTS+=" -j1"
FILECAPS=( cap_sys_rawio /usr/bin/SheepShaver )
src_unpack() {
local archive
for archive in ${A}; do
case "${archive}" in
*.png)
;;
*)
unpack "${archive}"
;;
esac
done
}
src_prepare() {
default
local AT_M4DIR="m4"
eautoreconf
}
src_configure() {
filter-lto
econf \
"$(use_enable jit)" \
--disable-sdl-static \
--enable-sdl-audio \
--enable-sdl-video \
--with-bincue \
--with-gtk \
--without-esd
}
src_install() {
emake DESTDIR="${D}" install
newicon -s 32 "${DISTDIR}/${PN}-icon.png" "${PN}.png"
make_desktop_entry SheepShaver SheepShaver "${PN}"
dodoc ../../NEWS ../../../README.md
}