# Copyright 2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit edo toolchain-funcs SHA="878090980a9042c61901920fed1b034af215e8c7" DESCRIPTION="Tools to make, extract, split and patch PlayStation 3 ISO images" HOMEPAGE="https://github.com/bucanero/ps3iso-utils" SRC_URI="https://github.com/bucanero/${PN}/archive/${SHA}.tar.gz -> ${P}.gh.tar.gz" S="${WORKDIR}/${PN}-${SHA}" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64" TOOLS=( extractps3iso makeps3iso patchps3iso splitps3iso ) src_compile() { # The Makefiles strip and add macOS paths. local t for t in "${TOOLS[@]}"; do # shellcheck disable=SC2086 edo "$(tc-getCC)" ${CFLAGS} ${LDFLAGS} -o "${t}/${t}" "${t}/${t}.c" done } src_install() { local t for t in "${TOOLS[@]}"; do dobin "${t}/${t}" done dodoc README.md }