Просмотр исходного кода

package/jsmin: remove package

This package is no longer maintained and better alternative to minify
JavaScript exists since.

For more informations see https://elinux.org/Buildroot:DeveloperDaysELCE2025

Signed-off-by: Thomas Perale <thomas.perale@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Thomas Perale 4 месяцев назад
Родитель
Сommit
9038a4e06d

+ 14 - 0
Config.in.legacy

@@ -146,6 +146,20 @@ endif
 
 comment "Legacy options removed in 2026.02"
 
+config BR2_PACKAGE_HOST_JSMIN
+	bool "host-jsmin has been removed"
+	select BR2_LEGACY
+	help
+	  JSMin is no longer maintained and better alternative
+	  exists since then.
+
+config BR2_PACKAGE_JSMIN
+	bool "jsmin has been removed"
+	select BR2_LEGACY
+	help
+	  JSMin is no longer maintained and better alternative
+	  exists since then.
+
 config BR2_PACKAGE_VUEJS_ROUTER
 	bool "vuejs-router has been removed"
 	select BR2_LEGACY

+ 0 - 1
package/Config.in

@@ -1868,7 +1868,6 @@ endmenu
 
 menu "Javascript"
 	source "package/duktape/Config.in"
-	source "package/jsmin/Config.in"
 endmenu
 
 menu "JSON/XML"

+ 0 - 1
package/Config.in.host

@@ -57,7 +57,6 @@ menu "Host utilities"
 	source "package/imx-usb-loader/Config.in.host"
 	source "package/jh71xx-tools/Config.in.host"
 	source "package/jq/Config.in.host"
-	source "package/jsmin/Config.in.host"
 	source "package/kmod/Config.in.host"
 	source "package/libp11/Config.in.host"
 	source "package/llvm-project/lld/Config.in.host"

+ 0 - 11
package/jsmin/Config.in

@@ -1,11 +0,0 @@
-config BR2_PACKAGE_JSMIN
-	bool "jsmin"
-	help
-	  JSMin is a filter which removes comments and unnecessary
-	  whitespace from JavaScript files. It typically reduces
-	  filesize by half, resulting in faster downloads. It also
-	  encourages a more expressive programming style because it
-	  eliminates the download cost of clean, literate
-	  self-documentation.
-
-	  http://www.crockford.com/javascript/jsmin.html

+ 0 - 11
package/jsmin/Config.in.host

@@ -1,11 +0,0 @@
-config BR2_PACKAGE_HOST_JSMIN
-	bool "host jsmin"
-	help
-	  JSMin is a filter which removes comments and unnecessary
-	  whitespace from JavaScript files. It typically reduces
-	  filesize by half, resulting in faster downloads. It also
-	  encourages a more expressive programming style because it
-	  eliminates the download cost of clean, literate
-	  self-documentation.
-
-	  http://www.crockford.com/javascript/jsmin.html

+ 0 - 3
package/jsmin/jsmin.hash

@@ -1,3 +0,0 @@
-# Locally calculated
-sha256  aae127bf7291a7b2592f36599e5ed6c6423eac7abe0cd5992f82d6d46fe9ed2d  jsmin-1bf6ce5f74a9f8752ac7f5d115b8d7ccb31cfe1b.tar.gz
-sha256  b420f61778af09534adc836a5086f5625b8499124051c50baefa218e7c03a58c  jsmin.c

+ 0 - 29
package/jsmin/jsmin.mk

@@ -1,29 +0,0 @@
-################################################################################
-#
-# jsmin
-#
-################################################################################
-
-JSMIN_VERSION = 1bf6ce5f74a9f8752ac7f5d115b8d7ccb31cfe1b
-JSMIN_SITE = $(call github,douglascrockford,JSMin,$(JSMIN_VERSION))
-JSMIN_LICENSE = MIT
-JSMIN_LICENSE_FILES = jsmin.c
-
-define JSMIN_BUILD_CMDS
-	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) jsmin
-endef
-
-define JSMIN_INSTALL_TARGET_CMDS
-	$(INSTALL) -m 0755 -D $(@D)/jsmin $(TARGET_DIR)/usr/bin/jsmin
-endef
-
-define HOST_JSMIN_BUILD_CMDS
-	$(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) jsmin
-endef
-
-define HOST_JSMIN_INSTALL_CMDS
-	$(INSTALL) -m 0755 -D $(@D)/jsmin $(HOST_DIR)/bin/jsmin
-endef
-
-$(eval $(generic-package))
-$(eval $(host-generic-package))