aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Craveiro <mcraveiro@users.noreply.github.com>2019-03-05 18:41:52 +0000
committerPhil Christensen <philc@microsoft.com>2019-03-05 10:41:52 -0800
commitb9d7fa1a1cf1dee3467640405f4c985e20571400 (patch)
tree2cf50d876b02bae3cebe0b530217e923bc3303e3
parent6b4b62ad97e12ffdb90e9a6a535e6f1f7cdefd4b (diff)
downloadvcpkg-b9d7fa1a1cf1dee3467640405f4c985e20571400.tar.gz
vcpkg-b9d7fa1a1cf1dee3467640405f4c985e20571400.zip
[dtl] Initial port of library (#5541)
-rw-r--r--ports/dtl/CONTROL3
-rw-r--r--ports/dtl/portfile.cmake16
2 files changed, 19 insertions, 0 deletions
diff --git a/ports/dtl/CONTROL b/ports/dtl/CONTROL
new file mode 100644
index 000000000..cd4109d04
--- /dev/null
+++ b/ports/dtl/CONTROL
@@ -0,0 +1,3 @@
+Source: dtl
+Version: 1.19
+Description: Diff template library
diff --git a/ports/dtl/portfile.cmake b/ports/dtl/portfile.cmake
new file mode 100644
index 000000000..d66360991
--- /dev/null
+++ b/ports/dtl/portfile.cmake
@@ -0,0 +1,16 @@
+#header-only library
+include(vcpkg_common_functions)
+include(CMakePackageConfigHelpers)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO cubicdaiya/dtl
+ REF v1.19
+ SHA512 77c767451b1b78ce49085da6ff5bb8a23c96dec56a37d96ef357a6b69a1b2cd45e2c6c4e8f91ee34ca080ce03a26518c478ff207309326a4bc7e729eaa2824b2
+ HEAD_REF master
+)
+
+file(INSTALL ${SOURCE_PATH}/dtl
+ DESTINATION ${CURRENT_PACKAGES_DIR}/include)
+file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION
+ ${CURRENT_PACKAGES_DIR}/share/dtl RENAME copyright)