public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-mobilephone/scrcpy/, app-mobilephone/scrcpy/files/
@ 2023-03-14 20:59 Bernard Cafarelli
  0 siblings, 0 replies; 2+ messages in thread
From: Bernard Cafarelli @ 2023-03-14 20:59 UTC (permalink / raw
  To: gentoo-commits

commit:     b30e760e6137caa4fba8a3692421894fc935362e
Author:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 14 20:57:49 2023 +0000
Commit:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
CommitDate: Tue Mar 14 20:58:19 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b30e760e

app-mobilephone/scrcpy: add 2.0

Also fix desktop file validation

Closes: https://bugs.gentoo.org/888133
Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>

 app-mobilephone/scrcpy/Manifest                    |  2 ++
 .../scrcpy/files/scrcpy-2.0-desktop.patch          | 41 ++++++++++++++++++++++
 app-mobilephone/scrcpy/scrcpy-2.0.ebuild           | 39 ++++++++++++++++++++
 3 files changed, 82 insertions(+)

diff --git a/app-mobilephone/scrcpy/Manifest b/app-mobilephone/scrcpy/Manifest
index 58b6a7aa10f0..928d2b985f99 100644
--- a/app-mobilephone/scrcpy/Manifest
+++ b/app-mobilephone/scrcpy/Manifest
@@ -1,2 +1,4 @@
 DIST scrcpy-1.25.tar.gz 345594 BLAKE2B 9be58de258d2e048fc87ef642ba668ad7427faea51d6bd06d48d1ca61a5c55bbce2b758b445d21ea3052ac63809769043e57a28502c53fae98079056029ded1f SHA512 7f28adb69becdc247156d664744ef382cc9ac5e746d2be9c833a53309386c22eb90893b499aee80404cb9903ea40ce5f389b41f2201bf85801e1b8ab920b4eb0
+DIST scrcpy-2.0.tar.gz 375902 BLAKE2B b45a0191a4b634a6fd165a870ce925968eb2bf697eedd88744abf6e6282afa8a4c2108e85e6d479be47e6ddc08a8b5a54875315d1319721639fea8b49f423817 SHA512 c7f6a20ff470c529f3d9a211ee02eebc028f698b2215665c8386afda8db4ea51206bb3c3182d846485399101f0add35844477ebd37df30724cb43c3882c6dc4d
 DIST scrcpy-server-v1.25 42151 BLAKE2B 90789c8b259f9a63820652f8884b51abe1040201f37788542796fbff6445bc13259e2aaf635c99c6ccdb515d8fd4b0b3bcd54d8972d134086f05d149a5073d41 SHA512 2861f423b6c982354c5959570708b51832e18b9d376397f98a78c8d6137af22bb3f19cbce501d7f413276362e9ac9e0358b8984566ff04102a3720074ff1fea1
+DIST scrcpy-server-v2.0 52867 BLAKE2B 6867677059ed60358e8d4f62a01d09d177a52a3ad5d9faf29017666b4566052c9be1777b75df24989d49acf640ff10071daddf760990f18c1df07e1f70c772ff SHA512 366e594ee87101635050185759eb03982b8749f1efe5c8f02d0fb5f60edfdacbd8280a183b872b1484648d2556cbde5abbaf1f3fd92a7f6f604181b9e81ffcde

diff --git a/app-mobilephone/scrcpy/files/scrcpy-2.0-desktop.patch b/app-mobilephone/scrcpy/files/scrcpy-2.0-desktop.patch
new file mode 100644
index 000000000000..531a4101a53c
--- /dev/null
+++ b/app-mobilephone/scrcpy/files/scrcpy-2.0-desktop.patch
@@ -0,0 +1,41 @@
+From 6706f3ce7f70a3ba5d09279be9c78d358af31e88 Mon Sep 17 00:00:00 2001
+From: Bernard Cafarelli <bernard.cafarelli@gmail.com>
+Date: Tue, 14 Mar 2023 21:48:23 +0100
+Subject: [PATCH] Fix linux desktop files validation
+
+Follow quoting rules from:
+https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#exec-variables
+Also use /bin/sh for scrpy-console
+
+Fixes #3633 <https://github.com/Genymobile/scrcpy/issues/3633>
+---
+ app/data/scrcpy-console.desktop | 2 +-
+ app/data/scrcpy.desktop         | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/app/data/scrcpy-console.desktop b/app/data/scrcpy-console.desktop
+index 47a63ec99..db3d9014c 100644
+--- a/app/data/scrcpy-console.desktop
++++ b/app/data/scrcpy-console.desktop
+@@ -5,7 +5,7 @@ Comment=Display and control your Android device
+ # For some users, the PATH or ADB environment variables are set from the shell
+ # startup file, like .bashrc or .zshrc… Run an interactive shell to get
+ # environment correctly initialized.
+-Exec=/bin/bash --norc --noprofile -i -c '"$SHELL" -i -c scrcpy || read -p "Press any key to quit..."'
++Exec=/bin/sh --norc --noprofile -i -c "\"\\$SHELL\" -i -c scrcpy || read -p 'Press any key to quit...'"
+ Icon=scrcpy
+ Terminal=true
+ Type=Application
+diff --git a/app/data/scrcpy.desktop b/app/data/scrcpy.desktop
+index 082b75e0f..1be86a2ba 100644
+--- a/app/data/scrcpy.desktop
++++ b/app/data/scrcpy.desktop
+@@ -5,7 +5,7 @@ Comment=Display and control your Android device
+ # For some users, the PATH or ADB environment variables are set from the shell
+ # startup file, like .bashrc or .zshrc… Run an interactive shell to get
+ # environment correctly initialized.
+-Exec=/bin/sh -c '"$SHELL" -i -c scrcpy'
++Exec=/bin/sh -c "\"\\$SHELL\" -i -c scrcpy"
+ Icon=scrcpy
+ Terminal=false
+ Type=Application

diff --git a/app-mobilephone/scrcpy/scrcpy-2.0.ebuild b/app-mobilephone/scrcpy/scrcpy-2.0.ebuild
new file mode 100644
index 000000000000..819f99b5380d
--- /dev/null
+++ b/app-mobilephone/scrcpy/scrcpy-2.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit meson xdg
+
+DESCRIPTION="Display and control your Android device"
+HOMEPAGE="https://github.com/Genymobile/scrcpy"
+# Source code and server part on Android device
+SRC_URI="https://github.com/Genymobile/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+	https://github.com/Genymobile/${PN}/releases/download/v${PV}/${PN}-server-v${PV}"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+IUSE="lto"
+
+DEPEND="media-libs/libsdl2[X]
+	media-video/ffmpeg
+	virtual/libusb:1"
+# Manual install for ppc64 until bug #723528 is fixed
+RDEPEND="${DEPEND}
+	!ppc64? ( dev-util/android-tools )"
+BDEPEND=""
+
+PATCHES=( "${FILESDIR}"/${P}-desktop.patch )
+
+src_configure() {
+	local emesonargs=(
+		$(meson_use lto b_lto)
+		-Dprebuilt_server="${DISTDIR}/${PN}-server-v${PV}"
+	)
+	meson_src_configure
+}
+
+pkg_postinst() {
+	xdg_pkg_postrm
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: app-mobilephone/scrcpy/, app-mobilephone/scrcpy/files/
@ 2024-07-01 14:09 Bernard Cafarelli
  0 siblings, 0 replies; 2+ messages in thread
From: Bernard Cafarelli @ 2024-07-01 14:09 UTC (permalink / raw
  To: gentoo-commits

commit:     b5f38e2da4702d83ec713963bca8707c595d0b66
Author:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
AuthorDate: Mon Jul  1 13:54:00 2024 +0000
Commit:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
CommitDate: Mon Jul  1 14:09:29 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5f38e2d

app-mobilephone/scrcpy: drop 2.3.1-r2

Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>

 app-mobilephone/scrcpy/Manifest                    |  2 -
 .../files/scrcpy-2.3.1-bash-completion.patch       | 22 ----------
 app-mobilephone/scrcpy/scrcpy-2.3.1-r2.ebuild      | 47 ----------------------
 3 files changed, 71 deletions(-)

diff --git a/app-mobilephone/scrcpy/Manifest b/app-mobilephone/scrcpy/Manifest
index c84956b3ef44..31c7cfc28f60 100644
--- a/app-mobilephone/scrcpy/Manifest
+++ b/app-mobilephone/scrcpy/Manifest
@@ -1,4 +1,2 @@
-DIST scrcpy-2.3.1.tar.gz 401278 BLAKE2B 0cb231aef87965f346613987c45a624ad853ad870000d78ccaeda6fabaa39cfbd1fed5da50f028aece96c7c12395edc521bf629d935fb8e45a806e487681e6b8 SHA512 4ef9398f23740edf8d09bb18ecc9f6e120b7d3991b8d359836f5e3f4a568484307a1f020da2edeb3193a4f4d6820b5948d6b80600e7ceeed869a2ed8136bfefd
 DIST scrcpy-2.4.tar.gz 411206 BLAKE2B 878e20b5a8b6cbe81491baf330500c3ffa779e6a1d52b1624fd8f1862768668bd73b9845cc983a6f112db88f77b5f414c1762e616999ceb24ba3733775bf932d SHA512 05467a476a9a7eb3034eb5c16875a00dceedf25a9a3acde26738c6dfbc314e9c2a515feb3f6050c7b47436cc2a44ae2d05664b1783b1b1d7c63660044404b3d6
-DIST scrcpy-server-v2.3.1 66007 BLAKE2B f3b006bdec8fb3e34474a694fcd5d54fa1caac6b1757cd4ac74d84ce42c9e163e68dbb33985c1474fdeda4c124c317494837c24bc4c18e42cc7e285666d76374 SHA512 9360ad9321554bc9ab38833720e20fada1e0e3a9d1302fced2bbc035b87ea2bbc6802fa8d52fe73ae8d9272ac0f1759c6042badd0043392b90cb68c5c89fc57c
 DIST scrcpy-server-v2.4 69007 BLAKE2B c34d75bb34dcdaf27111366575f46d8e1d54c3d9a0eca8cb569367204a3e51e4d5b05f8a4d2de9868fe48ca4e3d323c583a99da86132e533dbede78314ca447a SHA512 6618e3bd23f139f5ed10d00dd8f8bb259bd9eaa5bca4625d3da2b38c2d1aa2cd10b6e412b6e79b1b0aecc291bde9dd2f2fddf416544b18046648a6c2b92e3368

diff --git a/app-mobilephone/scrcpy/files/scrcpy-2.3.1-bash-completion.patch b/app-mobilephone/scrcpy/files/scrcpy-2.3.1-bash-completion.patch
deleted file mode 100644
index 6540db5fdb8e..000000000000
--- a/app-mobilephone/scrcpy/files/scrcpy-2.3.1-bash-completion.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-diff --git a/app/data/bash-completion/scrcpy b/app/data/bash-completion/scrcpy
-index 0c8543107..694ce1899 100644
---- a/app/data/bash-completion/scrcpy
-+++ b/app/data/bash-completion/scrcpy
-@@ -115,13 +115,13 @@ _scrcpy() {
-             COMPREPLY=($(compgen -W 'front back external' -- "$cur"))
-             return
-             ;;
--        --orientation
--        --display-orientation)
--            COMPREPLY=($(compgen -> '0 90 180 270 flip0 flip90 flip180 flip270' -- "$cur"))
-+        --orientation \
-+        |--display-orientation)
-+            COMPREPLY=($(compgen -W '0 90 180 270 flip0 flip90 flip180 flip270' -- "$cur"))
-             return
-             ;;
-         --record-orientation)
--            COMPREPLY=($(compgen -> '0 90 180 270' -- "$cur"))
-+            COMPREPLY=($(compgen -W '0 90 180 270' -- "$cur"))
-             return
-             ;;
-         --lock-video-orientation)

