rapidjson: bump to latest GitHub master
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 18 Nov 2014 04:23:53 +0000 (23:23 -0500)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 18 Nov 2014 13:21:41 +0000 (14:21 +0100)
RapidJSON is now hosted on GitHub and its latest version
includes many fixes and features added since 2012.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/rapidjson/rapidjson.mk

index 68e010ede193dcdc3f8a734574de24fd74f6ebed..ff516c4120952e7b2af2c21b1b46d54ba7c2f536 100644 (file)
@@ -4,27 +4,26 @@
 #
 ################################################################################
 
-RAPIDJSON_VERSION = 0.11
-RAPIDJSON_SOURCE = rapidjson-$(RAPIDJSON_VERSION).zip
-RAPIDJSON_SITE = http://rapidjson.googlecode.com/files
+RAPIDJSON_VERSION = 39f5eeb764c6d1e1cbff1717410d9710bf943009
+RAPIDJSON_SITE = $(call github,miloyip,rapidjson,$(RAPIDJSON_VERSION))
 RAPIDJSON_LICENSE = MIT
 RAPIDJSON_LICENSE_FILES = license.txt
 RAPIDJSON_INSTALL_TARGET = NO
 RAPIDJSON_INSTALL_STAGING = YES
 
-define RAPIDJSON_EXTRACT_CMDS
-       $(UNZIP) -d $(@D) $(DL_DIR)/$(RAPIDJSON_SOURCE)
-       mv $(@D)/rapidjson/* $(@D)
-       $(RM) -r $(@D)/rapidjson
-endef
-
 define RAPIDJSON_INSTALL_STAGING_CMDS
        $(INSTALL) -m 0755 -d $(STAGING_DIR)/usr/include/rapidjson
        $(INSTALL) -m 0755 -d $(STAGING_DIR)/usr/include/rapidjson/internal
+       $(INSTALL) -m 0755 -d $(STAGING_DIR)/usr/include/rapidjson/error
+       $(INSTALL) -m 0755 -d $(STAGING_DIR)/usr/include/rapidjson/msinttypes
        $(INSTALL) -m 0644 $(@D)/include/rapidjson/*.h \
                $(STAGING_DIR)/usr/include/rapidjson
        $(INSTALL) -m 0644 $(@D)/include/rapidjson/internal/*.h \
                $(STAGING_DIR)/usr/include/rapidjson/internal
+       $(INSTALL) -m 0644 $(@D)/include/rapidjson/error/*.h \
+               $(STAGING_DIR)/usr/include/rapidjson/error
+       $(INSTALL) -m 0644 $(@D)/include/rapidjson/msinttypes/*.h \
+               $(STAGING_DIR)/usr/include/rapidjson/msinttypes
 endef
 
 $(eval $(generic-package))