diff options
author | Andrew Clemons <andrew.clemons@gmail.com> | 2017-11-12 19:44:49 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-11-18 12:40:21 +0700 |
commit | 8c0911535e5d486586e869ee26c96069db94082d (patch) | |
tree | 4ee43bc39004f95a41093ca4e310cee70c744f6e /libraries/json-parser/patches | |
parent | 9253cb1573fe64460d7cfe969b151f4c0c25a0d6 (diff) |
libraries/json-parser: Added (very low footprint JSON parser).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'libraries/json-parser/patches')
-rw-r--r-- | libraries/json-parser/patches/ef2e7454cae8dab485ec4cbce85134a7b7bd7ecd.patch | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/libraries/json-parser/patches/ef2e7454cae8dab485ec4cbce85134a7b7bd7ecd.patch b/libraries/json-parser/patches/ef2e7454cae8dab485ec4cbce85134a7b7bd7ecd.patch new file mode 100644 index 0000000000000..8a0b3173b3834 --- /dev/null +++ b/libraries/json-parser/patches/ef2e7454cae8dab485ec4cbce85134a7b7bd7ecd.patch @@ -0,0 +1,66 @@ +From ef2e7454cae8dab485ec4cbce85134a7b7bd7ecd Mon Sep 17 00:00:00 2001 +From: Igor Gnatenko <i.gnatenko.brain@gmail.com> +Date: Wed, 14 May 2014 14:58:27 +0400 +Subject: [PATCH] improve pkgconfig module (close #37) + +Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com> +--- + Makefile.in | 4 ++++ + configure.ac | 4 +++- + json-parser.pc.in | 10 ++++++++++ + 3 files changed, 17 insertions(+), 1 deletion(-) + create mode 100644 json-parser.pc.in + +diff --git a/Makefile.in b/Makefile.in +index 85e9e38..68e0b33 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -4,6 +4,7 @@ prefix = @prefix@ + + includedir = $(DESTDIR)@includedir@ + libdir = $(DESTDIR)@libdir@ ++datadir = $(DESTDIR)@datadir@ + + AR = @AR@ + CC = @CC@ +@@ -40,6 +41,9 @@ clean: + rm -f libjsonparser.$(SO_EXT) libjsonparser.a json.o + + install-shared: libjsonparser.$(SO_EXT) ++ @echo Installing pkgconfig module: $(datadir)/pkgconfig/json-parser.pc ++ @install -d $(datadir)/pkgconfig/ || true ++ @install -m 0644 json-parser.pc $(datadir)/pkgconfig/json-parser.pc + @echo Installing shared library: $(libdir)/libjsonparser.$(SO_EXT) + @install -d $(libdir) || true + @install -m 0755 libjsonparser.$(SO_EXT) $(libdir)/$(REAL_NAME) +diff --git a/configure.ac b/configure.ac +index 8e73fc3..2111634 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -22,7 +22,9 @@ fi + + AC_SUBST(VERSION_MAJOR, $VERSION_MAJOR) + +-AC_CONFIG_FILES([Makefile]) ++AC_CONFIG_FILES([ ++ Makefile ++ json-parser.pc]) + + AC_OUTPUT + +diff --git a/json-parser.pc.in b/json-parser.pc.in +new file mode 100644 +index 0000000..fc743c4 +--- /dev/null ++++ b/json-parser.pc.in +@@ -0,0 +1,10 @@ ++prefix=@prefix@ ++exec_prefix=@exec_prefix@ ++libdir=@libdir@ ++includedir=@includedir@ ++ ++Name: json-parser ++Description: Very low footprint JSON parser written in portable ANSI C ++Version: @VERSION_MAJOR@ ++Libs: -L${libdir} -ljsonparser ++Cflags: -I${includedir}/json-parser |