commit:     831177dc81fe335f949b09b124209faf184abf84
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sun Jun  2 08:48:43 2024 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sun Jun  2 08:49:40 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=831177dc

www-apps/xpra-html5: Version bump to 13

Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 www-apps/xpra-html5/Manifest             |  1 +
 www-apps/xpra-html5/xpra-html5-13.ebuild | 45 ++++++++++++++++++++++++++++++++
 2 files changed, 46 insertions(+)

diff --git a/www-apps/xpra-html5/Manifest b/www-apps/xpra-html5/Manifest
index a3748e09ebbe..83e24314817f 100644
--- a/www-apps/xpra-html5/Manifest
+++ b/www-apps/xpra-html5/Manifest
@@ -1 +1,2 @@
 DIST xpra-html5-10.1.tar.gz 2354055 BLAKE2B 
f67b2f15903c1bef93cd93db0d363c067a4dd0455f3013aa86bfff070b91e40946c0500cff270f10f8cbbf654cd4b2d5908cb06f4d86c7ec612fec78ecf3103c
 SHA512 
a5a9c1d09ae767ad339225e1b130c2e285a20a57cc90f22728d12eec3d8cac4b1c00c7f38153972dbb2d2f6c3836ec532fcba14a4456114f70524b8ec2de38be
+DIST xpra-html5-13.tar.gz 2360764 BLAKE2B 
81ff150047ff9e422fd6b590ac115f71c3641dc2cec5e2364276e05260a527128845b84813ffa4cf7bb9354c416600a69737c41c3f1b0529a6bb1979a262e128
 SHA512 
583a9bb6dce718d1066237d0558eaa4cef2b0d9816d99d9bc9d4ce66dcfdc79bb3c21f9a8b55732a3716e752044864643ccc3bfbfca3b459169739ea3e099bf1

diff --git a/www-apps/xpra-html5/xpra-html5-13.ebuild 
b/www-apps/xpra-html5/xpra-html5-13.ebuild
new file mode 100644
index 000000000000..5731073a8d3b
--- /dev/null
+++ b/www-apps/xpra-html5/xpra-html5-13.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..13} )
+inherit python-any-r1
+
+DESCRIPTION="HTML5 client to connect to any xpra server"
+HOMEPAGE="https://xpra.org/";
+SRC_URI="https://github.com/Xpra-org/${PN}/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="MPL-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="brotli +gzip minify"
+
+BDEPEND="
+       ${PYTHON_DEPS}
+       brotli? ( app-arch/brotli )
+       minify? ( dev-util/uglifyjs )
+"
+
+src_configure() {
+       cat <<EOF > vcs-info || die
+BRANCH=gentoo
+REVISION=${PR#r}
+LOCAL_MODIFICATIONS=0
+EOF
+}
+
+src_install() {
+       "${PYTHON}" <<EOF || die
+import setup
+setup.set_version("${PV}")
+setup.install_html5(
+       root="${D}",
+       install_dir="${EPREFIX}/usr/share/xpra/www/",
+       config_dir="${EPREFIX}/etc/xpra/html5-client",
+       minifier="$(usex minify uglifyjs copy)",
+       gzip=$(usex gzip True False),
+       brotli=$(usex brotli True False),
+)
+EOF
+}

Reply via email to