gentoo-ebuilds/games-emulation/desmume/desmume-0.9.13-r1.ebuild
Michał Górny f42710561c
*/*: update the remaining packages for virtual/zlib
Update done using:

```
git grep -l sys-libs/zlib sys-* | xargs sed -i -e s@sys-libs/zlib@virtual/zlib@g
git grep -l virtual/zlib-ng sys-* | xargs sed -i -e s@virtual/zlib-ng@sys-libs/zlib-ng@g
git diff --name-only | xargs copybump
git diff --name-only | xargs grep -l PYTHON_COMPAT | xargs gpy-impl -@dead
pkgcheck scan --commits -c SourcingCheck,VisibilityCheck --exit error
```

Plus reverts in sys-libs/minizip-ng, sys-libs/zlib-ng and profiles.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
2025-11-04 09:39:44 +01:00

58 lines
1.3 KiB
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit flag-o-matic meson xdg
DESCRIPTION="Nintendo DS emulator"
HOMEPAGE="https://desmume.org/"
SRC_URI="https://github.com/TASEmulators/desmume/releases/download/release_$(ver_rs 1- _)/${P}.tar.xz"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gdb +gui openal wifi"
RDEPEND="
dev-libs/glib:2
media-libs/libsdl2[X,opengl,sound,video]
media-libs/libsoundtouch:=
net-libs/libpcap
virtual/zlib:=
x11-libs/agg
x11-libs/libX11
gui? (
media-libs/libglvnd[X]
x11-libs/cairo
x11-libs/gdk-pixbuf:2
x11-libs/gtk+:3
)
openal? ( media-libs/openal )
!openal? ( media-libs/alsa-lib )"
DEPEND="
${RDEPEND}
x11-base/xorg-proto"
PATCHES=(
"${FILESDIR}"/${PN}-0.9.11_p20210409-fix-gtk-cliopts.patch
"${FILESDIR}"/${PN}-0.9.11_p20210409-openal-automagic.patch
)
DOCS=( ${PN}/{AUTHORS,ChangeLog,README,README.LIN,doc/.} )
src_configure() {
append-flags -fno-strict-aliasing #858629
append-cppflags -D_XOPEN_SOURCE=500 #874996
filter-lto # odr issues
local EMESON_SOURCE=${S}/${PN}/src/frontend/posix
local emesonargs=(
$(meson_use gdb gdb-stub)
$(meson_use gui frontend-gtk)
$(meson_use openal)
$(meson_use wifi)
)
meson_src_configure
}