package/datatables-fixedcolumns: new package
authorJoeri Barbarien <joeri.barbarien@nokia.com>
Tue, 8 Dec 2020 18:05:27 +0000 (19:05 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 2 Jan 2021 11:08:46 +0000 (12:08 +0100)
Signed-off-by: Joeri Barbarien <joeri.barbarien@nokia.com>
Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
DEVELOPERS
package/Config.in
package/datatables-fixedcolumns/Config.in [new file with mode: 0644]
package/datatables-fixedcolumns/datatables-fixedcolumns.hash [new file with mode: 0644]
package/datatables-fixedcolumns/datatables-fixedcolumns.mk [new file with mode: 0644]

index 5ef979dec573cdc6c6f321cc9d67145fa61014fa..1095588f4648ee612f5d3b0a1383f8e176bf0d17 100644 (file)
@@ -2517,6 +2517,7 @@ F:        package/cereal/
 F:     package/chartjs/
 F:     package/datatables/
 F:     package/datatables-buttons/
+F:     package/datatables-fixedcolumns/
 F:     package/jszip/
 F:     package/libtelnet/
 F:     package/opkg-utils/
index 819d1356853e8caf5009d909be0ff8771bc9dad9..f1e8b6f20e34ac24274715f69fc96f373c1d3d0d 100644 (file)
@@ -1581,6 +1581,7 @@ endif
        source "package/chartjs/Config.in"
        source "package/datatables/Config.in"
        source "package/datatables-buttons/Config.in"
+       source "package/datatables-fixedcolumns/Config.in"
        source "package/duktape/Config.in"
        source "package/explorercanvas/Config.in"
        source "package/flot/Config.in"
diff --git a/package/datatables-fixedcolumns/Config.in b/package/datatables-fixedcolumns/Config.in
new file mode 100644 (file)
index 0000000..4d2e5ea
--- /dev/null
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_DATATABLES_FIXEDCOLUMNS
+       bool "datatables-fixedcolumns"
+       depends on BR2_PACKAGE_DATATABLES
+       help
+         When making use of DataTables' x-axis scrolling feature
+         (scrollX), you may wish to fix the left or right most columns
+         in place. This extension for DataTables provides exactly this
+         option.
+
+         https://datatables.net/extensions/fixedcolumns
diff --git a/package/datatables-fixedcolumns/datatables-fixedcolumns.hash b/package/datatables-fixedcolumns/datatables-fixedcolumns.hash
new file mode 100644 (file)
index 0000000..dc94620
--- /dev/null
@@ -0,0 +1,3 @@
+# Locally computed:
+sha256 53a7b20ea9dbb6498137cb7260bde8605989ec578e4b71787f5ebc4ef9910bd9  FixedColumns-3.3.0.zip
+sha256 e8e92f97216f9ea00cb2735b933a91ec8e3869bed37b6d63a90f76f41508f2de  License.txt
diff --git a/package/datatables-fixedcolumns/datatables-fixedcolumns.mk b/package/datatables-fixedcolumns/datatables-fixedcolumns.mk
new file mode 100644 (file)
index 0000000..3c74499
--- /dev/null
@@ -0,0 +1,25 @@
+################################################################################
+#
+# datatables-fixedcolumns
+#
+################################################################################
+
+DATATABLES_FIXEDCOLUMNS_VERSION = 3.3.0
+DATATABLES_FIXEDCOLUMNS_SITE = https://datatables.net/releases
+DATATABLES_FIXEDCOLUMNS_SOURCE =  FixedColumns-$(DATATABLES_FIXEDCOLUMNS_VERSION).zip
+DATATABLES_FIXEDCOLUMNS_LICENSE = MIT
+DATATABLES_FIXEDCOLUMNS_LICENSE_FILES = License.txt
+
+define DATATABLES_FIXEDCOLUMNS_EXTRACT_CMDS
+       $(UNZIP) $(DATATABLES_FIXEDCOLUMNS_DL_DIR)/$(DATATABLES_FIXEDCOLUMNS_SOURCE) -d $(@D)
+       mv $(@D)/FixedColumns-$(DATATABLES_FIXEDCOLUMNS_VERSION)/* $(@D)
+       rmdir $(@D)/FixedColumns-$(DATATABLES_FIXEDCOLUMNS_VERSION)
+endef
+
+define DATATABLES_FIXEDCOLUMNS_INSTALL_TARGET_CMDS
+       $(INSTALL) -m 0755 -d $(TARGET_DIR)/var/www/datatables-fixedcolumns/css $(TARGET_DIR)/var/www/datatables-fixedcolumns/js
+       $(INSTALL) -m 0644 -t $(TARGET_DIR)/var/www/datatables-fixedcolumns/css $(@D)/css/*.min.css
+       $(INSTALL) -m 0644 -t $(TARGET_DIR)/var/www/datatables-fixedcolumns/js $(@D)/js/*.min.js
+endef
+
+$(eval $(generic-package))