aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan <ryan__mckenzie@hotmail.com>2021-09-27 20:03:20 -0700
committerGitHub <noreply@github.com>2021-09-27 20:03:20 -0700
commit073a476459c5a311c793e01064e02d1af230b890 (patch)
tree241ed07023a732ec359f4d3e53b51131a514d66d
parent1ecff29caff630fc51e30202c7078eddaff5fd09 (diff)
downloadvcpkg-073a476459c5a311c793e01064e02d1af230b890.tar.gz
vcpkg-073a476459c5a311c793e01064e02d1af230b890.zip
[rsm-binary-io] Add new port (#20334)
* add rsm-binary-io port * add versioning * add rsm-binary-io x64-linux to ci baseline * convert indentation to spaces * update versioning
-rw-r--r--ports/rsm-binary-io/portfile.cmake31
-rw-r--r--ports/rsm-binary-io/vcpkg.json18
-rw-r--r--scripts/ci.baseline.txt2
-rw-r--r--versions/baseline.json4
-rw-r--r--versions/r-/rsm-binary-io.json9
5 files changed, 64 insertions, 0 deletions
diff --git a/ports/rsm-binary-io/portfile.cmake b/ports/rsm-binary-io/portfile.cmake
new file mode 100644
index 000000000..a8210e426
--- /dev/null
+++ b/ports/rsm-binary-io/portfile.cmake
@@ -0,0 +1,31 @@
+vcpkg_fail_port_install(ON_TARGET "OSX" "UWP")
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO Ryan-rsm-McKenzie/binary_io
+ REF 2.0.2
+ SHA512 4b7e725d9143d37481b4a7e4e101c88c3b73628dd2882fa23ef10a602f8a6ca79de111138237d4dd6fc09d1df863b91a949782961f5623fcac1e324b2e301121
+ HEAD_REF main
+)
+
+if(VCPKG_TARGET_IS_LINUX)
+ message(WARNING "Build ${PORT} requires at least gcc 10.")
+endif()
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DBUILD_TESTING=OFF
+)
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(
+ PACKAGE_NAME binary_io
+ CONFIG_PATH "lib/cmake/binary_io"
+)
+
+file(REMOVE_RECURSE
+ "${CURRENT_PACKAGES_DIR}/debug/include"
+ "${CURRENT_PACKAGES_DIR}/debug/share"
+)
+
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/ports/rsm-binary-io/vcpkg.json b/ports/rsm-binary-io/vcpkg.json
new file mode 100644
index 000000000..3d76fc8d3
--- /dev/null
+++ b/ports/rsm-binary-io/vcpkg.json
@@ -0,0 +1,18 @@
+{
+ "name": "rsm-binary-io",
+ "version-semver": "2.0.2",
+ "description": "A binary i/o library for C++, without the agonizing pain",
+ "homepage": "https://github.com/Ryan-rsm-McKenzie/binary_io",
+ "documentation": "https://ryan-rsm-mckenzie.github.io/binary_io/",
+ "supports": "!osx & !uwp",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}
diff --git a/scripts/ci.baseline.txt b/scripts/ci.baseline.txt
index fcea39c41..7de3b6423 100644
--- a/scripts/ci.baseline.txt
+++ b/scripts/ci.baseline.txt
@@ -1365,6 +1365,8 @@ rsasynccpp:arm-uwp=fail
rsasynccpp:x64-linux=fail
rsasynccpp:x64-osx=fail
# Requires g++10 but CI compiler only has g++9
+rsm-binary-io:x64-linux=fail
+# Requires g++10 but CI compiler only has g++9
rsm-bsa:x64-linux=fail
rsocket:x64-windows=fail
rsocket:x64-windows-static=fail
diff --git a/versions/baseline.json b/versions/baseline.json
index caf94b803..f313b716b 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -5840,6 +5840,10 @@
"baseline": "0.0.7",
"port-version": 0
},
+ "rsm-binary-io": {
+ "baseline": "2.0.2",
+ "port-version": 0
+ },
"rsm-bsa": {
"baseline": "2.0.3",
"port-version": 0
diff --git a/versions/r-/rsm-binary-io.json b/versions/r-/rsm-binary-io.json
new file mode 100644
index 000000000..e07980080
--- /dev/null
+++ b/versions/r-/rsm-binary-io.json
@@ -0,0 +1,9 @@
+{
+ "versions": [
+ {
+ "git-tree": "33782ecb57f5016dbaa8b2a2cd3f66cf80437027",
+ "version-semver": "2.0.2",
+ "port-version": 0
+ }
+ ]
+}