diff options
author | Bernard Cafarelli <voyageur@gentoo.org> | 2022-11-19 11:57:04 +0100 |
---|---|---|
committer | Bernard Cafarelli <voyageur@gentoo.org> | 2022-11-19 11:58:01 +0100 |
commit | 06d1ca8561cf0bd6ee0a3a8afa8e6aaa09e05a14 (patch) | |
tree | 292607710c760393ee33e407f1d1dd9189365ee7 /app-mobilephone | |
parent | dev-python/sqlalchemy: Stabilize 1.4.43 ppc64, #881945 (diff) | |
download | gentoo-06d1ca8561cf0bd6ee0a3a8afa8e6aaa09e05a14.tar.gz gentoo-06d1ca8561cf0bd6ee0a3a8afa8e6aaa09e05a14.tar.bz2 gentoo-06d1ca8561cf0bd6ee0a3a8afa8e6aaa09e05a14.zip |
app-mobilephone/scrcpy: add USE flag for LTO
This was hardcoded in ebuild
Closes: https://bugs.gentoo.org/878317
Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
Diffstat (limited to 'app-mobilephone')
-rw-r--r-- | app-mobilephone/scrcpy/metadata.xml | 6 | ||||
-rw-r--r-- | app-mobilephone/scrcpy/scrcpy-1.24-r2.ebuild | 37 |
2 files changed, 43 insertions, 0 deletions
diff --git a/app-mobilephone/scrcpy/metadata.xml b/app-mobilephone/scrcpy/metadata.xml index 8a473e90e026..6d3156f41a83 100644 --- a/app-mobilephone/scrcpy/metadata.xml +++ b/app-mobilephone/scrcpy/metadata.xml @@ -5,4 +5,10 @@ <email>voyageur@gentoo.org</email> <name>Bernard Cafarelli</name> </maintainer> + <use> + <flag name="lto">Build with Link Time Optimization (LTO)</flag> + </use> + <upstream> + <remote-id type="github">Genymobile/scrcpy</remote-id> + </upstream> </pkgmetadata> diff --git a/app-mobilephone/scrcpy/scrcpy-1.24-r2.ebuild b/app-mobilephone/scrcpy/scrcpy-1.24-r2.ebuild new file mode 100644 index 000000000000..a244fae445e4 --- /dev/null +++ b/app-mobilephone/scrcpy/scrcpy-1.24-r2.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2022 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="" + +src_configure() { + local emesonargs=( + $(meson_use lto b_lto) + -Dprebuilt_server="${DISTDIR}/${PN}-server-v${PV}" + ) + meson_src_configure +} + +pkg_postinst() { + xdg_pkg_postrm +} |