commit 5b16a037f2447ad85020a956581890df640649e7 parent c743eb7c7d032761443b5cce8ebe3d1eac19e9a3 Author: parazyd <parazyd@dyne.org> Date: Fri, 25 Jan 2019 12:47:22 +0100 app-mobilephone/scrcpy: Add 9999 Diffstat:
A | app-mobilephone/scrcpy/Manifest | | | 1 | + |
A | app-mobilephone/scrcpy/scrcpy-9999.ebuild | | | 44 | ++++++++++++++++++++++++++++++++++++++++++++ |
2 files changed, 45 insertions(+), 0 deletions(-)
diff --git a/app-mobilephone/scrcpy/Manifest b/app-mobilephone/scrcpy/Manifest @@ -0,0 +1 @@ +DIST scrcpy-server-v1.3.jar 18570 BLAKE2B 273588fe717790344fbe97dcc528979be46e1629c5d52730706809e6cf442e3dce8574870a6c25c41a5147f6c0cdbc8ab58672070c58ba6d2d61ac6b829794a7 SHA512 0d5f77a5becc066bc5fec5c6d2246a52397f8fcf4c961ac0e22efa0f9dbc2e64a9d064a85d175e4dcfe8b2f2309b29a02035eded1126a7bab153b2ac1bddb585 diff --git a/app-mobilephone/scrcpy/scrcpy-9999.ebuild b/app-mobilephone/scrcpy/scrcpy-9999.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit meson ninja-utils git-r3 + +EGIT_REPO_URI="https://github.com/Genymobile/scrcpy.git" + +if [[ ${PV} = 9999* ]]; then + MY_SERVER_PV="1.3" +else + EGIT_COMMIT="v${PV}" + MY_SERVER_PV="${PV}" + KEYWORDS="~amd64" +fi + +MY_SERVER_PN="scrcpy-server" +MY_SERVER_P="${MY_SERVER_PN}-v${MY_SERVER_PV}.jar" + +SRC_URI="https://github.com/Genymobile/${PN}/releases/download/v${MY_SERVER_PV}/${MY_SERVER_P}" + +DESCRIPTION="Display and control your Android device" +HOMEPAGE="https://blog.rom1v.com/2018/03/introducing-scrcpy/" + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" + +RESTRICT="test" + +COMMON_DEPEND="media-libs/libsdl2 + media-video/ffmpeg" +DEPEND="${COMMON_DEPEND}" +RDEPEND="${COMMON_DEPEND}" +PDEPEND="" + +src_configure() { + local emesonargs=( + -Db_lto=true + -Dprebuilt_server="${DISTDIR}/${MY_SERVER_P}" + ) + meson_src_configure +}