From 663f915807b54e0d156e82b8d96f0533cf7ffb6b Mon Sep 17 00:00:00 2001 From: Ninetainedo Date: Wed, 21 Sep 2016 01:46:35 +0200 Subject: [PATCH] Added RapidXml --- ports/rapidxml/CONTROL | 3 +++ ports/rapidxml/portfile.cmake | 14 ++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 ports/rapidxml/CONTROL create mode 100644 ports/rapidxml/portfile.cmake diff --git a/ports/rapidxml/CONTROL b/ports/rapidxml/CONTROL new file mode 100644 index 0000000000..cfd7e0cd52 --- /dev/null +++ b/ports/rapidxml/CONTROL @@ -0,0 +1,3 @@ +Source: rapidxml +Version: 1.13 +Description: RapidXml is an attempt to create the fastest XML parser possible, while retaining useability, portability and reasonable W3C compatibility. diff --git a/ports/rapidxml/portfile.cmake b/ports/rapidxml/portfile.cmake new file mode 100644 index 0000000000..03422aa1dc --- /dev/null +++ b/ports/rapidxml/portfile.cmake @@ -0,0 +1,14 @@ +include(vcpkg_common_functions) +vcpkg_download_distfile(ARCHIVE + URL "https://sourceforge.net/projects/rapidxml/files/rapidxml/rapidxml%201.13/rapidxml-1.13.zip/download" + FILENAME "rapidxml-1.13.zip" + MD5 7b4b42c9331c90aded23bb55dc725d6a +) +vcpkg_extract_source_archive(${ARCHIVE}) + +# Handle copyright +file(COPY ${CURRENT_BUILDTREES_DIR}/src/rapidxml-1.13/license.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/rapidxml) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/rapidxml/license.txt ${CURRENT_PACKAGES_DIR}/share/rapidxml/copyright) + +# Copy the header files +file(INSTALL ${CURRENT_BUILDTREES_DIR}/src/rapidxml-1.13/ DESTINATION ${CURRENT_PACKAGES_DIR}/include FILES_MATCHING PATTERN "*.hpp")