aboutsummaryrefslogtreecommitdiff
path: root/ports/rapidxml-ns
diff options
context:
space:
mode:
authorConnor Fitzgerald <connorwadefitzgerald@gmail.com>2019-03-19 00:18:02 -0400
committerPhil Christensen <philc@microsoft.com>2019-03-18 21:18:02 -0700
commit02511898db381da2f643bc4d4e55fc9bca00214d (patch)
tree415bc37fe9e027f8077354f1ebc70db08e5d0330 /ports/rapidxml-ns
parent27b1d92ef5bbba004e27bfd11aa8bea1bd9652db (diff)
downloadvcpkg-02511898db381da2f643bc4d4e55fc9bca00214d.tar.gz
vcpkg-02511898db381da2f643bc4d4e55fc9bca00214d.zip
[rapidxml-ns] Add new port. (#5703)
* [rapidxml-ns] Add new port * [rapidxml] Move headers out of include to prevent conflicts and clutter. * [rapidxml-ns] Update SHA512 * [rapidxml-ns] Fix header installation * [3fd] Fix header issue with rapidxml
Diffstat (limited to 'ports/rapidxml-ns')
-rw-r--r--ports/rapidxml-ns/CONTROL3
-rw-r--r--ports/rapidxml-ns/portfile.cmake22
2 files changed, 25 insertions, 0 deletions
diff --git a/ports/rapidxml-ns/CONTROL b/ports/rapidxml-ns/CONTROL
new file mode 100644
index 000000000..1dd1ed546
--- /dev/null
+++ b/ports/rapidxml-ns/CONTROL
@@ -0,0 +1,3 @@
+Source: rapidxml-ns
+Version: 1.13-04674e3
+Description: RapidXML with added XML namespaces support.
diff --git a/ports/rapidxml-ns/portfile.cmake b/ports/rapidxml-ns/portfile.cmake
new file mode 100644
index 000000000..c38d6c4ec
--- /dev/null
+++ b/ports/rapidxml-ns/portfile.cmake
@@ -0,0 +1,22 @@
+#header-only library
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO svgpp/rapidxml_ns
+ REF 04674e33e3bbfeee05875a29a36734667c0f3cfd
+ SHA512 c82d55ca7ec358427f811689604ba02582de9d7f57d0caa3a96e2c36b9f3751e9acefc6f84348e6c619dacca31880f279bf9d9959f8eff251f3d3276c836bcd2
+ HEAD_REF master
+)
+
+# Handle copyright
+file(COPY ${SOURCE_PATH}/license.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/rapidxml-ns)
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/rapidxml-ns/license.txt ${CURRENT_PACKAGES_DIR}/share/rapidxml-ns/copyright)
+
+# Copy the header files
+file(INSTALL
+ ${SOURCE_PATH}/rapidxml_ns.hpp
+ ${SOURCE_PATH}/rapidxml_ns_print.hpp
+ ${SOURCE_PATH}/rapidxml_ns_utils.hpp
+ DESTINATION
+ ${CURRENT_PACKAGES_DIR}/include/rapidxml-ns)