summarylogtreecommitdiffstats
path: root/no-tests.patch
diff options
context:
space:
mode:
Diffstat (limited to 'no-tests.patch')
-rw-r--r--no-tests.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/no-tests.patch b/no-tests.patch
new file mode 100644
index 00000000000..7512275c7ad
--- /dev/null
+++ b/no-tests.patch
@@ -0,0 +1,21 @@
+diff --unified --recursive --text lua-cjson-2.1.0.old/Makefile lua-cjson-2.1.0.new/Makefile
+--- lua-cjson-2.1.0.old/Makefile 2012-03-01 13:22:50.000000000 +0100
++++ lua-cjson-2.1.0.new/Makefile 2020-09-25 01:41:33.188384712 +0200
+@@ -104,16 +104,13 @@
+ chmod $(EXECPERM) $(DESTDIR)/$(LUA_CMODULE_DIR)/$(TARGET)
+
+ install-extra:
+- mkdir -p $(DESTDIR)/$(LUA_MODULE_DIR)/cjson/tests \
+- $(DESTDIR)/$(LUA_BIN_DIR)
++ mkdir -p $(DESTDIR)/$(LUA_MODULE_DIR)/cjson $(DESTDIR)/$(LUA_BIN_DIR)
+ cp lua/cjson/util.lua $(DESTDIR)/$(LUA_MODULE_DIR)/cjson
+ chmod $(DATAPERM) $(DESTDIR)/$(LUA_MODULE_DIR)/cjson/util.lua
+ cp lua/lua2json.lua $(DESTDIR)/$(LUA_BIN_DIR)/lua2json$(LUA_BIN_SUFFIX)
+ chmod $(EXECPERM) $(DESTDIR)/$(LUA_BIN_DIR)/lua2json$(LUA_BIN_SUFFIX)
+ cp lua/json2lua.lua $(DESTDIR)/$(LUA_BIN_DIR)/json2lua$(LUA_BIN_SUFFIX)
+ chmod $(EXECPERM) $(DESTDIR)/$(LUA_BIN_DIR)/json2lua$(LUA_BIN_SUFFIX)
+- cd tests; cp $(TEST_FILES) $(DESTDIR)/$(LUA_MODULE_DIR)/cjson/tests
+- cd tests; chmod $(DATAPERM) $(TEST_FILES); chmod $(EXECPERM) *.lua *.pl
+
+ clean:
+ rm -f *.o $(TARGET)