commit:     0aa984f95ca35b0c8847c785bce21a641901a541
Author:     Nowa Ammerlaan <nowa <AT> gentoo <DOT> org>
AuthorDate: Thu Dec  4 15:56:18 2025 +0000
Commit:     Nowa Ammerlaan <nowa <AT> gentoo <DOT> org>
CommitDate: Thu Dec  4 15:57:32 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0aa984f9

media-video/popcorntime-bin: unpin nwjs dependency

Turns out those localisation files are just the ones from nwjs, they
are identical. This has the nice side-effect of simplifying the
ebuild, and also makes the app work with ffmpeg-7+

Signed-off-by: Nowa Ammerlaan <nowa <AT> gentoo.org>

 media-video/popcorntime-bin/Manifest               |  2 +-
 ...1-r3.ebuild => popcorntime-bin-0.5.1-r4.ebuild} | 34 ++++------------------
 2 files changed, 6 insertions(+), 30 deletions(-)

diff --git a/media-video/popcorntime-bin/Manifest 
b/media-video/popcorntime-bin/Manifest
index 0605f3047c6d..e67557de9124 100644
--- a/media-video/popcorntime-bin/Manifest
+++ b/media-video/popcorntime-bin/Manifest
@@ -1 +1 @@
-DIST popcorntime-bin-0.5.1-r3-amd64.deb 150327218 BLAKE2B 
230fa548d2f47fa774164704aef703f75bf543fb666ce73300bc1c56b1ee1b3133e229d02608c7584b72f81550c1bc480b8368128efdb38b77ee4061dac44224
 SHA512 
de2a3538da8e98d5d8ba3adc88355adec1c6c681a6bf82a46c678a38e1989d5754659e6f9f9dab9c197ec507d0c90b6b60ca3a068f861abb0cbbbf7020f68a97
+DIST popcorntime-bin-0.5.1-r4-amd64.deb 150327218 BLAKE2B 
230fa548d2f47fa774164704aef703f75bf543fb666ce73300bc1c56b1ee1b3133e229d02608c7584b72f81550c1bc480b8368128efdb38b77ee4061dac44224
 SHA512 
de2a3538da8e98d5d8ba3adc88355adec1c6c681a6bf82a46c678a38e1989d5754659e6f9f9dab9c197ec507d0c90b6b60ca3a068f861abb0cbbbf7020f68a97

diff --git a/media-video/popcorntime-bin/popcorntime-bin-0.5.1-r3.ebuild 
b/media-video/popcorntime-bin/popcorntime-bin-0.5.1-r4.ebuild
similarity index 64%
rename from media-video/popcorntime-bin/popcorntime-bin-0.5.1-r3.ebuild
rename to media-video/popcorntime-bin/popcorntime-bin-0.5.1-r4.ebuild
index d39acf50f7c1..1dc26296f1a6 100644
--- a/media-video/popcorntime-bin/popcorntime-bin-0.5.1-r3.ebuild
+++ b/media-video/popcorntime-bin/popcorntime-bin-0.5.1-r4.ebuild
@@ -3,13 +3,7 @@
 
 EAPI=8
 
-CHROMIUM_LANGS="
-       af am ar bg bn ca cs da de el en-GB en-US es es-419 et fa fi fil fr gu 
he hi
-       hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt-BR pt-PT ro ru sk sl sr 
sv
-       sw ta te th tr uk ur vi zh-CN zh-TW
-"
-
-inherit chromium-2 desktop unpacker xdg
+inherit desktop unpacker xdg
 
 DESCRIPTION="BitTorrent client that includes an integrated media player"
 HOMEPAGE="https://github.com/popcorn-time-ru/popcorn-desktop";
@@ -25,30 +19,11 @@ KEYWORDS="-* ~amd64 ~x86"
 RESTRICT="bindist mirror"
 
 RDEPEND="
-       ~dev-libs/nwjs-0.86.0[sdk(-)]
+       dev-libs/nwjs[sdk(-)]
 "
 
 QA_PREBUILT="opt/Popcorn-Time/*"
 
-pkg_pretend() {
-       chromium_suid_sandbox_check_kernel_config
-}
-
-src_prepare() {
-       default
-       # cleanup languages
-       pushd "opt/Popcorn-Time/locales" || die
-       # No l10n use entries for these langs
-       rm ar-XB.pak* en-XA.pak* || die
-       chromium_remove_language_paks
-       popd || die
-}
-
-src_configure() {
-       chromium_suid_sandbox_check_kernel_config
-       default
-}
-
 src_install() {
        doicon -s 256 "usr/share/icons/butter.png"
 
@@ -62,6 +37,7 @@ src_install() {
                chrome_crashpad_handler
                icudtl.dat
                lib
+               locales
                minidump_stackwalk
                nw
                nw_100_percent.pak
@@ -72,7 +48,7 @@ src_install() {
        )
 
        for file in ${nwjs_files[@]}; do
-               dosym ."./nwjs/${file}" "${DESTDIR}/${file}"
+               dosym "../nwjs/${file}" "${DESTDIR}/${file}"
        done
 
        exeinto "${DESTDIR}"
@@ -81,7 +57,7 @@ src_install() {
        insinto "${DESTDIR}"
        doins package.json git.json
        insopts -m0755
-       doins -r locales src node_modules
+       doins -r src node_modules
 
        dosym "${DESTDIR}"/Popcorn-Time /opt/bin/Popcorn-Time
 

Reply via email to