# Copyright 2021-2024 Bryan Gardiner # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit cmake GIT_REV=ef94150e2dcec522e3099f4d03a4e8f2639f7232 DESCRIPTION="Portable implementation of the Macintosh Toolbox API" HOMEPAGE="https://github.com/jorio/Pomme" SRC_URI="https://github.com/jorio/Pomme/archive/${GIT_REV}.tar.gz -> ${P}.tar.gz" LICENSE="MIT CC0-1.0 LGPL-2.1+ BSD Boost-1.0" SLOT="20231019" KEYWORDS="~amd64" RDEPEND=" media-libs/libsdl2 " DEPEND="${RDEPEND}" DOCS=( README.md ) S="${WORKDIR}/Pomme-${GIT_REV}" src_install() { exeinto "/usr/$(get_libdir)/Pomme-${SLOT}" doexe "${BUILD_DIR}/libPomme.so" ( cd "${S}/src" while read -r headerPath; do insinto "/usr/include/Pomme-${SLOT}/$(dirname "$headerPath")" doins "$headerPath" done < <(find . -name '*.h') ) einstalldocs }