aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2016-09-22 11:28:05 -0700
committerGitHub <noreply@github.com>2016-09-22 11:28:05 -0700
commit80d378585cdd9314124cae80fc5340c29e210e4e (patch)
treef0f0dc8e332c7000eb375692a14d7d834b7d6cc5
parent751661a11a9700ad42e4279343b0b84797e2e987 (diff)
parent157597419942e4fe73e0d94c8fac95016032eace (diff)
downloadvcpkg-80d378585cdd9314124cae80fc5340c29e210e4e.tar.gz
vcpkg-80d378585cdd9314124cae80fc5340c29e210e4e.zip
Merge pull request #67 from albertfong/doctest
Add doctest 1.1.0
-rw-r--r--ports/doctest/CONTROL3
-rw-r--r--ports/doctest/portfile.cmake13
2 files changed, 16 insertions, 0 deletions
diff --git a/ports/doctest/CONTROL b/ports/doctest/CONTROL
new file mode 100644
index 000000000..df41ef19f
--- /dev/null
+++ b/ports/doctest/CONTROL
@@ -0,0 +1,3 @@
+Source: doctest
+Version: 1.1.0
+Description: The lightest feature-rich C++ single-header testing framework for unit tests and TDD
diff --git a/ports/doctest/portfile.cmake b/ports/doctest/portfile.cmake
new file mode 100644
index 000000000..82a84eff9
--- /dev/null
+++ b/ports/doctest/portfile.cmake
@@ -0,0 +1,13 @@
+include(vcpkg_common_functions)
+vcpkg_download_distfile(ARCHIVE
+ URL "https://github.com/onqtam/doctest/archive/1.1.0.zip"
+ FILENAME "doctest-1.1.0.zip"
+ MD5 4aee74025b34b4a00a253b6262bdeeb1
+)
+vcpkg_extract_source_archive(${ARCHIVE})
+
+# Handle copyright
+file(INSTALL ${CURRENT_BUILDTREES_DIR}/src/doctest-1.1.0/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/doctest RENAME copyright)
+
+# Copy header file
+file(INSTALL ${CURRENT_BUILDTREES_DIR}/src/doctest-1.1.0/doctest/doctest.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/doctest)