www-apps/novnc: 1.0.0 bup
authorMatthew Thode <prometheanfire@gentoo.org>
Mon, 16 Jul 2018 02:50:55 +0000 (21:50 -0500)
committerMatthew Thode <prometheanfire@gentoo.org>
Mon, 16 Jul 2018 02:51:14 +0000 (21:51 -0500)
Closes: https://bugs.gentoo.org/661130
Package-Manager: Portage-2.3.40, Repoman-2.3.9

www-apps/novnc/Manifest
www-apps/novnc/novnc-1.0.0.ebuild [new file with mode: 0644]
www-apps/novnc/novnc-9999.ebuild

index ad2e2ecddab46631b1408c2d8c9bf43ed8ed303e..a72a4ad314ee81663dbfe927d16340b7344f232f 100644 (file)
@@ -1 +1,2 @@
 DIST novnc-0.6.2.tar.gz 600675 BLAKE2B f9779a9f03ba653f77090639112cd0c967ff5925d2f9897da6508fd077fb79a2f543467e32210572935a642e06fbbcac4a44c34b4342474f54ef7ec7a9bdbf4f SHA512 245d205f8935c82722a55d6cfcd2cea1825176c0cd695fd0eec34aa19cdc3b766fed62e741ff41b0a8c4a3b3cbabc5a39dfa6ad8ffa6169f5b88420a4a845a7c
+DIST novnc-1.0.0.tar.gz 1551574 BLAKE2B 58bd63eb0480b3f20ed16907725e0abcf8c699671614dc195f46a363d6ab9cdb5b0b033ba0ba16bbe39b16437fb94f64a741acd69d1c3c3957a0e60353d78a89 SHA512 97a86be5f10f382e2ed641360f5f6c3b22998f68f980c78138aca900ef6a011c1f6aa9cbdd8cd07afd4884e8c65af30d65487e87bb34e524c10f16cf4cd116a3
diff --git a/www-apps/novnc/novnc-1.0.0.ebuild b/www-apps/novnc/novnc-1.0.0.ebuild
new file mode 100644 (file)
index 0000000..8ef65ad
--- /dev/null
@@ -0,0 +1,47 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+
+inherit distutils-r1
+
+DESCRIPTION="noVNC is a VNC client implemented using HTML5 technologies"
+HOMEPAGE="https://kanaka.github.com/noVNC/"
+
+if [[ ${PV} == 9999 ]] ; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/kanaka/noVNC.git"
+else
+       SRC_URI="https://github.com/kanaka/noVNC/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~arm-linux ~x86-linux"
+fi
+
+S="${WORKDIR}/noVNC-${PV}"
+
+LICENSE="LGPL-3"
+SLOT="0"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}
+       dev-python/websockify[${PYTHON_USEDEP}]
+       dev-python/numpy[${PYTHON_USEDEP}]"
+
+python_compile() {
+       echo
+}
+
+src_install() {
+       exeinto /usr/share/novnc/utils
+       for f in utils/*; do
+               [[ ! f = utils/README.md ]] && doexe $f
+       done
+
+       dodoc README.md LICENSE.txt
+
+       insinto /usr/share/novnc
+       doins -r vnc.html vnc_lite.html app/ core/ vendor/
+       dosym /usr/share/novnc/vnc_lite.html /usr/share/novnc/vnc_auto.html  # for compat
+}
index fb8b22ba491ef6a87be7c509389721102a0be83f..8ef65ad0e359cbd1ddc5870c3d28158d3f8e6a35 100644 (file)
@@ -42,6 +42,6 @@ src_install() {
        dodoc README.md LICENSE.txt
 
        insinto /usr/share/novnc
-       doins -r *.html include/ images/
-       dosym images/favicon.ico /usr/share/novnc/favicon.ico
+       doins -r vnc.html vnc_lite.html app/ core/ vendor/
+       dosym /usr/share/novnc/vnc_lite.html /usr/share/novnc/vnc_auto.html  # for compat
 }