aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alex@karatarakis.com>2016-11-11 03:11:25 -0800
committerGitHub <noreply@github.com>2016-11-11 03:11:25 -0800
commite99e54f3376d4721fee6f3b691201f0f5c2b53fa (patch)
tree2885f1792eb3499859a7c913ae1a475f99a5665c
parent5b97bc8aed6c8598381396e8889d54ba092a9b66 (diff)
parentae5db90ff2736ec15482db8fbbd34438f9a0f2df (diff)
downloadvcpkg-e99e54f3376d4721fee6f3b691201f0f5c2b53fa.tar.gz
vcpkg-e99e54f3376d4721fee6f3b691201f0f5c2b53fa.zip
Merge pull request #271 from drdanz/tclap
Add Templatized C++ Command Line Parser (TCLAP) header-only library port
-rw-r--r--ports/tclap/CONTROL3
-rw-r--r--ports/tclap/portfile.cmake18
2 files changed, 21 insertions, 0 deletions
diff --git a/ports/tclap/CONTROL b/ports/tclap/CONTROL
new file mode 100644
index 000000000..1e086a845
--- /dev/null
+++ b/ports/tclap/CONTROL
@@ -0,0 +1,3 @@
+Source: tclap
+Version: 1.2.1
+Description: Templatized command-line argument parser for C++
diff --git a/ports/tclap/portfile.cmake b/ports/tclap/portfile.cmake
new file mode 100644
index 000000000..8f41d076f
--- /dev/null
+++ b/ports/tclap/portfile.cmake
@@ -0,0 +1,18 @@
+#header-only library
+include(vcpkg_common_functions)
+set(SOURCE_PATH "${CURRENT_BUILDTREES_DIR}/src/tclap-1.2.1")
+vcpkg_download_distfile(ARCHIVE
+ URLS "http://downloads.sourceforge.net/project/tclap/tclap-1.2.1.tar.gz"
+ FILENAME "tclap-1.2.1.tar.gz"
+ SHA512 8bd6ee724600880840048c7b36f02d31b1aa4910b17f80fb04aef89b1f1917856d9979ec488edbd457b66d9d689aea97540abb842a8b902bbd75c66a6e07b9b1
+)
+vcpkg_extract_source_archive(${ARCHIVE})
+
+# Copy all header files
+file(COPY "${SOURCE_PATH}/include/tclap"
+ DESTINATION "${CURRENT_PACKAGES_DIR}/include"
+ FILES_MATCHING PATTERN "*.h")
+
+# Handle copyright
+file(COPY "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/tclap")
+file(RENAME "${CURRENT_PACKAGES_DIR}/share/tclap/COPYING" "${CURRENT_PACKAGES_DIR}/share/tclap/copyright")