[gentoo-commits] repo/gentoo:master commit in: net-misc/moonlight/files/
commit: 2a729de7fdceb4f00b81b2b059660d488ca847d9 Author: Michael Mair-Keimberger levelnine at> AuthorDate: Tue Jun 20 10:46:59 2023 + Commit: James Le Cuirot gentoo org> CommitDate: Tue Jun 20 19:59:58 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a729de7 net-misc/moonlight: remove unused patch Signed-off-by: Michael Mair-Keimberger levelnine.at> Closes: https://github.com/gentoo/gentoo/pull/31550 Signed-off-by: James Le Cuirot gentoo.org> .../moonlight/files/moonlight--automagic.patch | 136 - 1 file changed, 136 deletions(-) diff --git a/net-misc/moonlight/files/moonlight--automagic.patch b/net-misc/moonlight/files/moonlight--automagic.patch deleted file mode 100644 index 1a2b56ceea7a.. --- a/net-misc/moonlight/files/moonlight--automagic.patch +++ /dev/null @@ -1,136 +0,0 @@ -From 3bd5c3728b5469e88dcba794e371e9b028c47df8 Mon Sep 17 00:00:00 2001 -From: James Le Cuirot -Date: Sat, 3 Jun 2023 17:51:00 +0100 -Subject: [PATCH] Allow forced disabling of features instead of relying on - pkg-config - -So-called "automagic" behaviour is considered unhelpful by -distributions. A user may unintentionally build Moonlight with VDPAU -support simply because they had that library installed, only for the -whole application to break when they uninstall the library later. This -could happen on any distribution, but it should especially be avoided on -source-based distributions, where the user would not expect the package -manager to encounter such issues. - -This commit is best viewed without whitespace changes. - app/app.pro | 92 + - 1 file changed, 57 insertions(+), 35 deletions(-) - -diff --git a/app/app.pro b/app/app.pro -index 82d941e7..85f38dd4 100644 a/app/app.pro -+++ b/app/app.pro -@@ -65,52 +65,74 @@ unix:!macx { - CONFIG += link_pkgconfig - PKGCONFIG += openssl sdl2 SDL2_ttf opus - --packagesExist(libavcodec) { --PKGCONFIG += libavcodec libavutil --CONFIG += ffmpeg -- --packagesExist(libva) { --packagesExist(libva-x11) { --CONFIG += libva-x11 -+!disable-ffmpeg { -+packagesExist(libavcodec) { -+PKGCONFIG += libavcodec libavutil -+CONFIG += ffmpeg -+ -+!disable-libva { -+packagesExist(libva) { -+!disable-x11 { -+packagesExist(libva-x11) { -+CONFIG += libva-x11 -+} -+} -+!disable-wayland { -+packagesExist(libva-wayland) { -+CONFIG += libva-wayland -+} -+} -+!disable-libdrm { -+packagesExist(libva-drm) { -+CONFIG += libva-drm -+} -+} -+CONFIG += libva -+} - } --packagesExist(libva-wayland) { --CONFIG += libva-wayland -+ -+!disable-libvdpau { -+packagesExist(vdpau) { -+CONFIG += libvdpau -+} - } --packagesExist(libva-drm) { --CONFIG += libva-drm -+ -+!disable-mmal { -+packagesExist(mmal) { -+PKGCONFIG += mmal -+CONFIG += mmal -+} - } --CONFIG += libva --} - --packagesExist(vdpau) { --CONFIG += libvdpau --} -+!disable-libdrm { -+packagesExist(libdrm) { -+PKGCONFIG += libdrm -+CONFIG += libdrm -+} -+} - --packagesExist(mmal) { --PKGCONFIG += mmal --CONFIG += mmal -+!disable-cuda { -+packagesExist(ffnvcodec) { -+PKGCONFIG += ffnvcodec -+CONFIG += cuda -+} -+} - } - --packagesExist(libdrm) { --PKGCONFIG += libdrm --CONFIG += libdrm -+!disable-wayland { -+packagesExist(wayland-client) { -+CONFIG += wayland -+PKGCONFIG += wayland-client -+} - } - --packagesExist(ffnvcodec) { --PKGCONFIG += ffnvcodec --CONFIG += cuda -+!disable-x11 { -+packagesExist(x11) { -+DEFINES += HAS_X11 -+PKGCONFIG += x11 -+} - } - } -- --packagesExist(wayland-client) { --CONFIG += wayland --PKGCONFIG += wayland-client --} -- --packagesExist(x11) { --DEFINES += HAS_X11 --PKGCONFIG += x11 --} - } - win32 { -
[gentoo-commits] repo/gentoo:master commit in: net-misc/moonlight/files/, net-misc/moonlight/
commit: d5528cd4217319515d6f2ca6a5b0676daa52f2c4 Author: James Le Cuirot gentoo org> AuthorDate: Sun Jun 4 17:09:04 2023 + Commit: James Le Cuirot gentoo org> CommitDate: Sun Jun 4 20:31:13 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5528cd4 net-misc/moonlight: New package Signed-off-by: James Le Cuirot gentoo.org> net-misc/moonlight/Manifest| 1 + .../files/moonlight-4.3.1-automagic.patch | 136 + .../moonlight/files/moonlight--automagic.patch | 136 + net-misc/moonlight/metadata.xml| 19 +++ net-misc/moonlight/moonlight-4.3.1.ebuild | 83 + net-misc/moonlight/moonlight-.ebuild | 84 + 6 files changed, 459 insertions(+) diff --git a/net-misc/moonlight/Manifest b/net-misc/moonlight/Manifest new file mode 100644 index ..acf0147bd96b --- /dev/null +++ b/net-misc/moonlight/Manifest @@ -0,0 +1 @@ +DIST MoonlightSrc-4.3.1.tar.gz 71454450 BLAKE2B cd6d8d95c3d53dbf73850cd30f86bdb9837806a642472454d70f6abee20ae91bc79c0671c4da0a74fb5f43086841a8318718c4f2f4e4768b395fb4b38d1dde9e SHA512 f5f7b23929aadb87716470522a315cba40d8155be6b76297eab4107e0fef71b48f9f4c9a4cc2b58bd48579db052a8ca8ecda9b49c78c3d229863a30886cf1847 diff --git a/net-misc/moonlight/files/moonlight-4.3.1-automagic.patch b/net-misc/moonlight/files/moonlight-4.3.1-automagic.patch new file mode 100644 index ..10a6914f4dea --- /dev/null +++ b/net-misc/moonlight/files/moonlight-4.3.1-automagic.patch @@ -0,0 +1,136 @@ +From ff49dcfa47f673bcd27314b03ba68f99f7619c39 Mon Sep 17 00:00:00 2001 +From: James Le Cuirot +Date: Sat, 3 Jun 2023 17:51:00 +0100 +Subject: [PATCH] Allow forced disabling of features instead of relying on + pkg-config + +So-called "automagic" behaviour is considered unhelpful by +distributions. A user may unintentionally build Moonlight with VDPAU +support simply because they had that library installed, only for the +whole application to break when they uninstall the library later. This +could happen on any distribution, but it should especially be avoided on +source-based distributions, where the user would not expect the package +manager to encounter such issues. + +This commit is best viewed without whitespace changes. +--- + app/app.pro | 92 + + 1 file changed, 57 insertions(+), 35 deletions(-) + +diff --git a/app/app.pro b/app/app.pro +index dc21b854..45ee1f89 100644 +--- a/app/app.pro b/app/app.pro +@@ -65,52 +65,74 @@ unix:!macx { + CONFIG += link_pkgconfig + PKGCONFIG += openssl sdl2 SDL2_ttf opus + +-packagesExist(libavcodec) { +-PKGCONFIG += libavcodec libavutil +-CONFIG += ffmpeg +- +-packagesExist(libva) { +-packagesExist(libva-x11) { +-CONFIG += libva-x11 ++!disable-ffmpeg { ++packagesExist(libavcodec) { ++PKGCONFIG += libavcodec libavutil ++CONFIG += ffmpeg ++ ++!disable-libva { ++packagesExist(libva) { ++!disable-x11 { ++packagesExist(libva-x11) { ++CONFIG += libva-x11 ++} ++} ++!disable-wayland { ++packagesExist(libva-wayland) { ++CONFIG += libva-wayland ++} ++} ++!disable-libdrm { ++packagesExist(libva-drm) { ++CONFIG += libva-drm ++} ++} ++CONFIG += libva ++} + } +-packagesExist(libva-wayland) { +-CONFIG += libva-wayland ++ ++!disable-libvdpau { ++packagesExist(vdpau) { ++CONFIG += libvdpau ++} + } +-packagesExist(libva-drm) { +-CONFIG += libva-drm ++ ++!disable-mmal { ++packagesExist(mmal) { ++PKGCONFIG += mmal ++CONFIG += mmal ++} + } +-CONFIG += libva +-} + +-packagesExist(vdpau) { +-CONFIG += libvdpau +-} ++!disable-libdrm { ++packagesExist(libdrm) { ++PKGCONFIG += libdrm ++CONFIG += libdrm ++} ++} + +-packagesExist(mmal) { +-PKGCONFIG += mmal +-CONFIG += mmal ++!disable-cuda { ++packagesExist(ffnvcodec) { ++PKGCONFIG += ffnvcodec ++CONFIG += cuda ++} ++} + } + +-packagesExist(libdrm) { +-