aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/rsm-bsa/portfile.cmake28
-rw-r--r--ports/rsm-bsa/vcpkg.json20
-rw-r--r--scripts/ci.baseline.txt2
-rw-r--r--versions/b-/bsa.json9
-rw-r--r--versions/baseline.json4
-rw-r--r--versions/r-/rsm-bsa.json9
6 files changed, 72 insertions, 0 deletions
diff --git a/ports/rsm-bsa/portfile.cmake b/ports/rsm-bsa/portfile.cmake
new file mode 100644
index 000000000..9d94ff11f
--- /dev/null
+++ b/ports/rsm-bsa/portfile.cmake
@@ -0,0 +1,28 @@
+vcpkg_fail_port_install(ON_TARGET "OSX" "UWP" ON_ARCH "x86")
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO Ryan-rsm-McKenzie/bsa
+ REF 2.0.3
+ SHA512 b54f1cbc88e55b98b0c25ee81007dc42df736836784b2a1e2e91652b46a73054671d798cc0007ea79b7cf0c8181021bb0cbc95ae407d4a538298d668b4c8fe69
+ HEAD_REF master
+)
+
+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(CONFIG_PATH "lib/cmake/bsa")
+
+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-bsa/vcpkg.json b/ports/rsm-bsa/vcpkg.json
new file mode 100644
index 000000000..a586e2565
--- /dev/null
+++ b/ports/rsm-bsa/vcpkg.json
@@ -0,0 +1,20 @@
+{
+ "name": "rsm-bsa",
+ "version-semver": "2.0.3",
+ "description": "A C++ library for working with the Bethesda archive file format",
+ "homepage": "https://github.com/Ryan-rsm-McKenzie/bsa",
+ "documentation": "https://ryan-rsm-mckenzie.github.io/bsa/",
+ "supports": "!x86 & !osx & !uwp",
+ "dependencies": [
+ "lz4",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ },
+ "zlib"
+ ]
+}
diff --git a/scripts/ci.baseline.txt b/scripts/ci.baseline.txt
index 77a1d1a93..3e7d0dc25 100644
--- a/scripts/ci.baseline.txt
+++ b/scripts/ci.baseline.txt
@@ -1357,6 +1357,8 @@ rsasynccpp:arm64-windows=fail
rsasynccpp:arm-uwp=fail
rsasynccpp:x64-linux=fail
rsasynccpp:x64-osx=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
rsocket:x64-windows-static-md=fail
diff --git a/versions/b-/bsa.json b/versions/b-/bsa.json
new file mode 100644
index 000000000..ca5ea3cd9
--- /dev/null
+++ b/versions/b-/bsa.json
@@ -0,0 +1,9 @@
+{
+ "versions": [
+ {
+ "git-tree": "b7c19adba6583acb02361b53ab1d4ab66b8189ab",
+ "version-semver": "2.0.3",
+ "port-version": 0
+ }
+ ]
+}
diff --git a/versions/baseline.json b/versions/baseline.json
index e0cdfdbab..dddcdf52c 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -5752,6 +5752,10 @@
"baseline": "0.0.7",
"port-version": 0
},
+ "rsm-bsa": {
+ "baseline": "2.0.3",
+ "port-version": 0
+ },
"rsocket": {
"baseline": "2020.05.04.00",
"port-version": 2
diff --git a/versions/r-/rsm-bsa.json b/versions/r-/rsm-bsa.json
new file mode 100644
index 000000000..08b84e996
--- /dev/null
+++ b/versions/r-/rsm-bsa.json
@@ -0,0 +1,9 @@
+{
+ "versions": [
+ {
+ "git-tree": "465b19a5d463c1a9b54041b30600599ad0d5ac96",
+ "version-semver": "2.0.3",
+ "port-version": 0
+ }
+ ]
+}