aboutsummaryrefslogtreecommitdiff
path: root/ports/args
diff options
context:
space:
mode:
authorBarath Kannan <barathsotd@gmail.com>2018-01-17 19:00:43 +1100
committerBarath Kannan <barathsotd@gmail.com>2018-01-17 19:00:43 +1100
commitc30363d07b3f64b5f38531442ea92d9c1cf81d13 (patch)
tree8a169a2a0aadf40dad50e73d226c3eca1e949327 /ports/args
parent47189e90d59459be69d4f6a0b039849913031c8e (diff)
parent28c5c6ae4601c323cbd57a13da03b9047dc282ad (diff)
downloadvcpkg-c30363d07b3f64b5f38531442ea92d9c1cf81d13.tar.gz
vcpkg-c30363d07b3f64b5f38531442ea92d9c1cf81d13.zip
Merge branch 'master' into qt5_modular
Diffstat (limited to 'ports/args')
-rw-r--r--ports/args/CONTROL3
-rw-r--r--ports/args/portfile.cmake19
2 files changed, 22 insertions, 0 deletions
diff --git a/ports/args/CONTROL b/ports/args/CONTROL
new file mode 100644
index 000000000..975b0251e
--- /dev/null
+++ b/ports/args/CONTROL
@@ -0,0 +1,3 @@
+Source: args
+Version: d8905de
+Description: A simple header-only C++ argument parser library.
diff --git a/ports/args/portfile.cmake b/ports/args/portfile.cmake
new file mode 100644
index 000000000..a5f4f1c85
--- /dev/null
+++ b/ports/args/portfile.cmake
@@ -0,0 +1,19 @@
+#header-only library
+include(vcpkg_common_functions)
+SET(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/args-master)
+vcpkg_download_distfile(ARCHIVE
+ URLS "https://github.com/Taywee/args/archive/master.zip"
+ FILENAME "args.zip"
+ SHA512 81751bfc86e15db1e5f245baa7df0464027b22b577c9de359e22dc4fe1dd550acfb116801b47d88b56d61b69a640c55757206f6f84977ace2fb02742b60ff216
+)
+vcpkg_extract_source_archive(${ARCHIVE})
+
+# Put the licence file where vcpkg expects it
+file(COPY ${SOURCE_PATH}/license DESTINATION ${CURRENT_PACKAGES_DIR}/share/args)
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/args/license ${CURRENT_PACKAGES_DIR}/share/args/copyright)
+
+# Copy the args header files
+file(INSTALL ${SOURCE_PATH} DESTINATION ${CURRENT_PACKAGES_DIR}/include FILES_MATCHING PATTERN "*.hxx")
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/args-master/examples ${CURRENT_PACKAGES_DIR}/include/args-master/test)
+vcpkg_copy_pdbs()