aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/hypodermic
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/hypodermic')
-rw-r--r--vcpkg/ports/hypodermic/disable_hypodermic_tests.patch13
-rw-r--r--vcpkg/ports/hypodermic/portfile.cmake22
-rw-r--r--vcpkg/ports/hypodermic/vcpkg.json24
3 files changed, 59 insertions, 0 deletions
diff --git a/vcpkg/ports/hypodermic/disable_hypodermic_tests.patch b/vcpkg/ports/hypodermic/disable_hypodermic_tests.patch
new file mode 100644
index 0000000..2f06ff9
--- /dev/null
+++ b/vcpkg/ports/hypodermic/disable_hypodermic_tests.patch
@@ -0,0 +1,13 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 9b6358a..5f55bc2 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -76,7 +76,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COMPILER_FLAGS} ${WARNING_FLAGS}")
+
+
+ add_subdirectory(Hypodermic)
+-add_subdirectory(Hypodermic.Tests)
++#add_subdirectory(Hypodermic.Tests)
+
+
+ # uninstall target
diff --git a/vcpkg/ports/hypodermic/portfile.cmake b/vcpkg/ports/hypodermic/portfile.cmake
new file mode 100644
index 0000000..6d93ec8
--- /dev/null
+++ b/vcpkg/ports/hypodermic/portfile.cmake
@@ -0,0 +1,22 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO ybainier/Hypodermic
+ REF ba5516d4e78230c1187debb01ebdf01e5d11f62d # 2023-03-03
+ SHA512 40a119baafc23149117e286c38c00bdc0debda1cb6fefbecfdbc6e1a779789c6c884d1e7513aaf55060d550232c3dc8777ef0ebf0cd94e998ff2d5d6d375d2ff
+ HEAD_REF master
+ PATCHES
+ "disable_hypodermic_tests.patch"
+)
+
+vcpkg_cmake_configure(SOURCE_PATH ${SOURCE_PATH})
+
+vcpkg_cmake_install()
+
+file(REMOVE_RECURSE
+ "${CURRENT_PACKAGES_DIR}/lib"
+ "${CURRENT_PACKAGES_DIR}/debug"
+)
+
+
+# Put the license file where vcpkg expects it
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) \ No newline at end of file
diff --git a/vcpkg/ports/hypodermic/vcpkg.json b/vcpkg/ports/hypodermic/vcpkg.json
new file mode 100644
index 0000000..a01e461
--- /dev/null
+++ b/vcpkg/ports/hypodermic/vcpkg.json
@@ -0,0 +1,24 @@
+{
+ "name": "hypodermic",
+ "version-date": "2023-03-03",
+ "description": "Hypodermic is a non-intrusive header only IoC container for C++",
+ "homepage": "https://github.com/ybainier/Hypodermic",
+ "license": "MIT",
+ "dependencies": [
+ "boost-algorithm",
+ "boost-config",
+ "boost-format",
+ "boost-range",
+ "boost-signals2",
+ "boost-system",
+ "boost-test",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}