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: Wed, 01 Sep 2021 20:52:51
Message-Id: 1630529525.72d1236def4d535921b89ab33546c492e4910987.chewi@gentoo
1 commit: 72d1236def4d535921b89ab33546c492e4910987
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 1 20:46:38 2021 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 1 20:52:05 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72d1236d
7
8 www-apps/xpra-html5: New package
9
10 Package-Manager: Portage-3.0.22, Repoman-3.0.3
11 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
12
13 www-apps/xpra-html5/Manifest | 1 +
14 www-apps/xpra-html5/metadata.xml | 16 ++++++++++++
15 www-apps/xpra-html5/xpra-html5-4.3.ebuild | 43 +++++++++++++++++++++++++++++++
16 3 files changed, 60 insertions(+)
17
18 diff --git a/www-apps/xpra-html5/Manifest b/www-apps/xpra-html5/Manifest
19 new file mode 100644
20 index 00000000000..98b74200243
21 --- /dev/null
22 +++ b/www-apps/xpra-html5/Manifest
23 @@ -0,0 +1 @@
24 +DIST xpra-html5-4.3.tar.gz 1520768 BLAKE2B f02cd4d751a9f929301199753d9ccc1c8da71378aedfece2ef248676525383b2fa6b0440fefee3c6c292449de9cafc38281d202237fcc1c96353b84bc0b2fbf6 SHA512 5bca4d8bf59b81c34dfc75b6b15475ff2a898015dac07d609d08efba0484d2eea5e31a50de45ffbf1e5c1701fe212dc4e964a177119990a2d39f486b8944b8f2
25
26 diff --git a/www-apps/xpra-html5/metadata.xml b/www-apps/xpra-html5/metadata.xml
27 new file mode 100644
28 index 00000000000..7ea60186d2d
29 --- /dev/null
30 +++ b/www-apps/xpra-html5/metadata.xml
31 @@ -0,0 +1,16 @@
32 +<?xml version="1.0" encoding="UTF-8"?>
33 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
34 +<pkgmetadata>
35 + <maintainer type="person">
36 + <email>chewi@g.o</email>
37 + <name>James Le Cuirot</name>
38 + </maintainer>
39 + <upstream>
40 + <remote-id type="github">Xpra-org/xpra-html5</remote-id>
41 + </upstream>
42 + <use>
43 + <flag name="brotli">Install assets compressed with brotli</flag>
44 + <flag name="gzip">Install assets compressed with gzip</flag>
45 + <flag name="minify">Minify JavaScript code for smaller transfers</flag>
46 + </use>
47 +</pkgmetadata>
48
49 diff --git a/www-apps/xpra-html5/xpra-html5-4.3.ebuild b/www-apps/xpra-html5/xpra-html5-4.3.ebuild
50 new file mode 100644
51 index 00000000000..636eaaff0e1
52 --- /dev/null
53 +++ b/www-apps/xpra-html5/xpra-html5-4.3.ebuild
54 @@ -0,0 +1,43 @@
55 +# Copyright 1999-2021 Gentoo Authors
56 +# Distributed under the terms of the GNU General Public License v2
57 +
58 +EAPI=8
59 +
60 +PYTHON_COMPAT=( python3_{8,9,10} )
61 +inherit python-any-r1
62 +
63 +DESCRIPTION="HTML5 client to connect to any xpra server"
64 +HOMEPAGE="https://xpra.org/"
65 +SRC_URI="https://github.com/Xpra-org/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
66 +
67 +LICENSE="MPL-2.0"
68 +SLOT="0"
69 +KEYWORDS="~amd64 ~x86"
70 +IUSE="brotli +gzip minify"
71 +
72 +BDEPEND="
73 + ${PYTHON_DEPS}
74 + brotli? ( app-arch/brotli )
75 + minify? ( dev-util/uglifyjs )
76 +"
77 +
78 +src_configure() {
79 + cat <<EOF > vcs-info || die
80 +BRANCH=gentoo
81 +REVISION=${PR#r}
82 +LOCATION_MODIFICATIONS=0
83 +EOF
84 +}
85 +
86 +src_install() {
87 + "${PYTHON}" <<EOF || die
88 +import setup
89 +setup.set_version("${PV}")
90 +setup.install_html5(
91 + "${ED}/usr/share/xpra/www",
92 + "$(usex minify uglifyjs copy)",
93 + brotli=$(usex brotli True False),
94 + gzip=$(usex gzip True False)
95 +)
96 +EOF
97 +}