From 02eb6576978c38afed5787f6f2dbab8353379d66 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 22 Apr 2024 12:05:36 +0100 Subject: gentoo auto-resync : 22:04:2024 - 12:05:36 --- net-misc/Manifest.gz | Bin 54456 -> 54457 bytes net-misc/asterisk-base/Manifest | 4 +- net-misc/asterisk-base/asterisk-base-3.ebuild | 39 +++ net-misc/asterisk-base/metadata.xml | 3 + net-misc/sunshine/Manifest | 10 +- net-misc/sunshine/sunshine-0.22.2.ebuild | 378 ----------------------- net-misc/sunshine/sunshine-0.23.1.ebuild | 379 ++++++++++++++++++++++++ net-misc/sunshine/sunshine-9999.ebuild | 3 +- net-misc/you-get/Manifest | 2 + net-misc/you-get/files/you-get-python3.12.patch | 39 +++ net-misc/you-get/you-get-0.4.1650-r1.ebuild | 28 ++ 11 files changed, 500 insertions(+), 385 deletions(-) create mode 100644 net-misc/asterisk-base/asterisk-base-3.ebuild delete mode 100644 net-misc/sunshine/sunshine-0.22.2.ebuild create mode 100644 net-misc/sunshine/sunshine-0.23.1.ebuild create mode 100644 net-misc/you-get/files/you-get-python3.12.patch create mode 100644 net-misc/you-get/you-get-0.4.1650-r1.ebuild (limited to 'net-misc') diff --git a/net-misc/Manifest.gz b/net-misc/Manifest.gz index e8fd2f673146..8bb5b3937354 100644 Binary files a/net-misc/Manifest.gz and b/net-misc/Manifest.gz differ diff --git a/net-misc/asterisk-base/Manifest b/net-misc/asterisk-base/Manifest index e6b651c92083..0d69dba4ae33 100644 --- a/net-misc/asterisk-base/Manifest +++ b/net-misc/asterisk-base/Manifest @@ -6,6 +6,8 @@ AUX confd-1 4050 BLAKE2B cda2632a9b951f2061d4d7e25b221d0473c623860aa96eeb2bf0b8a AUX initd-1 8882 BLAKE2B 0dd7507254955ccc21688068107211380289ff468ad74140f135097d2babdb1b31db161bf2d91fa237a883a94c4d1af84c31856cee88f07cee52a17f212ad720 SHA512 2dd51d8342e212df4d98576de8b1017d6e7fdd257a70b49d2baf78bc1640911e351ec89b14fe4c55d905d738e277f2b65d4e627535eecc5eb195e7678b3d9759 AUX logrotate-1 848 BLAKE2B db047c4cc1c3b1ea20ce6a3313332622374bfae9728b09f8b5bb2bfa6136000b95dbfd0a58ac172ac6c41b99c846d8e4ee630ac091f28552b39cfd758772ab4b SHA512 02eba497df35690755755c840534cc00f7851c75f4103381edec2d9c21681c302e2e4a48f218792292bf378b269b6f6a0e4d0b2b571a4e25921624710764b841 AUX tmpfiles-1.conf 84 BLAKE2B 133761739570a08bebb88059df1a870ddaef194bd1c5a1a4d4626d3791e3cb664b03ff51260892167a22c3cfca2caa02d162e7476070ec1374a92ef24ec799dc SHA512 680a4478d3a501c26fa19e29fad18389e7e02f04c8b9a676ae0f192fa6afbed95a826b74696c6c5459aba5aba6a16c57df8a9c5ff486e9dc8f1cbd01185e9320 +DIST asterisk-base-3.tar.gz 14589 BLAKE2B 854df19a0aa6cbd6c452ec03f8766f166824580f30edbf158f9e23baa451b092388b5f653999cab63d3232d7ff2c1efb7784c8e69d9ea1f2855dd446613ade87 SHA512 e2b53a3db6cb38fcc8456c3c69806452ecdd748f7d5833c6fdc426f436f92b651d69a902f6f588ffc371903c5a1374a9fc0695a74f9b4e47e75df3b1ce50764e EBUILD asterisk-base-1.ebuild 1009 BLAKE2B fee1b726a36acff9a1ec4c56a157bf5d03363bc869aa82f6ca3bb9e0e68ca0a240248fcdafb1e0280ce9dc564dbeea5b06648b73d7bc43f38f818091012fdbd2 SHA512 c73fdf5eca5afe8fb53e52d76bdb6274fe05e9a1d2b0ec57fb29c91916b7c56b2c36b2895e095a5a8d960da478c81fec024f340ade1269f311fc86b104bb2033 EBUILD asterisk-base-2.ebuild 1021 BLAKE2B 57408ea752cc26cd7f72a7e8f32de9268ea1b66d3eaacb17fb6220133abb519736a336f905789fba1cfd7d9f1c9b59ad88388c2fe720264d030892089864468a SHA512 dfd90fa5c5688c1723d8a95107a68fb319cede39fad9d4a8354d7cda10381348f1232bef945fea70c23a48c09d4843daf47172551c30c8913a75b692c70dbce3 -MISC metadata.xml 388 BLAKE2B 8627eaf1867246255f9cf5e886749300fe854b6fc4add00c1fb7395a41349a42aeaf9bcd1866b1ef8a6b3ecd04416cd6ebb7dcebd266ae341af4aaa144de510d SHA512 238ec6ad37a6fcb588eeb6f5f00befa9e9f483cbd012d7e98b9627a3bf3f401ea74aee560a1909458a471e6c44b3ea13eb3a7d30e5f5a1f5c5464c9775d5614d +EBUILD asterisk-base-3.ebuild 883 BLAKE2B b398640cb5161e6cc346814f71c96d3b7b54fd58dc6272e5577c0d392674435870ac4c800de9cabbc0e97b992547c299e48ceceba72a2892e8d25eadf27d264d SHA512 7e9e8820d35d09da1a3d59a12b3ea29d2f9087b16832f795e548a45eb48314d81e319b6fe2594b7251ad55ccf656ec1c87868518feeb788d0649a305ecbb3d3e +MISC metadata.xml 475 BLAKE2B cd7c9c6474cecd6aeda2b62144f3db03156ba2a5cfeda845d36d2fd24b16dce5bd05b5d425a559409c36806b4d3242ee0746aec44afb2645024166b94fc22d6e SHA512 fb5795745d56526501ade0894424c7558019283ab07faa6a64daebeadf813aa565afaa11a2215c106cf0d3c99c79e10f820b57fac6981e32cc0091a75046ab86 diff --git a/net-misc/asterisk-base/asterisk-base-3.ebuild b/net-misc/asterisk-base/asterisk-base-3.ebuild new file mode 100644 index 000000000000..3d9e4d044130 --- /dev/null +++ b/net-misc/asterisk-base/asterisk-base-3.ebuild @@ -0,0 +1,39 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit systemd tmpfiles + +DESCRIPTION="Gentoo Asterisk init scripts" +HOMEPAGE="https://github.com/jkroonza/asterisk-base" +SRC_URI="https://github.com/jkroonza/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86" + +RDEPEND=" + net-misc/asterisk + !<=net-misc/asterisk-16.30.0:0/16 + !<=net-misc/asterisk-18.18.0:0/18 + !<=net-misc/asterisk-20.3.0:0/20 +" + +src_install() { + newinitd initd asterisk + newconfd confd asterisk + dosbin asterisk_wrapper + + systemd_dounit asterisk.service + systemd_install_serviced asterisk.service.conf asterisk.service + + newtmpfiles tmpfiles.conf asterisk.conf + + insinto /etc/logrotate.d + newins logrotate asterisk +} + +pkg_postinst() { + tmpfiles_process asterisk.conf +} diff --git a/net-misc/asterisk-base/metadata.xml b/net-misc/asterisk-base/metadata.xml index 6aebbc46f559..ac7674006c95 100644 --- a/net-misc/asterisk-base/metadata.xml +++ b/net-misc/asterisk-base/metadata.xml @@ -9,4 +9,7 @@ proxy-maint@gentoo.org Proxy Maintainers + + jkroonza/asterisk-base + diff --git a/net-misc/sunshine/Manifest b/net-misc/sunshine/Manifest index 5ef70ed6d838..5d324a14d8a1 100644 --- a/net-misc/sunshine/Manifest +++ b/net-misc/sunshine/Manifest @@ -8,9 +8,9 @@ DIST ffmpeg-6.1.1.tar.xz 10458600 BLAKE2B 77827ff92b47c773ed82e7b7793dbb135c370f DIST moonlight-common-c-cbd0ec1b25edfb8ee8645fffa49ff95b6e04c70e.tar.gz 148691 BLAKE2B 2650e48ef5d08b5e4a901e0b394364335503cd717ae75b4ecf5329395f39d3312a9bbfe08137d2b7697f7b1672749d148e100fbaa5c7f87d190ab8157f158639 SHA512 f1d7848138b85a88abf798774f12f6491e19ae5e7699715b0454bfccc184439fba0ebf7e05327fd649e320e5d1ad610c57fe71190f92cf2248c8f974f9d79aaf DIST moonlight-enet-04e27590670a87a7cd40f5a05cda97467e4e25a3.tar.gz 86434 BLAKE2B 8a5535843e4c650b945882abac1542bf8c79dc420607b88433d239aa5a17380f02e77bb8f1fcbe45dcb8ef894e6c9b4d940f4d3b34b956ce42d86f6a8ca5227a SHA512 6d2e9447e546489365b1fb563ed52664a91981717a3a3a9faa9600ab62be5ac09bd24ee9dd505833d31981ce6222f5ef430268a9f92aa83fa288b5b8d681e2aa DIST nanors-e9e242e98e27037830490b2a752895ca68f75f8b.tar.gz 194694 BLAKE2B 1effd7c0884ffd38b63d61a7872337797529ef2012f9de0950088a5004cb32a2fb2c14bcab2ec6719968864e5e6b9a67e96afa39466e2071bf4a0cd752ae4b29 SHA512 548be25650619a6c31944cd7a745fd40d5bc5008f2d7f91e0207a10b923764cb88fd2ddcb71eaed7c4863ec89b34d61011b666e292da071ac3b4429e4d7dd027 -DIST sunshine-0.22.2.tar.gz 24109406 BLAKE2B b37ef02e33af7257a0173e11fcf230cb044ef641103ef82631bd4751e5a5fd8aa0e8dc64a7835789a6741951f19289cc11f819e2e580dc39681a10cf00a845f5 SHA512 0913571ace3aefe1db27b7b0612fdb97fa7b072543dadd08f6276c1c9cde9d1d3aa4cf2bf137a96c866da9915b72ccbbb9bda096dcd86d61034c67a58fac4bda -DIST sunshine-npm-cache-0.22.2.tar.xz 22457340 BLAKE2B e843ada90c183ab0d33182a419150e47e2ee8f348150082df2617416a80d636086a1f34231045800363cc97adc44cfab22a46d6700c330104fb33a9894a39ded SHA512 fb465b62dc8a064eda3bc811ff4acf9ac56a42bcb87e68bf63502ffeb087f12f26f60b37da76fc0eb4e83c328e0c9bc471f79d42cde932b8e43b8a1456ab7523 -DIST wlr-protocols-4264185db3b7e961e7f157e1cc4fd0ab75137568.tar.bz2 19574 BLAKE2B 65666095f186857e3c5274b23d5c40b40b0ba5d945c7b34331a06320128cb69a36a76baf2381b635858736ca6ed438c2ed67c03fac1c20e1ec4d71de27037e42 SHA512 0e6afde055d9b76bcb8c717433b78814f2cf9338ead451d3119f62463198ef272029767898e8f7d32896f2732be3aaa2a0373c671d8196e745d62f6116cd1583 -EBUILD sunshine-0.22.2.ebuild 11903 BLAKE2B 02c0191b9ba4550908cebf0d2da4f37fa37f0761f2e59d54c6e3a85c4381d1182bf0959185fecfa7f3d1a97df18b7d8b7735d71ce3a0746c854c9b4d8913365c SHA512 fac7f4cda4f110a90d0eeb0fb34b23aaea4b560e694255d3de95e0bd8559e346f69633d51bc3979c251254d7f0bc6de87bfeeec04ee5c17bb1eee733d502286a -EBUILD sunshine-9999.ebuild 11903 BLAKE2B 02c0191b9ba4550908cebf0d2da4f37fa37f0761f2e59d54c6e3a85c4381d1182bf0959185fecfa7f3d1a97df18b7d8b7735d71ce3a0746c854c9b4d8913365c SHA512 fac7f4cda4f110a90d0eeb0fb34b23aaea4b560e694255d3de95e0bd8559e346f69633d51bc3979c251254d7f0bc6de87bfeeec04ee5c17bb1eee733d502286a +DIST sunshine-0.23.1.tar.gz 24503568 BLAKE2B 0c589f38a7d638c49af6385def2676de04af422f85d37228988bd7c822ffc006dbac0a1695e01527ac7a1d5ee28103cff00d78a97d57f61247772a6e6cc1fe18 SHA512 7a9150baf4ecdad1035666993c60744390e227ebeaf467447c53675dc0aecc7031cd9c9b253fbbbbac072f5592c3690c6acfde41f38d441497a17157417f1e16 +DIST sunshine-npm-cache-0.23.1.tar.xz 23477572 BLAKE2B 24674a6c6ebed1cc31e3fbee2ededef27c1c24cc7f1be63fba19023b1a6171b9e1a0e83363f7eabad1957a96eede471ae3df4df5e5ba66f5c80f57b56781bf52 SHA512 84ec1d393b1c2f333954bf0f5a42e491bf4d7ff2031c8065c56e06eb0eb7f7b750e2d2f6a1da321067212fdf55aa4c917b2ce0db7c957231821282a33966cd93 +DIST wlr-protocols-2b8d43325b7012cc3f9b55c08d26e50e42beac7d.tar.bz2 19708 BLAKE2B fe20f21ee8282d7afcdbb8f3863e50b217fb71e7814f404f288b0d09d30c9e30135769b12342d9e9126a8cb2ab35d6ced0c5562807d274b1d97224f5f3d02511 SHA512 7935b5089820304aa8cb0e1a8f4e0db6ccd5285973a3f3554ccc935dd88e379eb03c3b2dd199da97b6ff8dfbbbf124ca65fb1c12821a168d34bd7e26d8514edb +EBUILD sunshine-0.23.1.ebuild 11922 BLAKE2B 242515aeec5b2f71bf7a724737d683f5dc10300ec6b729926ccbf5ecb273bffd048f1f7ea4d1b3d708711355b9588aef2187112758c2ee6083fb593a91bcf2f3 SHA512 c4a9fc43fdd23c000c2fd07a2ecec60e62f013192c8e26d79af0f1c5620b43f1ee56c6967f21db5ee9781917af11895c02aef448f892b6332e7e3d21302aacc4 +EBUILD sunshine-9999.ebuild 11922 BLAKE2B 242515aeec5b2f71bf7a724737d683f5dc10300ec6b729926ccbf5ecb273bffd048f1f7ea4d1b3d708711355b9588aef2187112758c2ee6083fb593a91bcf2f3 SHA512 c4a9fc43fdd23c000c2fd07a2ecec60e62f013192c8e26d79af0f1c5620b43f1ee56c6967f21db5ee9781917af11895c02aef448f892b6332e7e3d21302aacc4 MISC metadata.xml 880 BLAKE2B 656a3a283ae7504498d1a67cc343cfa614e21e0422c1076781164822809079eafe8e514d01182e977f7add5a28c4e7e09db985c8e4ea551eef1a1f92609488d9 SHA512 679f3c676ce568e8c0a8b816463c66d69055d0dba740c9065ce8feb36335981df65fff9d47f35e93f6b60337cc59f3da6ec3b83f9bb01905c73f912b50a0366d diff --git a/net-misc/sunshine/sunshine-0.22.2.ebuild b/net-misc/sunshine/sunshine-0.22.2.ebuild deleted file mode 100644 index d4852f3d0dbe..000000000000 --- a/net-misc/sunshine/sunshine-0.22.2.ebuild +++ /dev/null @@ -1,378 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -# These don't necessarily have to align with the upstream release. -BUILD_DEPS_COMMIT="2aafe061cd52a944cb3b5f86d1f25e9ad2a19bec" -ENET_COMMIT="04e27590670a87a7cd40f5a05cda97467e4e25a3" -MOONLIGHT_COMMIT="cbd0ec1b25edfb8ee8645fffa49ff95b6e04c70e" -NANORS_COMMIT="e9e242e98e27037830490b2a752895ca68f75f8b" -TRAY_COMMIT="4d8b798cafdd11285af9409c16b5f792968e0045" -SWS_COMMIT="27b41f5ee154cca0fce4fe2955dd886d04e3a4ed" -WLRP_COMMIT="4264185db3b7e961e7f157e1cc4fd0ab75137568" -FFMPEG_VERSION="6.1.1" - -# To make the node-modules tarball: -# PV= -# git fetch -# git checkout v$PV -# rm -rf node_modules npm_cache package-lock.json -# npm_config_cache="${PWD}"/npm_cache npm install --logs-max=0 --omit=optional -# XZ_OPT=-9 tar --xform="s:^:Sunshine-$PV/:" -Jcf /var/cache/distfiles/sunshine-npm-cache-$PV.tar.xz npm_cache package-lock.json - -if [[ ${PV} = 9999* ]]; then - inherit git-r3 -else - SRC_URI=" - https://github.com/LizardByte/Sunshine/archive/refs/tags/v${PV}.tar.gz - -> ${P}.tar.gz - https://github.com/LizardByte/build-deps/archive/${BUILD_DEPS_COMMIT}.tar.gz - -> LizardByte-build-deps-${BUILD_DEPS_COMMIT}.tar.gz - https://github.com/cgutman/enet/archive/${ENET_COMMIT}.tar.gz - -> moonlight-enet-${ENET_COMMIT}.tar.gz - https://github.com/moonlight-stream/moonlight-common-c/archive/${MOONLIGHT_COMMIT}.tar.gz - -> moonlight-common-c-${MOONLIGHT_COMMIT}.tar.gz - https://github.com/sleepybishop/nanors/archive/${NANORS_COMMIT}.tar.gz - -> nanors-${NANORS_COMMIT}.tar.gz - https://github.com/LizardByte/tray/archive/${TRAY_COMMIT}.tar.gz - -> LizardByte-tray-${TRAY_COMMIT}.tar.gz - https://gitlab.com/eidheim/Simple-Web-Server/-/archive/${SWS_COMMIT}/Simple-Web-Server-${SWS_COMMIT}.tar.bz2 - https://gitlab.freedesktop.org/wlroots/wlr-protocols/-/archive/${WLRP_COMMIT}/wlr-protocols-${WLRP_COMMIT}.tar.bz2 - https://ffmpeg.org/releases/ffmpeg-${FFMPEG_VERSION}.tar.xz - https://dev.gentoo.org/~chewi/distfiles/${PN}-npm-cache-${PV}.tar.xz - " - KEYWORDS="~amd64 ~arm64" - S="${WORKDIR}/Sunshine-${PV}" -fi - -inherit cmake fcaps flag-o-matic systemd toolchain-funcs udev xdg - -DESCRIPTION="Self-hosted game stream host for Moonlight" -HOMEPAGE="https://github.com/LizardByte/Sunshine" -LICENSE="GPL-3" -SLOT="0" -IUSE="cuda debug libdrm svt-av1 trayicon vaapi wayland X x264 x265" - -# Strings for CPU features in the useflag[:configure_option] form -# if :configure_option isn't set, it will use 'useflag' as configure option -ARM_CPU_FEATURES=( - cpu_flags_arm_thumb:armv5te - cpu_flags_arm_v6:armv6 - cpu_flags_arm_thumb2:armv6t2 - cpu_flags_arm_neon:neon - cpu_flags_arm_vfp:vfp - cpu_flags_arm_vfpv3:vfpv3 - cpu_flags_arm_v8:armv8 - cpu_flags_arm_asimddp:dotprod - cpu_flags_arm_i8mm:i8mm -) -ARM_CPU_REQUIRED_USE=" - arm64? ( cpu_flags_arm_v8 ) - cpu_flags_arm_v8? ( cpu_flags_arm_vfpv3 cpu_flags_arm_neon ) - cpu_flags_arm_neon? ( - cpu_flags_arm_vfp - arm? ( cpu_flags_arm_thumb2 ) - ) - cpu_flags_arm_vfpv3? ( cpu_flags_arm_vfp ) - cpu_flags_arm_thumb2? ( cpu_flags_arm_v6 ) - cpu_flags_arm_v6? ( - arm? ( cpu_flags_arm_thumb ) - ) -" -PPC_CPU_FEATURES=( cpu_flags_ppc_altivec:altivec cpu_flags_ppc_vsx:vsx cpu_flags_ppc_vsx2:power8 ) -PPC_CPU_REQUIRED_USE=" - cpu_flags_ppc_vsx? ( cpu_flags_ppc_altivec ) - cpu_flags_ppc_vsx2? ( cpu_flags_ppc_vsx ) -" -X86_CPU_FEATURES_RAW=( 3dnow:amd3dnow 3dnowext:amd3dnowext aes:aesni avx:avx avx2:avx2 fma3:fma3 fma4:fma4 mmx:mmx - mmxext:mmxext sse:sse sse2:sse2 sse3:sse3 ssse3:ssse3 sse4_1:sse4 sse4_2:sse42 xop:xop ) -X86_CPU_FEATURES=( ${X86_CPU_FEATURES_RAW[@]/#/cpu_flags_x86_} ) -X86_CPU_REQUIRED_USE=" - cpu_flags_x86_avx2? ( cpu_flags_x86_avx ) - cpu_flags_x86_fma4? ( cpu_flags_x86_avx ) - cpu_flags_x86_fma3? ( cpu_flags_x86_avx ) - cpu_flags_x86_xop? ( cpu_flags_x86_avx ) - cpu_flags_x86_avx? ( cpu_flags_x86_sse4_2 ) - cpu_flags_x86_aes? ( cpu_flags_x86_sse4_2 ) - cpu_flags_x86_sse4_2? ( cpu_flags_x86_sse4_1 ) - cpu_flags_x86_sse4_1? ( cpu_flags_x86_ssse3 ) - cpu_flags_x86_ssse3? ( cpu_flags_x86_sse3 ) - cpu_flags_x86_sse3? ( cpu_flags_x86_sse2 ) - cpu_flags_x86_sse2? ( cpu_flags_x86_sse ) - cpu_flags_x86_sse? ( cpu_flags_x86_mmxext ) - cpu_flags_x86_mmxext? ( cpu_flags_x86_mmx ) - cpu_flags_x86_3dnowext? ( cpu_flags_x86_3dnow ) - cpu_flags_x86_3dnow? ( cpu_flags_x86_mmx ) -" - -CPU_FEATURES_MAP=( - ${ARM_CPU_FEATURES[@]} - ${PPC_CPU_FEATURES[@]} - ${X86_CPU_FEATURES[@]} -) -IUSE="${IUSE} - ${CPU_FEATURES_MAP[@]%:*}" - -CPU_REQUIRED_USE=" - ${ARM_CPU_REQUIRED_USE} - ${PPC_CPU_REQUIRED_USE} - ${X86_CPU_REQUIRED_USE} -" - -REQUIRED_USE=" - ${CPU_REQUIRED_USE} - || ( cuda libdrm wayland X ) -" - -CDEPEND=" - dev-libs/boost:=[nls] - dev-libs/libevdev - dev-libs/openssl:= - media-libs/opus - net-libs/miniupnpc:= - net-misc/curl - || ( - media-libs/libpulse - media-sound/apulse[sdk] - ) - libdrm? ( - sys-libs/libcap - x11-libs/libdrm - ) - svt-av1? ( media-libs/svt-av1 ) - trayicon? ( - dev-libs/libayatana-appindicator - x11-libs/libnotify - ) - vaapi? ( media-libs/libva:=[wayland?,X?] ) - wayland? ( dev-libs/wayland ) - X? ( x11-libs/libX11 ) - x264? ( media-libs/x264:= ) - x265? ( media-libs/x265:= ) -" - -RDEPEND=" - ${CDEPEND} - media-libs/mesa[vaapi?] - X? ( - x11-libs/libxcb - x11-libs/libXfixes - x11-libs/libXrandr - x11-libs/libXtst - ) -" - -DEPEND=" - ${CDEPEND} - media-libs/amf-headers - =media-libs/nv-codec-headers-12* - wayland? ( dev-libs/wayland-protocols ) -" - -BDEPEND=" - net-libs/nodejs[npm] - virtual/pkgconfig - cpu_flags_x86_mmx? ( || ( >=dev-lang/nasm-2.13 >=dev-lang/yasm-1.3 ) ) - cuda? ( dev-util/nvidia-cuda-toolkit ) - wayland? ( dev-util/wayland-scanner ) -" - -PATCHES=( - "${FILESDIR}"/${PN}-custom-ffmpeg.patch - "${FILESDIR}"/${PN}-0.22.0-nvcodec.patch -) - -# Make this mess a bit simpler. -CMAKE_IN_SOURCE_BUILD=1 - -# Make npm behave. -export npm_config_audit=false -export npm_config_cache="${S}"/npm_cache -export npm_config_color=false -export npm_config_foreground_scripts=true -export npm_config_loglevel=verbose -export npm_config_optional=false -export npm_config_progress=false -export npm_config_save=false - -src_unpack() { - if [[ ${PV} = 9999* ]]; then - local EGIT_REPO_URI="https://github.com/LizardByte/build-deps.git" - local EGIT_SUBMODULES=( '-*' ) - local EGIT_CHECKOUT_DIR=${WORKDIR}/build-deps - git-r3_src_unpack - - # Use upstream server like our ffmpeg package does, not GitHub. - local EGIT_REPO_URI="https://git.ffmpeg.org/ffmpeg.git" - local EGIT_SUBMODULES=( '-*' ) - local EGIT_CHECKOUT_DIR=${EGIT_CHECKOUT_DIR}/ffmpeg_sources/ffmpeg - local EGIT_COMMIT=$(git --git-dir=build-deps/.git rev-parse HEAD:ffmpeg_sources/ffmpeg) - local EGIT_BRANCH=release/$(ver_cut 1-2 ${FFMPEG_VERSION}) - git-r3_src_unpack - - local EGIT_REPO_URI="https://github.com/LizardByte/Sunshine.git" - local EGIT_SUBMODULES=( - third-party/{moonlight-common-c{,/enet},nanors,tray,Simple-Web-Server,wlr-protocols} - ) - unset EGIT_CHECKOUT_DIR EGIT_COMMIT EGIT_BRANCH - git-r3_src_unpack - - # This downloads things so must go in src_unpack to avoid the sandbox. - cd "${S}" || die - npm install || die - else - default - ln -snf build-deps-${BUILD_DEPS_COMMIT} build-deps || die - find moonlight-common-c-${MOONLIGHT_COMMIT} "${S}"/third-party build-deps/ffmpeg_sources \ - -mindepth 1 -type d -empty -delete || die - ln -snf ../enet-${ENET_COMMIT} moonlight-common-c-${MOONLIGHT_COMMIT}/enet || die - ln -snf ../../moonlight-common-c-${MOONLIGHT_COMMIT} "${S}"/third-party/moonlight-common-c || die - ln -snf ../../nanors-${NANORS_COMMIT} "${S}"/third-party/nanors || die - ln -snf ../../tray-${TRAY_COMMIT} "${S}"/third-party/tray || die - ln -snf ../../Simple-Web-Server-${SWS_COMMIT} "${S}"/third-party/Simple-Web-Server || die - ln -snf ../../wlr-protocols-${WLRP_COMMIT} "${S}"/third-party/wlr-protocols || die - ln -snf ../../ffmpeg-${FFMPEG_VERSION} build-deps/ffmpeg_sources/ffmpeg || die - fi -} - -src_prepare() { - # Apply CBS patch. - cd "${WORKDIR}"/build-deps || die - eapply "${FILESDIR}"/${PN}-cross-cbs.patch - - # Apply general ffmpeg patches. - cd "${WORKDIR}"/build-deps/ffmpeg_sources/ffmpeg || die - eapply "${WORKDIR}"/build-deps/ffmpeg_patches/ffmpeg/*.patch - - # Copy ffmpeg sources because CBS build applies extra patches. - cp -a ./ "${WORKDIR}"/ffmpeg-build || die - - cd "${S}" || die - CMAKE_USE_DIR="${WORKDIR}/build-deps" cmake_src_prepare - default_src_prepare() { :; } # Hack to avoid double patching! :( - CMAKE_USE_DIR="${S}" cmake_src_prepare -} - -src_configure() { - local myconf=( - --prefix="${S}"/third-party/ffmpeg - --cc="$(tc-getCC)" - --cxx="$(tc-getCXX)" - --ar="$(tc-getAR)" - --nm="$(tc-getNM)" - --strip="$(tc-getSTRIP)" - --ranlib="$(tc-getRANLIB)" - --pkg-config="$(tc-getPKG_CONFIG)" - --optflags="${CFLAGS}" - --disable-all - --disable-autodetect - --disable-error-resilience - --disable-everything - --disable-faan - --disable-iconv - --disable-network - --disable-optimizations - --disable-stripping - --enable-amf - --enable-avcodec - --enable-ffnvcodec - --enable-gpl - --enable-nvenc - --enable-static - --enable-swscale - --enable-v4l2_m2m - $(use_enable cuda) - $(use_enable cuda cuda_llvm) - $(use_enable svt-av1 libsvtav1) - $(use_enable vaapi) - $(use_enable x264 libx264) - $(use_enable x265 libx265) - $(usex svt-av1 --enable-encoder=libsvtav1 "") - $(usex vaapi --enable-encoder=h264_vaapi,hevc_vaapi,av1_vaapi "") - $(usex x264 --enable-encoder=libx264 "") - $(usex x265 --enable-encoder=libx265 "") - --enable-encoder=h264_amf,hevc_amf,av1_amf - --enable-encoder=h264_nvenc,hevc_nvenc,av1_nvenc - --enable-encoder=h264_v4l2m2m,hevc_v4l2m2m - ) - - # CPU features - for i in "${CPU_FEATURES_MAP[@]}" ; do - use ${i%:*} || myconf+=( --disable-${i#*:} ) - done - - # Try to get cpu type based on CFLAGS. - # Bug #172723 - # We need to do this so that features of that CPU will be better used - # If they contain an unknown CPU it will not hurt since ffmpeg's configure - # will just ignore it. - for i in $(get-flag mcpu) $(get-flag march) ; do - [[ ${i} = native ]] && i="host" # bug #273421 - myconf+=( --cpu=${i} ) - break - done - - # cross compile support - if tc-is-cross-compiler ; then - myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- --host-cc="$(tc-getBUILD_CC)" ) - case ${CHOST} in - *mingw32*) - myconf+=( --target-os=mingw32 ) - ;; - *linux*) - myconf+=( --target-os=linux ) - ;; - esac - fi - - cd "${WORKDIR}"/ffmpeg-build || die - echo ./configure "${myconf[@]}" - ./configure "${myconf[@]}" || die - - local mycmakeargs=( - -DBUILD_SHARED_LIBS=no - -DCMAKE_INSTALL_PREFIX="${S}"/third-party/ffmpeg - ) - CMAKE_USE_DIR="${WORKDIR}/build-deps" cmake_src_configure - - local mycmakeargs=( - -DCMAKE_DISABLE_FIND_PACKAGE_Git=yes - -DFFMPEG_PLATFORM_LIBRARIES="$(usex svt-av1 SvtAv1Enc '');$(usex vaapi 'va;va-drm' '');$(usev x264);$(usev x265)" - -DFFMPEG_PREPARED_BINARIES="${S}"/third-party/ffmpeg - -DSUNSHINE_ASSETS_DIR=share/${PN} - -DSUNSHINE_ENABLE_CUDA=$(usex cuda) - -DSUNSHINE_ENABLE_DRM=$(usex libdrm) - -DSUNSHINE_ENABLE_VAAPI=$(usex vaapi) - -DSUNSHINE_ENABLE_WAYLAND=$(usex wayland) - -DSUNSHINE_ENABLE_X11=$(usex X) - -DSUNSHINE_ENABLE_TRAY=$(usex trayicon) - -DSUNSHINE_REQUIRE_TRAY=$(usex trayicon) - -DSUNSHINE_SYSTEM_WAYLAND_PROTOCOLS=yes - -DSYSTEMD_USER_UNIT_INSTALL_DIR=$(systemd_get_userunitdir) - -DUDEV_RULES_INSTALL_DIR=$(get_udevdir)/rules.d - ) - CMAKE_USE_DIR="${S}" cmake_src_configure -} - -src_compile() { - emake -C "${WORKDIR}"/ffmpeg-build V=1 - emake -C "${WORKDIR}"/ffmpeg-build V=1 install - CMAKE_USE_DIR="${WORKDIR}/build-deps" cmake_src_compile - CMAKE_USE_DIR="${WORKDIR}/build-deps" cmake_build install - CMAKE_USE_DIR="${S}" npm_config_offline=1 cmake_src_compile -} - -pkg_postinst() { - udev_reload - xdg_pkg_postinst - use libdrm && fcaps cap_sys_admin+p usr/bin/"$(readlink "${EROOT}"/usr/bin/${PN})" - - elog "At upstream's request, please report any issues to https://bugs.gentoo.org" - elog "rather than going directly to them." -} - -pkg_postrm() { - udev_reload - xdg_pkg_postrm -} diff --git a/net-misc/sunshine/sunshine-0.23.1.ebuild b/net-misc/sunshine/sunshine-0.23.1.ebuild new file mode 100644 index 000000000000..7b106a011c0a --- /dev/null +++ b/net-misc/sunshine/sunshine-0.23.1.ebuild @@ -0,0 +1,379 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# These don't necessarily have to align with the upstream release. +BUILD_DEPS_COMMIT="2aafe061cd52a944cb3b5f86d1f25e9ad2a19bec" +ENET_COMMIT="04e27590670a87a7cd40f5a05cda97467e4e25a3" +MOONLIGHT_COMMIT="cbd0ec1b25edfb8ee8645fffa49ff95b6e04c70e" +NANORS_COMMIT="e9e242e98e27037830490b2a752895ca68f75f8b" +TRAY_COMMIT="4d8b798cafdd11285af9409c16b5f792968e0045" +SWS_COMMIT="27b41f5ee154cca0fce4fe2955dd886d04e3a4ed" +WLRP_COMMIT="2b8d43325b7012cc3f9b55c08d26e50e42beac7d" +FFMPEG_VERSION="6.1.1" + +# To make the node-modules tarball: +# PV= +# git fetch +# git checkout v$PV +# rm -rf node_modules npm_cache package-lock.json +# npm_config_cache="${PWD}"/npm_cache npm install --logs-max=0 --omit=optional +# XZ_OPT=-9 tar --xform="s:^:Sunshine-$PV/:" -Jcf /var/cache/distfiles/sunshine-npm-cache-$PV.tar.xz npm_cache package-lock.json + +if [[ ${PV} = 9999* ]]; then + inherit git-r3 +else + SRC_URI=" + https://github.com/LizardByte/Sunshine/archive/refs/tags/v${PV}.tar.gz + -> ${P}.tar.gz + https://github.com/LizardByte/build-deps/archive/${BUILD_DEPS_COMMIT}.tar.gz + -> LizardByte-build-deps-${BUILD_DEPS_COMMIT}.tar.gz + https://github.com/cgutman/enet/archive/${ENET_COMMIT}.tar.gz + -> moonlight-enet-${ENET_COMMIT}.tar.gz + https://github.com/moonlight-stream/moonlight-common-c/archive/${MOONLIGHT_COMMIT}.tar.gz + -> moonlight-common-c-${MOONLIGHT_COMMIT}.tar.gz + https://github.com/sleepybishop/nanors/archive/${NANORS_COMMIT}.tar.gz + -> nanors-${NANORS_COMMIT}.tar.gz + https://github.com/LizardByte/tray/archive/${TRAY_COMMIT}.tar.gz + -> LizardByte-tray-${TRAY_COMMIT}.tar.gz + https://gitlab.com/eidheim/Simple-Web-Server/-/archive/${SWS_COMMIT}/Simple-Web-Server-${SWS_COMMIT}.tar.bz2 + https://gitlab.freedesktop.org/wlroots/wlr-protocols/-/archive/${WLRP_COMMIT}/wlr-protocols-${WLRP_COMMIT}.tar.bz2 + https://ffmpeg.org/releases/ffmpeg-${FFMPEG_VERSION}.tar.xz + https://dev.gentoo.org/~chewi/distfiles/${PN}-npm-cache-${PV}.tar.xz + " + KEYWORDS="~amd64 ~arm64" + S="${WORKDIR}/Sunshine-${PV}" +fi + +inherit cmake fcaps flag-o-matic systemd toolchain-funcs udev xdg + +DESCRIPTION="Self-hosted game stream host for Moonlight" +HOMEPAGE="https://github.com/LizardByte/Sunshine" +LICENSE="GPL-3" +SLOT="0" +IUSE="cuda debug libdrm svt-av1 trayicon vaapi wayland X x264 x265" + +# Strings for CPU features in the useflag[:configure_option] form +# if :configure_option isn't set, it will use 'useflag' as configure option +ARM_CPU_FEATURES=( + cpu_flags_arm_thumb:armv5te + cpu_flags_arm_v6:armv6 + cpu_flags_arm_thumb2:armv6t2 + cpu_flags_arm_neon:neon + cpu_flags_arm_vfp:vfp + cpu_flags_arm_vfpv3:vfpv3 + cpu_flags_arm_v8:armv8 + cpu_flags_arm_asimddp:dotprod + cpu_flags_arm_i8mm:i8mm +) +ARM_CPU_REQUIRED_USE=" + arm64? ( cpu_flags_arm_v8 ) + cpu_flags_arm_v8? ( cpu_flags_arm_vfpv3 cpu_flags_arm_neon ) + cpu_flags_arm_neon? ( + cpu_flags_arm_vfp + arm? ( cpu_flags_arm_thumb2 ) + ) + cpu_flags_arm_vfpv3? ( cpu_flags_arm_vfp ) + cpu_flags_arm_thumb2? ( cpu_flags_arm_v6 ) + cpu_flags_arm_v6? ( + arm? ( cpu_flags_arm_thumb ) + ) +" +PPC_CPU_FEATURES=( cpu_flags_ppc_altivec:altivec cpu_flags_ppc_vsx:vsx cpu_flags_ppc_vsx2:power8 ) +PPC_CPU_REQUIRED_USE=" + cpu_flags_ppc_vsx? ( cpu_flags_ppc_altivec ) + cpu_flags_ppc_vsx2? ( cpu_flags_ppc_vsx ) +" +X86_CPU_FEATURES_RAW=( 3dnow:amd3dnow 3dnowext:amd3dnowext aes:aesni avx:avx avx2:avx2 fma3:fma3 fma4:fma4 mmx:mmx + mmxext:mmxext sse:sse sse2:sse2 sse3:sse3 ssse3:ssse3 sse4_1:sse4 sse4_2:sse42 xop:xop ) +X86_CPU_FEATURES=( ${X86_CPU_FEATURES_RAW[@]/#/cpu_flags_x86_} ) +X86_CPU_REQUIRED_USE=" + cpu_flags_x86_avx2? ( cpu_flags_x86_avx ) + cpu_flags_x86_fma4? ( cpu_flags_x86_avx ) + cpu_flags_x86_fma3? ( cpu_flags_x86_avx ) + cpu_flags_x86_xop? ( cpu_flags_x86_avx ) + cpu_flags_x86_avx? ( cpu_flags_x86_sse4_2 ) + cpu_flags_x86_aes? ( cpu_flags_x86_sse4_2 ) + cpu_flags_x86_sse4_2? ( cpu_flags_x86_sse4_1 ) + cpu_flags_x86_sse4_1? ( cpu_flags_x86_ssse3 ) + cpu_flags_x86_ssse3? ( cpu_flags_x86_sse3 ) + cpu_flags_x86_sse3? ( cpu_flags_x86_sse2 ) + cpu_flags_x86_sse2? ( cpu_flags_x86_sse ) + cpu_flags_x86_sse? ( cpu_flags_x86_mmxext ) + cpu_flags_x86_mmxext? ( cpu_flags_x86_mmx ) + cpu_flags_x86_3dnowext? ( cpu_flags_x86_3dnow ) + cpu_flags_x86_3dnow? ( cpu_flags_x86_mmx ) +" + +CPU_FEATURES_MAP=( + ${ARM_CPU_FEATURES[@]} + ${PPC_CPU_FEATURES[@]} + ${X86_CPU_FEATURES[@]} +) +IUSE="${IUSE} + ${CPU_FEATURES_MAP[@]%:*}" + +CPU_REQUIRED_USE=" + ${ARM_CPU_REQUIRED_USE} + ${PPC_CPU_REQUIRED_USE} + ${X86_CPU_REQUIRED_USE} +" + +REQUIRED_USE=" + ${CPU_REQUIRED_USE} + || ( cuda libdrm wayland X ) +" + +CDEPEND=" + dev-libs/boost:=[nls] + dev-libs/libevdev + dev-libs/openssl:= + media-libs/opus + net-libs/miniupnpc:= + net-misc/curl + || ( + media-libs/libpulse + media-sound/apulse[sdk] + ) + libdrm? ( + sys-libs/libcap + x11-libs/libdrm + ) + svt-av1? ( media-libs/svt-av1 ) + trayicon? ( + dev-libs/libayatana-appindicator + x11-libs/libnotify + ) + vaapi? ( media-libs/libva:=[wayland?,X?] ) + wayland? ( dev-libs/wayland ) + X? ( x11-libs/libX11 ) + x264? ( media-libs/x264:= ) + x265? ( media-libs/x265:= ) +" + +RDEPEND=" + ${CDEPEND} + media-libs/mesa[vaapi?] + X? ( + x11-libs/libxcb + x11-libs/libXfixes + x11-libs/libXrandr + x11-libs/libXtst + ) +" + +DEPEND=" + ${CDEPEND} + media-libs/amf-headers + =media-libs/nv-codec-headers-12* + wayland? ( dev-libs/wayland-protocols ) +" + +BDEPEND=" + net-libs/nodejs[npm] + virtual/pkgconfig + cpu_flags_x86_mmx? ( || ( >=dev-lang/nasm-2.13 >=dev-lang/yasm-1.3 ) ) + cuda? ( dev-util/nvidia-cuda-toolkit ) + wayland? ( dev-util/wayland-scanner ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-custom-ffmpeg.patch + "${FILESDIR}"/${PN}-0.22.0-nvcodec.patch +) + +# Make this mess a bit simpler. +CMAKE_IN_SOURCE_BUILD=1 + +# Make npm behave. +export npm_config_audit=false +export npm_config_cache="${S}"/npm_cache +export npm_config_color=false +export npm_config_foreground_scripts=true +export npm_config_loglevel=verbose +export npm_config_optional=false +export npm_config_progress=false +export npm_config_save=false + +src_unpack() { + if [[ ${PV} = 9999* ]]; then + local EGIT_REPO_URI="https://github.com/LizardByte/build-deps.git" + local EGIT_SUBMODULES=( '-*' ) + local EGIT_CHECKOUT_DIR=${WORKDIR}/build-deps + git-r3_src_unpack + + # Use upstream server like our ffmpeg package does, not GitHub. + local EGIT_REPO_URI="https://git.ffmpeg.org/ffmpeg.git" + local EGIT_SUBMODULES=( '-*' ) + local EGIT_CHECKOUT_DIR=${EGIT_CHECKOUT_DIR}/ffmpeg_sources/ffmpeg + local EGIT_COMMIT=$(git --git-dir=build-deps/.git rev-parse HEAD:ffmpeg_sources/ffmpeg) + local EGIT_BRANCH=release/$(ver_cut 1-2 ${FFMPEG_VERSION}) + git-r3_src_unpack + + local EGIT_REPO_URI="https://github.com/LizardByte/Sunshine.git" + local EGIT_SUBMODULES=( + third-party/{moonlight-common-c{,/enet},nanors,tray,Simple-Web-Server,wlr-protocols} + ) + unset EGIT_CHECKOUT_DIR EGIT_COMMIT EGIT_BRANCH + git-r3_src_unpack + + # This downloads things so must go in src_unpack to avoid the sandbox. + cd "${S}" || die + npm install || die + else + default + ln -snf build-deps-${BUILD_DEPS_COMMIT} build-deps || die + find moonlight-common-c-${MOONLIGHT_COMMIT} "${S}"/third-party build-deps/ffmpeg_sources \ + -mindepth 1 -type d -empty -delete || die + ln -snf ../enet-${ENET_COMMIT} moonlight-common-c-${MOONLIGHT_COMMIT}/enet || die + ln -snf ../../moonlight-common-c-${MOONLIGHT_COMMIT} "${S}"/third-party/moonlight-common-c || die + ln -snf ../../nanors-${NANORS_COMMIT} "${S}"/third-party/nanors || die + ln -snf ../../tray-${TRAY_COMMIT} "${S}"/third-party/tray || die + ln -snf ../../Simple-Web-Server-${SWS_COMMIT} "${S}"/third-party/Simple-Web-Server || die + ln -snf ../../wlr-protocols-${WLRP_COMMIT} "${S}"/third-party/wlr-protocols || die + ln -snf ../../ffmpeg-${FFMPEG_VERSION} build-deps/ffmpeg_sources/ffmpeg || die + fi +} + +src_prepare() { + # Apply CBS patch. + cd "${WORKDIR}"/build-deps || die + eapply "${FILESDIR}"/${PN}-cross-cbs.patch + + # Apply general ffmpeg patches. + cd "${WORKDIR}"/build-deps/ffmpeg_sources/ffmpeg || die + eapply "${WORKDIR}"/build-deps/ffmpeg_patches/ffmpeg/*.patch + + # Copy ffmpeg sources because CBS build applies extra patches. + cp -a ./ "${WORKDIR}"/ffmpeg-build || die + + cd "${S}" || die + CMAKE_USE_DIR="${WORKDIR}/build-deps" cmake_src_prepare + default_src_prepare() { :; } # Hack to avoid double patching! :( + CMAKE_USE_DIR="${S}" cmake_src_prepare +} + +src_configure() { + local myconf=( + --prefix="${S}"/third-party/ffmpeg + --cc="$(tc-getCC)" + --cxx="$(tc-getCXX)" + --ar="$(tc-getAR)" + --nm="$(tc-getNM)" + --strip="$(tc-getSTRIP)" + --ranlib="$(tc-getRANLIB)" + --pkg-config="$(tc-getPKG_CONFIG)" + --optflags="${CFLAGS}" + --disable-all + --disable-autodetect + --disable-error-resilience + --disable-everything + --disable-faan + --disable-iconv + --disable-network + --disable-optimizations + --disable-stripping + --enable-amf + --enable-avcodec + --enable-ffnvcodec + --enable-gpl + --enable-nvenc + --enable-static + --enable-swscale + --enable-v4l2_m2m + $(use_enable cuda) + $(use_enable cuda cuda_llvm) + $(use_enable svt-av1 libsvtav1) + $(use_enable vaapi) + $(use_enable x264 libx264) + $(use_enable x265 libx265) + $(usex svt-av1 --enable-encoder=libsvtav1 "") + $(usex vaapi --enable-encoder=h264_vaapi,hevc_vaapi,av1_vaapi "") + $(usex x264 --enable-encoder=libx264 "") + $(usex x265 --enable-encoder=libx265 "") + --enable-encoder=h264_amf,hevc_amf,av1_amf + --enable-encoder=h264_nvenc,hevc_nvenc,av1_nvenc + --enable-encoder=h264_v4l2m2m,hevc_v4l2m2m + ) + + # CPU features + for i in "${CPU_FEATURES_MAP[@]}" ; do + use ${i%:*} || myconf+=( --disable-${i#*:} ) + done + + # Try to get cpu type based on CFLAGS. + # Bug #172723 + # We need to do this so that features of that CPU will be better used + # If they contain an unknown CPU it will not hurt since ffmpeg's configure + # will just ignore it. + for i in $(get-flag mcpu) $(get-flag march) ; do + [[ ${i} = native ]] && i="host" # bug #273421 + myconf+=( --cpu=${i} ) + break + done + + # cross compile support + if tc-is-cross-compiler ; then + myconf+=( --enable-cross-compile --arch=$(tc-arch-kernel) --cross-prefix=${CHOST}- --host-cc="$(tc-getBUILD_CC)" ) + case ${CHOST} in + *mingw32*) + myconf+=( --target-os=mingw32 ) + ;; + *linux*) + myconf+=( --target-os=linux ) + ;; + esac + fi + + cd "${WORKDIR}"/ffmpeg-build || die + echo ./configure "${myconf[@]}" + ./configure "${myconf[@]}" || die + + local mycmakeargs=( + -DBUILD_SHARED_LIBS=no + -DCMAKE_INSTALL_PREFIX="${S}"/third-party/ffmpeg + ) + CMAKE_USE_DIR="${WORKDIR}/build-deps" cmake_src_configure + + local mycmakeargs=( + -DBUILD_TESTS=no + -DCMAKE_DISABLE_FIND_PACKAGE_Git=yes + -DFFMPEG_PLATFORM_LIBRARIES="$(usex svt-av1 SvtAv1Enc '');$(usex vaapi 'va;va-drm' '');$(usev x264);$(usev x265)" + -DFFMPEG_PREPARED_BINARIES="${S}"/third-party/ffmpeg + -DSUNSHINE_ASSETS_DIR=share/${PN} + -DSUNSHINE_ENABLE_CUDA=$(usex cuda) + -DSUNSHINE_ENABLE_DRM=$(usex libdrm) + -DSUNSHINE_ENABLE_VAAPI=$(usex vaapi) + -DSUNSHINE_ENABLE_WAYLAND=$(usex wayland) + -DSUNSHINE_ENABLE_X11=$(usex X) + -DSUNSHINE_ENABLE_TRAY=$(usex trayicon) + -DSUNSHINE_REQUIRE_TRAY=$(usex trayicon) + -DSUNSHINE_SYSTEM_WAYLAND_PROTOCOLS=yes + -DSYSTEMD_USER_UNIT_INSTALL_DIR=$(systemd_get_userunitdir) + -DUDEV_RULES_INSTALL_DIR=$(get_udevdir)/rules.d + ) + CMAKE_USE_DIR="${S}" cmake_src_configure +} + +src_compile() { + emake -C "${WORKDIR}"/ffmpeg-build V=1 + emake -C "${WORKDIR}"/ffmpeg-build V=1 install + CMAKE_USE_DIR="${WORKDIR}/build-deps" cmake_src_compile + CMAKE_USE_DIR="${WORKDIR}/build-deps" cmake_build install + CMAKE_USE_DIR="${S}" npm_config_offline=1 cmake_src_compile +} + +pkg_postinst() { + udev_reload + xdg_pkg_postinst + use libdrm && fcaps cap_sys_admin+p usr/bin/"$(readlink "${EROOT}"/usr/bin/${PN})" + + elog "At upstream's request, please report any issues to https://bugs.gentoo.org" + elog "rather than going directly to them." +} + +pkg_postrm() { + udev_reload + xdg_pkg_postrm +} diff --git a/net-misc/sunshine/sunshine-9999.ebuild b/net-misc/sunshine/sunshine-9999.ebuild index d4852f3d0dbe..7b106a011c0a 100644 --- a/net-misc/sunshine/sunshine-9999.ebuild +++ b/net-misc/sunshine/sunshine-9999.ebuild @@ -10,7 +10,7 @@ MOONLIGHT_COMMIT="cbd0ec1b25edfb8ee8645fffa49ff95b6e04c70e" NANORS_COMMIT="e9e242e98e27037830490b2a752895ca68f75f8b" TRAY_COMMIT="4d8b798cafdd11285af9409c16b5f792968e0045" SWS_COMMIT="27b41f5ee154cca0fce4fe2955dd886d04e3a4ed" -WLRP_COMMIT="4264185db3b7e961e7f157e1cc4fd0ab75137568" +WLRP_COMMIT="2b8d43325b7012cc3f9b55c08d26e50e42beac7d" FFMPEG_VERSION="6.1.1" # To make the node-modules tarball: @@ -337,6 +337,7 @@ src_configure() { CMAKE_USE_DIR="${WORKDIR}/build-deps" cmake_src_configure local mycmakeargs=( + -DBUILD_TESTS=no -DCMAKE_DISABLE_FIND_PACKAGE_Git=yes -DFFMPEG_PLATFORM_LIBRARIES="$(usex svt-av1 SvtAv1Enc '');$(usex vaapi 'va;va-drm' '');$(usev x264);$(usev x265)" -DFFMPEG_PREPARED_BINARIES="${S}"/third-party/ffmpeg diff --git a/net-misc/you-get/Manifest b/net-misc/you-get/Manifest index de93f98edb44..71b0f2e6af07 100644 --- a/net-misc/you-get/Manifest +++ b/net-misc/you-get/Manifest @@ -1,3 +1,5 @@ +AUX you-get-python3.12.patch 1185 BLAKE2B 3b84a6976331dc76c749f873e7877327623f1edc3373a2e77aa2f8fc8cdf35cca54d49b8046be3029cff02c4ff0f69facac3efadb73ae88aa1f582f7e9693042 SHA512 ec986db31ff9c2d6d2798f1b2b86837ec5c2fb07998c5cf656e857c2336728de4ed3d76dc97374ccbf760ce39a8effc6a4854b691ea776f5d701d3bb2d55396d DIST you-get-0.4.1650.tar.gz 152169 BLAKE2B c1ba09a0bfd339703f269d1c53406f70762dab2f974ea43b1bf26890ccf267d5852e298ddab2db7a9ed32a52e2aed2691851cefed73089111414056b74a10b1a SHA512 cb87f4c981631945d521b43585d291d35e67e85a17bdc567d775274700ef346c63c391b2c38f7a7e60de4ba9b5daa7aab3d6202d03147ae0d2c09b5b8c06bb3c +EBUILD you-get-0.4.1650-r1.ebuild 591 BLAKE2B f29d6143df08679e6552dbd16a2b21bf2992c3509a8712524e240e64ef6cf9d772cbea3b58947bb23d6c86b086965e579c41cc83904c02de5515435023d02e58 SHA512 2ad373aa3e99d260dc04fd737fb548c1d44ab41d0fb0bd4a4ecced39b1e810cc5621fbd1f9860cfebd81bef149877a963f4a5ff632e61446ea0f0f5026743e97 EBUILD you-get-0.4.1650.ebuild 539 BLAKE2B 4216387507236894b51313f726c3ecfef52c2ce4af2a65fbec6bc568745e0cfb769247f908b4d37cf9c10f3921012d735f9492af8ae6ccc2ae14ef3307373b3f SHA512 0068b1ddcf8edde390bc5223dd81109a207265db6cf8ae3a5432009a0c5162290143158d6ec5a3dbf79bef43570716f633ea34ab13431474a46713fe8dea46ab MISC metadata.xml 356 BLAKE2B 318d22fcafcc9dc37f3487eaf71e6090352e7cabc9e8e46631777c63e6767a95eac7dd3d40958501e474b55fa50b61d4203ed1136911b73a7fc67a8ace78aae5 SHA512 da3bc209c98f0165f249f083ddb172d47d5bff2e15b836f9bccbb2083c7b7ad90fde4c355fa981d66f75676b4f7efc37ca7120df9e91b33a6c13a9d5a018d89b diff --git a/net-misc/you-get/files/you-get-python3.12.patch b/net-misc/you-get/files/you-get-python3.12.patch new file mode 100644 index 000000000000..c48b3e7e19d7 --- /dev/null +++ b/net-misc/you-get/files/you-get-python3.12.patch @@ -0,0 +1,39 @@ +Subject: [PATCH] Use importlib instead of imp + +Fix the deprecated warning. +Ref: https://stackoverflow.com/a/67692/3342190 +Bug: https://bugs.gentoo.org/929733 +--- + setup.py | 9 +++++++-- + 1 file changed, 7 insertions(+), 2 deletions(-) + +diff --git a/setup.py b/setup.py +index 24dc9fb2..78a8e832 100755 +--- a/setup.py ++++ b/setup.py +@@ -5,7 +5,8 @@ PACKAGE_NAME = 'you_get' + + PROJ_METADATA = '%s.json' % PROJ_NAME + +-import os, json, imp ++import os, json ++import importlib.util + here = os.path.abspath(os.path.dirname(__file__)) + proj_info = json.loads(open(os.path.join(here, PROJ_METADATA), encoding='utf-8').read()) + try: +@@ -13,7 +14,11 @@ try: + except: + README = "" + CHANGELOG = open(os.path.join(here, 'CHANGELOG.rst'), encoding='utf-8').read() +-VERSION = imp.load_source('version', os.path.join(here, 'src/%s/version.py' % PACKAGE_NAME)).__version__ ++version_spec = importlib.util.spec_from_file_location( ++ 'version', os.path.join(here, 'src/%s/version.py' % PACKAGE_NAME)) ++version = importlib.util.module_from_spec(version_spec) ++version_spec.loader.exec_module(version) ++VERSION = version.__version__ + + from setuptools import setup, find_packages + setup( +-- +2.44.0 + diff --git a/net-misc/you-get/you-get-0.4.1650-r1.ebuild b/net-misc/you-get/you-get-0.4.1650-r1.ebuild new file mode 100644 index 000000000000..3d5b58a7cb5c --- /dev/null +++ b/net-misc/you-get/you-get-0.4.1650-r1.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..12} ) +DISTUTILS_USE_PEP517=setuptools + +inherit distutils-r1 + +DESCRIPTION="Utility to download media contents from the web" +HOMEPAGE="https://you-get.org" +SRC_URI="https://github.com/soimort/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RESTRICT="test" +PROPERTIES="test_network" + +RDEPEND=" + media-video/ffmpeg +" + +PATCHES=( "${FILESDIR}/${PN}-python3.12.patch" ) + +distutils_enable_tests unittest -- cgit v1.2.3