From bd548df331dabcdf1dd91c560f02c5da86b2368e Mon Sep 17 00:00:00 2001 From: Pavel Sobolev Date: Sat, 11 Jul 2026 21:10:04 +0300 Subject: [PATCH] games-emulation/azahar: add 2125.1.3 Signed-off-by: Pavel Sobolev --- games-emulation/azahar/Manifest | 1 + games-emulation/azahar/azahar-2125.1.3.ebuild | 140 ++++++++++++++++++ 2 files changed, 141 insertions(+) create mode 100644 games-emulation/azahar/azahar-2125.1.3.ebuild diff --git a/games-emulation/azahar/Manifest b/games-emulation/azahar/Manifest index 1747a7566f..3dbc69f15e 100644 --- a/games-emulation/azahar/Manifest +++ b/games-emulation/azahar/Manifest @@ -1,2 +1,3 @@ DIST azahar-2125.1.1.tar.xz 41579724 BLAKE2B 78b8f3cbedb495cbec7e576c1c1100bd23d0c658067c82cd7cb61ffce3c07cc027dc3604e820ab2ddb6593460c66f165ffe9e01e9e4e2abdae1815e065b0fba0 SHA512 059cdf13de0c23ea07807b36fc9fe5f6ae8e62b9ef82d239e5cafbd46d705d97f7c823f0f6065475c3e687130842fc5ed42bce27f2d188f101426ba96d1f526c DIST azahar-2125.1.2.tar.xz 41577600 BLAKE2B f300164963a51dc3b079e518efd1dcef917b00524af0ee645c120e3cc492fd7437cb14d0c1a0e5285672ca9fed743473c2aa799983c8714a67f005f290b03f4c SHA512 dd27b27a8f54a7e8bb584699226e05413153a338208d8b6b174a35178dd1c563a73e69be5f4c31c029fbd23e3c5e9c606ace68e49027e10fef78142dc4b53103 +DIST azahar-2125.1.3.tar.xz 41595172 BLAKE2B a9907b1b30c2261d261bfb1480eb95ce4552d0b3850a2e1f10ed0ec1b134080e7b4b27b928460609e3e9bf0c0da0abe8bb4cada64770636c7f70b558817353cf SHA512 ce323b71f235de46db9dd8d8def536c3a88ae96b4fa2342de1b53fdacf1b3356e951c5c3a02c8476f4b21153ad1d7325c32bc4608854567dc3eaf266254ca261 diff --git a/games-emulation/azahar/azahar-2125.1.3.ebuild b/games-emulation/azahar/azahar-2125.1.3.ebuild new file mode 100644 index 0000000000..f9f837232f --- /dev/null +++ b/games-emulation/azahar/azahar-2125.1.3.ebuild @@ -0,0 +1,140 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake xdg + +DESCRIPTION="An open-source 3DS emulator project based on Citra" +HOMEPAGE="https://azahar-emu.org" +SRC_URI=" + https://github.com/azahar-emu/azahar/releases/download/${PV}/azahar-unified-source-${PV}.tar.xz -> ${P}.tar.xz +" + +S="${WORKDIR}/azahar-unified-source-${PV}" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="cpu_flags_x86_sse4_2 test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-cpp/nlohmann_json + dev-cpp/robin-map + dev-libs/boost:= + dev-libs/crypto++:= + dev-libs/dynarmic + dev-libs/inih + dev-libs/libfmt:= + dev-libs/microprofile + dev-libs/nihstro + dev-libs/openssl:= + dev-libs/sirit + dev-libs/teakra + dev-libs/xxhash + dev-qt/qtbase:6[concurrent,dbus,opengl,widgets] + dev-qt/qtmultimedia:6 + dev-util/glslang + media-libs/cubeb + media-libs/faad2 + media-libs/libsdl2 + media-libs/libsoundtouch:= + media-libs/openal + media-libs/vulkan-loader + media-video/ffmpeg + net-libs/enet + virtual/libusb +" +DEPEND=" + ${RDEPEND} + dev-util/spirv-headers + dev-util/vulkan-headers + media-libs/VulkanMemoryAllocator + amd64? ( dev-libs/xbyak ) + arm64? ( dev-libs/oaknut ) +" +BDEPEND=" + test? ( >=dev-cpp/catch-3:0 ) +" + +PATCHES=( + "${FILESDIR}/${PN}-2122.1-explicitly-require-the-tsl-robin-map-package.patch" + "${FILESDIR}/${PN}-2122.1-import-some-of-the-symbols-from-spv.patch" + "${FILESDIR}/${PN}-2122.1-rename-AV_OPT_TYPE_CHANNEL_LAYOUT-to-AV_OPT_TYPE_CHL.patch" + "${FILESDIR}/${PN}-2122.1-use-the-system-faad2-library.patch" + "${FILESDIR}/${PN}-2122.1-use-the-system-teakra-library.patch" + "${FILESDIR}/${PN}-2123-don-t-build-spirv-tools.patch" + "${FILESDIR}/${PN}-2123.2-use-the-system-sirit-library.patch" + "${FILESDIR}/${PN}-2125.1-use-the-system-xxhash-library.patch" +) + +# [directory]=license +declare -A KEEP_BUNDLED=( + # Generated or copied files for internal usage + [cmake-modules]=Boost-1.0 + [dds-ktx]=BSD-2 + [gamemode]=BSD + [glad]=MIT + [open_source_archives]=GPL-2+ + + # Reasons to keep are in `src_configure` + [httplib]=MIT + [lodepng]=ZLIB + [zstd]="GPL-2" +) + +add_bundled_licenses() { + for license in "${KEEP_BUNDLED[@]}"; do + if [[ -n "$license" ]]; then + LICENSE+=" ${license}" + fi + done +} +add_bundled_licenses + +src_prepare() { + local s remove=() + for s in externals/*; do + [[ -f ${s} ]] && continue + if ! has "${s#externals/}" "${!KEEP_BUNDLED[@]}"; then + remove+=( "${s}" ) + fi + done + + einfo "removing sources: ${remove[*]}" + rm -r "${remove[@]}" || die + + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DBUILD_SHARED_LIBS=no + -DCITRA_USE_PRECOMPILED_HEADERS=no + -DCITRA_WARNINGS_AS_ERRORS=no + -DENABLE_WEB_SERVICE=no + -DUSE_SYSTEM_LIBS=yes + + -DENABLE_SSE42=$(usex cpu_flags_x86_sse4_2) + -DENABLE_TESTS=$(usex test) + + # Shared library is not supported + -DDISABLE_SYSTEM_CPP_HTTPLIB=yes + + # Lodepng is designed to be bundled + -DDISABLE_SYSTEM_LODEPNG=yes + + # Upstream depends on `zstd/contrib/seekable_format/zstd_seekable.h` + -DDISABLE_SYSTEM_ZSTD=yes + + -Wno-dev + ) + + cmake_src_configure +} + +src_install() { + cmake_src_install + dodoc license.txt +}