You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.1 KiB
49 lines
1.1 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=8
|
||
|
|
||
|
PYTHON_COMPAT=( python3_{8,9,10} )
|
||
|
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}
|
||
3 years ago
|
LOCAL_MODIFICATIONS=0
|
||
3 years ago
|
EOF
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
"${PYTHON}" <<EOF || die
|
||
|
import setup
|
||
|
setup.set_version("${PV}")
|
||
|
setup.install_html5(
|
||
|
"${ED}/usr/share/xpra/www",
|
||
|
"$(usex minify uglifyjs copy)",
|
||
3 years ago
|
gzip=$(usex gzip True False),
|
||
3 years ago
|
brotli=$(usex brotli True False),
|
||
3 years ago
|
configuration_files=["default-settings.txt"]
|
||
3 years ago
|
)
|
||
|
EOF
|
||
3 years ago
|
|
||
|
insinto /etc/xpra/html5-client
|
||
|
doins html5/default-settings.txt
|
||
|
dosym ../../../../etc/xpra/html5-client/default-settings.txt /usr/share/xpra/www/default-settings.txt
|
||
3 years ago
|
}
|