package/vis-network: new package

Signed-off-by: Johan Oudinet <johan.oudinet@gmail.com>
[Arnout:
 - alphabetically order DEVELOPERS;
 - license is OR, not AND]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
Johan Oudinet 2021-10-25 11:16:38 +02:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent 607491354f
commit 31a28d8906
5 changed files with 34 additions and 0 deletions

View File

@ -1505,6 +1505,7 @@ F: package/erlang-p1-yaml/
F: package/erlang-p1-yconf/
F: package/erlang-p1-zlib/
F: package/nginx-dav-ext/
F: package/vis-network/
F: package/vuejs/
N: John Stile <johns@msli.com>

View File

@ -1688,6 +1688,7 @@ endif
source "package/jszip/Config.in"
source "package/openlayers/Config.in"
source "package/popperjs/Config.in"
source "package/vis-network/Config.in"
source "package/vuejs/Config.in"
if BR2_PACKAGE_VUEJS
comment "External Vue.js plugins"

View File

@ -0,0 +1,7 @@
config BR2_PACKAGE_VIS_NETWORK
bool "vis-network"
help
Display dynamic, automatically organised, customizable network
views. Network uses HTML canvas for rendering.
http://visjs.github.io/vis-network/

View File

@ -0,0 +1,4 @@
# Locally computed
sha256 a9f7325cbe28147318476c63f09c1d5c894d2239bfa4b4dd2dfb3dbebb0705d3 vis-network-9.1.0.tgz
sha256 1509904280a272780fd69c04b858f512cf216f8e3464a0dd98d8f34416feced9 LICENSE-APACHE-2.0
sha256 1f65085e54c036645082257618db2c7b787e68c3b02485e214ecd09e0834ee8f LICENSE-MIT

View File

@ -0,0 +1,21 @@
################################################################################
#
# vis-network
#
################################################################################
VIS_NETWORK_VERSION = 9.1.0
VIS_NETWORK_SOURCE = vis-network-$(VIS_NETWORK_VERSION).tgz
VIS_NETWORK_SITE = https://registry.npmjs.org/vis-network/-
VIS_NETWORK_LICENSE = Apache-2.0 or MIT
VIS_NETWORK_LICENSE_FILES = LICENSE-APACHE-2.0 LICENSE-MIT
# Install .min.js and .min.css as .js and .css, respectively.
define VIS_NETWORK_INSTALL_TARGET_CMDS
$(INSTALL) -m 644 -D $(@D)/dist/vis-network.min.js \
$(TARGET_DIR)/var/www/vis-network.js
$(INSTALL) -m 644 -D $(@D)/dist/dist/vis-network.min.css \
$(TARGET_DIR)/var/www/vis-network.css
endef
$(eval $(generic-package))