aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Dick <oliver.dick@evilstorm.de>2021-04-12 19:55:46 +0200
committerGitHub <noreply@github.com>2021-04-12 10:55:46 -0700
commitde3843f372cf928b60a4369058607bbbde0bf6e6 (patch)
tree28c31d394dadf782fc1f9eb70215849280dd357d
parent6b0ebbb581084005a9637f8681432e22c8759e2c (diff)
downloadvcpkg-de3843f372cf928b60a4369058607bbbde0bf6e6.tar.gz
vcpkg-de3843f372cf928b60a4369058607bbbde0bf6e6.zip
[hypodermic] Add new port - Hypodermic v2.5.2 (#17208) (#17208)
-rw-r--r--ports/hypodermic/disable_hypodermic_tests.patch13
-rw-r--r--ports/hypodermic/portfile.cmake26
-rw-r--r--ports/hypodermic/vcpkg.json16
-rw-r--r--versions/baseline.json4
-rw-r--r--versions/h-/hypodermic.json9
5 files changed, 68 insertions, 0 deletions
diff --git a/ports/hypodermic/disable_hypodermic_tests.patch b/ports/hypodermic/disable_hypodermic_tests.patch
new file mode 100644
index 000000000..2f06ff945
--- /dev/null
+++ b/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/ports/hypodermic/portfile.cmake b/ports/hypodermic/portfile.cmake
new file mode 100644
index 000000000..9e1f2fd98
--- /dev/null
+++ b/ports/hypodermic/portfile.cmake
@@ -0,0 +1,26 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO ybainier/Hypodermic
+ REF 3e86a5a1fd5e8279d6ca461f9f398fa3f3c2eddc # v2.5.2
+ SHA512 1af2a94037aa5bf8c65aceb4a2e941f7f6d016422d345f86280085115e9bb871387370158b1a83891be8efdadd4eea0a1f8905225ebee64c000ec9023a9f212e
+ HEAD_REF master
+ PATCHES
+ "disable_hypodermic_tests.patch"
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+)
+
+vcpkg_install_cmake()
+
+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/hypodermic/)
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/hypodermic/LICENSE ${CURRENT_PACKAGES_DIR}/share/hypodermic/copyright)
diff --git a/ports/hypodermic/vcpkg.json b/ports/hypodermic/vcpkg.json
new file mode 100644
index 000000000..c36a5eec7
--- /dev/null
+++ b/ports/hypodermic/vcpkg.json
@@ -0,0 +1,16 @@
+{
+ "name": "hypodermic",
+ "version-string": "2.5.2",
+ "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"
+ ]
+}
diff --git a/versions/baseline.json b/versions/baseline.json
index 2e8291fd9..d6282851c 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -2476,6 +2476,10 @@
"baseline": "5.3.0",
"port-version": 1
},
+ "hypodermic": {
+ "baseline": "2.5.2",
+ "port-version": 0
+ },
"hypre": {
"baseline": "2.19.0",
"port-version": 0
diff --git a/versions/h-/hypodermic.json b/versions/h-/hypodermic.json
new file mode 100644
index 000000000..0712716e0
--- /dev/null
+++ b/versions/h-/hypodermic.json
@@ -0,0 +1,9 @@
+{
+ "versions": [
+ {
+ "git-tree": "94648decd2043ffd566f58a1d5c826835bb33aca",
+ "version-string": "2.5.2",
+ "port-version": 0
+ }
+ ]
+}