Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/xpra-html5/
Date: Thu, 12 May 2022 21:57:50
Message-Id: 1652392629.15e998d86f5915ca56cb5b8c935b2a1786255d9e.chewi@gentoo
1 commit: 15e998d86f5915ca56cb5b8c935b2a1786255d9e
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 12 21:57:09 2022 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Thu May 12 21:57:09 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15e998d8
7
8 www-apps/xpra-html5: Version bump to 5.0
9
10 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
11
12 www-apps/xpra-html5/Manifest | 1 +
13 www-apps/xpra-html5/xpra-html5-5.0.ebuild | 45 +++++++++++++++++++++++++++++++
14 2 files changed, 46 insertions(+)
15
16 diff --git a/www-apps/xpra-html5/Manifest b/www-apps/xpra-html5/Manifest
17 index 872df3d1d30d..98ddc7760a0b 100644
18 --- a/www-apps/xpra-html5/Manifest
19 +++ b/www-apps/xpra-html5/Manifest
20 @@ -1 +1,2 @@
21 DIST xpra-html5-4.5.2.tar.gz 1492651 BLAKE2B 1e0fb2f554f4e2c4bb4bbf3b937b33408dc56b7a2aaba1a0459e28bea4c87b5f96195abbd2de0e8461964e43dace5f40badfdb9dfe3a4db5f7c3c9eddc6eaa68 SHA512 a1f73889ad3797ca25d232d3d11e1753dc10944cb8f07c1d6dbacfbf5273b22a0d3696af4e88cd5b75ed4a0970533e340a41253842c3766ab6fe650dc5fb0d0b
22 +DIST xpra-html5-5.0.tar.gz 1570694 BLAKE2B aef7b818aa618c143701993627e629884b5e696c7334e6b75701a20028f18aced5e3249505ac031d6cd0a08d79ca2b9728afdb2e90712fcbe45d43d02598f608 SHA512 8318c6dd8f8f53d0a132272c2bb8c69e8ba928f2f267679aee48cec4598faa828788a219dfa342162e1fcf8159bf46b44d50db57180f1aa972edd67fa43e9cd5
23
24 diff --git a/www-apps/xpra-html5/xpra-html5-5.0.ebuild b/www-apps/xpra-html5/xpra-html5-5.0.ebuild
25 new file mode 100644
26 index 000000000000..5c2270895f63
27 --- /dev/null
28 +++ b/www-apps/xpra-html5/xpra-html5-5.0.ebuild
29 @@ -0,0 +1,45 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +PYTHON_COMPAT=( python3_{8,9,10} )
36 +inherit python-any-r1
37 +
38 +DESCRIPTION="HTML5 client to connect to any xpra server"
39 +HOMEPAGE="https://xpra.org/"
40 +SRC_URI="https://github.com/Xpra-org/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="MPL-2.0"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~x86"
45 +IUSE="brotli +gzip minify"
46 +
47 +BDEPEND="
48 + ${PYTHON_DEPS}
49 + brotli? ( app-arch/brotli )
50 + minify? ( dev-util/uglifyjs )
51 +"
52 +
53 +src_configure() {
54 + cat <<EOF > vcs-info || die
55 +BRANCH=gentoo
56 +REVISION=${PR#r}
57 +LOCAL_MODIFICATIONS=0
58 +EOF
59 +}
60 +
61 +src_install() {
62 + "${PYTHON}" <<EOF || die
63 +import setup
64 +setup.set_version("${PV}")
65 +setup.install_html5(
66 + root="${D}",
67 + install_dir="${EPREFIX}/usr/share/xpra/www/",
68 + config_dir="${EPREFIX}/etc/xpra/html5-client",
69 + minifier="$(usex minify uglifyjs copy)",
70 + gzip=$(usex gzip True False),
71 + brotli=$(usex brotli True False),
72 +)
73 +EOF
74 +}