diff --git a/app-mobilephone/scrcpy/scrcpy-2.3.1-r2.ebuild b/app-mobilephone/scrcpy/scrcpy-2.3.1-r2.ebuild
deleted file mode 100644
index 6183caa2ec12..000000000000
--- a/app-mobilephone/scrcpy/scrcpy-2.3.1-r2.ebuild
+++ /dev/null
@@ -1,47 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit meson xdg
-
-DESCRIPTION="Display and control your Android device"
-HOMEPAGE="https://github.com/Genymobile/scrcpy"
-# Source code and server part on Android device
-SRC_URI="
-	https://github.com/Genymobile/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
-	https://github.com/Genymobile/${PN}/releases/download/v${PV}/${PN}-server-v${PV}
-"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc64 ~x86"
-
-DEPEND="
-	media-libs/libsdl2[X]
-	media-video/ffmpeg:=
-	virtual/libusb:1
-"
-# Manual install for ppc64 until bug #723528 is fixed
-RDEPEND="
-	${DEPEND}
-	!ppc64? ( dev-util/android-tools )
-"
-
-PATCHES=( "${FILESDIR}"/${P}-bash-completion.patch )
-
-src_configure() {
-	local emesonargs=(
-		-Dprebuilt_server="${DISTDIR}/${PN}-server-v${PV}"
-	)
-	meson_src_configure
-}
-
-pkg_postinst() {
-	xdg_pkg_postrm
-
-	einfo "If you use pipewire because of a problem with libsdl2 it is possible that"
-	einfo "scrcpy will not start, in which case start the program by exporting the"
-	einfo "environment variable SDL_AUDIODRIVER=pipewire."
-	einfo "For more information see https://github.com/Genymobile/scrcpy/issues/3864."
-}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-07-01 14:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-14 20:59 [gentoo-commits] repo/gentoo:master commit in: app-mobilephone/scrcpy/, app-mobilephone/scrcpy/files/ Bernard Cafarelli
  -- strict thread matches above, loose matches on Subject: below --
2024-07-01 14:09 Bernard Cafarelli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox