aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Racicot <gufideg@gmail.com>2018-09-14 14:54:54 -0400
committerRobert Schumacher <roschuma@microsoft.com>2018-09-14 11:54:54 -0700
commitea08dc33c332cf6972c0196449ce077eb70615a9 (patch)
tree8476749391d12a7fe0b18e39a95b736855a2514a
parenta9fd7c82dc782616898cf10fdf4316adc9b26b95 (diff)
downloadvcpkg-ea08dc33c332cf6972c0196449ce077eb70615a9.tar.gz
vcpkg-ea08dc33c332cf6972c0196449ce077eb70615a9.zip
New package: gracicot/kangaru, a library for dependency injection in C++11, C++14 and later (#4288)
* New package: gracicot/kangaru, a library for dependency injection in C++11, c++14 and later * Updated description
-rw-r--r--ports/kangaru/CONTROL3
-rw-r--r--ports/kangaru/portfile.cmake28
2 files changed, 31 insertions, 0 deletions
diff --git a/ports/kangaru/CONTROL b/ports/kangaru/CONTROL
new file mode 100644
index 000000000..42f8277fd
--- /dev/null
+++ b/ports/kangaru/CONTROL
@@ -0,0 +1,3 @@
+Source: kangaru
+Version: 4.1.2
+Description: A dependency injection container for C++11, C++14 and later
diff --git a/ports/kangaru/portfile.cmake b/ports/kangaru/portfile.cmake
new file mode 100644
index 000000000..6de69896b
--- /dev/null
+++ b/ports/kangaru/portfile.cmake
@@ -0,0 +1,28 @@
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO gracicot/kangaru
+ REF v4.1.2
+ SHA512 44ca94da38c80aa8495bb58cc26db0591d5e1b32b52c3ff242d95598856c5e84f25d7e7184c1e15e44d9a89987856740548fb070ad393cbe51da4bb79aa216d2
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ OPTIONS -DKANGARU_EXPORT=Off -DKANGARU_TEST=Off
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/kangaru")
+
+file(REMOVE_RECURSE
+ ${CURRENT_PACKAGES_DIR}/lib
+ ${CURRENT_PACKAGES_DIR}/debug
+)
+
+
+# Put the license file where vcpkg expects it
+file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/kangaru/)
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/kangaru/LICENSE ${CURRENT_PACKAGES_DIR}/share/kangaru/copyright)