diff mbox

[v3,1/1] rapidxml: new package

Message ID 1438749983-25600-1-git-send-email-yba@tkos.co.il
State Accepted
Headers show

Commit Message

Jonathan Ben Avraham Aug. 5, 2015, 4:46 a.m. UTC
From: Jonathan Ben Avraham <yba@tkos.co.il>


Signed-off-by: Jonathan Ben Avraham <yba@tkos.co.il>
---
 package/Config.in              |    1 +
 package/rapidxml/Config.in     |   11 +++++++++++
 package/rapidxml/rapidxml.hash |    1 +
 package/rapidxml/rapidxml.mk   |   26 ++++++++++++++++++++++++++
 4 files changed, 39 insertions(+)
 create mode 100644 package/rapidxml/Config.in
 create mode 100644 package/rapidxml/rapidxml.hash
 create mode 100644 package/rapidxml/rapidxml.mk

Comments

Thomas Petazzoni Aug. 17, 2015, 2:16 p.m. UTC | #1
Jonathan,

On Wed,  5 Aug 2015 07:46:23 +0300, Jonathan Ben-Avraham wrote:
> From: Jonathan Ben Avraham <yba@tkos.co.il>
> 
> 
> Signed-off-by: Jonathan Ben Avraham <yba@tkos.co.il>
> ---
>  package/Config.in              |    1 +
>  package/rapidxml/Config.in     |   11 +++++++++++
>  package/rapidxml/rapidxml.hash |    1 +
>  package/rapidxml/rapidxml.mk   |   26 ++++++++++++++++++++++++++
>  4 files changed, 39 insertions(+)
>  create mode 100644 package/rapidxml/Config.in
>  create mode 100644 package/rapidxml/rapidxml.hash
>  create mode 100644 package/rapidxml/rapidxml.mk

Applied, after doing a number of changes:

    [Thomas:
      - Rewrap Config.in help text
      - Indicate that the SHA256 hash has been locally calculated, and add
        the MD5 and SHA1 hashes from SourceForge.
      - Use downloads.sourceforge.net as the download site instead of
        garr.dl.sourceforge.net, in order to use the SourceForge mirrors
        properly, and be consistent with all other Buildroot packages
        downloading stuff from SourceForge.
      - Change the license from "MIT" to "Boost Software License 1.0 or
        MIT" as indicated by the license.txt file.
      - Change the <pkg>_EXTRACT_CMDS to remove the sub-directory created
        by the .zip file extraction, and simplify the staging installation
        step accordingly.]

Thomas
Thomas Petazzoni Aug. 17, 2015, 2:24 p.m. UTC | #2
Jonathan,

On Mon, 17 Aug 2015 16:16:59 +0200, Thomas Petazzoni wrote:

> >  package/Config.in              |    1 +
> >  package/rapidxml/Config.in     |   11 +++++++++++
> >  package/rapidxml/rapidxml.hash |    1 +
> >  package/rapidxml/rapidxml.mk   |   26 ++++++++++++++++++++++++++
> >  4 files changed, 39 insertions(+)
> >  create mode 100644 package/rapidxml/Config.in
> >  create mode 100644 package/rapidxml/rapidxml.hash
> >  create mode 100644 package/rapidxml/rapidxml.mk
> 
> Applied, after doing a number of changes:

For the record: the patch has been applied to the next branch, so it
will be part of the 2015.11 release, not the upcoming 2015.08 release.

Thanks,

Thomas
diff mbox

Patch

diff --git a/package/Config.in b/package/Config.in
index 1e39c74..589882f 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -914,6 +914,7 @@  menu "JSON/XML"
 	source "package/libyaml/Config.in"
 	source "package/mxml/Config.in"
 	source "package/rapidjson/Config.in"
+	source "package/rapidxml/Config.in"
 	source "package/tinyxml/Config.in"
 	source "package/tinyxml2/Config.in"
 	source "package/xerces/Config.in"
diff --git a/package/rapidxml/Config.in b/package/rapidxml/Config.in
new file mode 100644
index 0000000..2ecb69f
--- /dev/null
+++ b/package/rapidxml/Config.in
@@ -0,0 +1,11 @@ 
+config BR2_PACKAGE_RAPIDXML
+	bool "rapidxml"
+	help
+	  RapidXml is an attempt to create the fastest XML parser
+	  possible, while retaining useability, portability and
+	  reasonable W3C compatibility. It is an in-situ parser
+	  with parsing speed approaching speed of strlen function
+	  executed on the same data.
+
+	  http://sourceforge.net/projects/rapidxml/
+	  https://en.wikipedia.org/wiki/RapidXml
diff --git a/package/rapidxml/rapidxml.hash b/package/rapidxml/rapidxml.hash
new file mode 100644
index 0000000..8c7366c
--- /dev/null
+++ b/package/rapidxml/rapidxml.hash
@@ -0,0 +1 @@ 
+sha256	c3f0b886374981bb20fabcf323d755db4be6dba42064599481da64a85f5b3571  rapidxml-1.13.zip
diff --git a/package/rapidxml/rapidxml.mk b/package/rapidxml/rapidxml.mk
new file mode 100644
index 0000000..c9cda2c
--- /dev/null
+++ b/package/rapidxml/rapidxml.mk
@@ -0,0 +1,26 @@ 
+################################################################################
+#
+# rapidxml
+#
+################################################################################
+
+RAPIDXML_VERSION = 1.13
+RAPIDXML_SOURCE = rapidxml-$(RAPIDXML_VERSION).zip
+
+RAPIDXML_SITE = http://garr.dl.sourceforge.net/project/rapidxml/rapidxml/rapidxml%20$(RAPIDXML_VERSION)/
+RAPIDXML_LICENSE = MIT
+RAPIDXML_LICENSE_FILES = license.txt
+
+# C++ headers only
+RAPIDXML_INSTALL_TARGET = NO
+RAPIDXML_INSTALL_STAGING = YES
+
+define RAPIDXML_EXTRACT_CMDS
+	$(UNZIP) -d $(@D) $(DL_DIR)/$(RAPIDXML_SOURCE)
+endef
+
+define RAPIDXML_INSTALL_STAGING_CMDS
+	cp -dpfr $(@D)/rapidxml-$(RAPIDXML_VERSION)/*hpp $(STAGING_DIR)/usr/include
+endef
+
+$(eval $(generic-package))