aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2016-10-20 13:56:23 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2016-10-20 13:56:23 -0700
commit6dfc813163ba1e9a2e2a4ed237127efd30880881 (patch)
tree2ca28b9398b8741aff4e3a8b2b880bc53705d9bd
parent412a44c8f17aecb6f4a21844d0bff2ee5bc332d7 (diff)
parent6701e72885458f6b0f65b8f063ac9bd1483d8d45 (diff)
downloadvcpkg-6dfc813163ba1e9a2e2a4ed237127efd30880881.tar.gz
vcpkg-6dfc813163ba1e9a2e2a4ed237127efd30880881.zip
Merge branch 'boost.di' of https://github.com/sdcb/vcpkg into sdcb-boost.di
-rw-r--r--ports/boost-di/CONTROL3
-rw-r--r--ports/boost-di/portfile.cmake17
2 files changed, 20 insertions, 0 deletions
diff --git a/ports/boost-di/CONTROL b/ports/boost-di/CONTROL
new file mode 100644
index 000000000..60ac13ceb
--- /dev/null
+++ b/ports/boost-di/CONTROL
@@ -0,0 +1,3 @@
+Source: boost-di
+Version: 1.0.1
+Description: C++14 Dependency Injection Library. \ No newline at end of file
diff --git a/ports/boost-di/portfile.cmake b/ports/boost-di/portfile.cmake
new file mode 100644
index 000000000..e09c813c2
--- /dev/null
+++ b/ports/boost-di/portfile.cmake
@@ -0,0 +1,17 @@
+include(${CMAKE_TRIPLET_FILE})
+include(vcpkg_common_functions)
+set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/di-1.0.1)
+
+vcpkg_download_distfile(ARCHIVE
+ URLS "https://github.com/boost-experimental/di/archive/v1.0.1.tar.gz"
+ FILENAME "di-1.0.1.tar.gz"
+ SHA512 4e7270be51e7c8d0dcb6e0ba4bcf8e12904016086bdd59667954815f4acb03fc62447775885594a8403f5067a20b2520717fe979926d740dff0efa0c97ebf20c
+)
+vcpkg_extract_source_archive(${ARCHIVE})
+
+file(INSTALL ${SOURCE_PATH}/include/boost
+ DESTINATION ${CURRENT_PACKAGES_DIR}/include)
+
+# boost-di license does not exist in source folder.
+# it shares the boost license.
+file(DOWNLOAD http://www.boost.org/LICENSE_1_0.txt ${CURRENT_PACKAGES_DIR}/share/boost-di/copyright) \ No newline at end of file