From 61739de2f46b20faa4f719cf8d5a4c759021f7da Mon Sep 17 00:00:00 2001 From: Stefan Kalkowski Date: Mon, 23 Oct 2017 11:01:13 +0200 Subject: [PATCH] depot: recipe for pcre library Issue #2446 --- repos/libports/lib/mk/pcre.mk | 5 ++--- repos/libports/lib/symbols/pcre | 26 ++++++++++++++++++++++ repos/libports/recipes/api/pcre/content.mk | 14 ++++++++++++ repos/libports/recipes/api/pcre/hash | 1 + repos/libports/recipes/src/pcre/api | 1 + repos/libports/recipes/src/pcre/content.mk | 16 +++++++++++++ repos/libports/recipes/src/pcre/hash | 1 + repos/libports/recipes/src/pcre/used_apis | 2 ++ 8 files changed, 63 insertions(+), 3 deletions(-) create mode 100644 repos/libports/lib/symbols/pcre create mode 100644 repos/libports/recipes/api/pcre/content.mk create mode 100644 repos/libports/recipes/api/pcre/hash create mode 100644 repos/libports/recipes/src/pcre/api create mode 100644 repos/libports/recipes/src/pcre/content.mk create mode 100644 repos/libports/recipes/src/pcre/hash create mode 100644 repos/libports/recipes/src/pcre/used_apis diff --git a/repos/libports/lib/mk/pcre.mk b/repos/libports/lib/mk/pcre.mk index 91a4363a6..26e849f5d 100644 --- a/repos/libports/lib/mk/pcre.mk +++ b/repos/libports/lib/mk/pcre.mk @@ -1,5 +1,3 @@ -include $(REP_DIR)/lib/import/import-pcre.mk - PCRE_PORT_DIR := $(call select_from_ports,pcre) SRC_C = pcre_byte_order.c \ @@ -23,7 +21,8 @@ SRC_C = pcre_byte_order.c \ pcre_version.c \ pcre_xclass.c -INC_DIR += $(PCRE_PORT_DIR)/src/lib/pcre \ +INC_DIR += $(PCRE_PORT_DIR)/include/pcre \ + $(PCRE_PORT_DIR)/src/lib/pcre \ $(REP_DIR)/src/lib/pcre/include CC_OPT += -DHAVE_CONFIG_H diff --git a/repos/libports/lib/symbols/pcre b/repos/libports/lib/symbols/pcre new file mode 100644 index 000000000..ce59f7344 --- /dev/null +++ b/repos/libports/lib/symbols/pcre @@ -0,0 +1,26 @@ +pcre_callout B 8 +pcre_compile2 T +pcre_compile T +pcre_config T +pcre_copy_named_substring T +pcre_copy_substring T +pcre_dfa_exec T +pcre_exec T +pcre_free D 8 +pcre_free_study T +pcre_free_substring_list T +pcre_free_substring T +pcre_fullinfo T +pcre_get_named_substring T +pcre_get_stringnumber T +pcre_get_stringtable_entries T +pcre_get_substring_list T +pcre_get_substring T +pcre_maketables T +pcre_malloc D 8 +pcre_pattern_to_host_byte_order T +pcre_refcount T +pcre_stack_free D 8 +pcre_stack_malloc D 8 +pcre_study T +pcre_version T diff --git a/repos/libports/recipes/api/pcre/content.mk b/repos/libports/recipes/api/pcre/content.mk new file mode 100644 index 000000000..b01ac9a7e --- /dev/null +++ b/repos/libports/recipes/api/pcre/content.mk @@ -0,0 +1,14 @@ +content: include lib/symbols/pcre LICENCE + +PORT_DIR := $(call port_dir,$(REP_DIR)/ports/pcre) + +include: + mkdir $@ + cp -r $(PORT_DIR)/include/pcre/* $@/ + +lib/symbols/pcre: + $(mirror_from_rep_dir) + +LICENCE: + cp $(PORT_DIR)/src/lib/pcre/LICENCE $@ + diff --git a/repos/libports/recipes/api/pcre/hash b/repos/libports/recipes/api/pcre/hash new file mode 100644 index 000000000..1c81fb72c --- /dev/null +++ b/repos/libports/recipes/api/pcre/hash @@ -0,0 +1 @@ +2017-10-23-a a63a1a5995d1831d6efe3e580f42fb6ccf40a5ab diff --git a/repos/libports/recipes/src/pcre/api b/repos/libports/recipes/src/pcre/api new file mode 100644 index 000000000..abd501ce2 --- /dev/null +++ b/repos/libports/recipes/src/pcre/api @@ -0,0 +1 @@ +pcre diff --git a/repos/libports/recipes/src/pcre/content.mk b/repos/libports/recipes/src/pcre/content.mk new file mode 100644 index 000000000..dae4ed37b --- /dev/null +++ b/repos/libports/recipes/src/pcre/content.mk @@ -0,0 +1,16 @@ +content: src/lib/pcre lib/mk/pcre.mk LICENCE + +PORT_DIR := $(call port_dir,$(REP_DIR)/ports/pcre) + +src/lib/pcre: + mkdir -p $@ + cp -a $(PORT_DIR)/src/lib/pcre/* $@ + cp -a $(REP_DIR)/src/lib/pcre/* $@ + echo "LIBS = pcre" > $@/target.mk + +lib/mk/pcre.mk: + $(mirror_from_rep_dir) + +LICENCE: + cp $(PORT_DIR)/src/lib/pcre/LICENCE $@ + diff --git a/repos/libports/recipes/src/pcre/hash b/repos/libports/recipes/src/pcre/hash new file mode 100644 index 000000000..48e83936b --- /dev/null +++ b/repos/libports/recipes/src/pcre/hash @@ -0,0 +1 @@ +2017-11-02 d96fa844173f4724152070d7cd654309e5e213bc diff --git a/repos/libports/recipes/src/pcre/used_apis b/repos/libports/recipes/src/pcre/used_apis new file mode 100644 index 000000000..4011ccc3b --- /dev/null +++ b/repos/libports/recipes/src/pcre/used_apis @@ -0,0 +1,2 @@ +libc +so