From 9a155a3b2bc3b67910f11c5612630c9fbf3fe088 Mon Sep 17 00:00:00 2001
From: Francisco Facioni <francisco@remyrobotics.com>
Date: Tue, 22 Feb 2022 20:08:23 +0000
Subject: [PATCH] [arrow] add plasma support for non Windows platforms (#23188)

---
 ports/arrow/portfile.cmake | 5 +++++
 ports/arrow/vcpkg.json     | 5 +++++
 versions/a-/arrow.json     | 5 +++++
 versions/baseline.json     | 2 +-
 4 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/ports/arrow/portfile.cmake b/ports/arrow/portfile.cmake
index 99f5bb7359..972be66415 100644
--- a/ports/arrow/portfile.cmake
+++ b/ports/arrow/portfile.cmake
@@ -32,6 +32,7 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
         orc         ARROW_ORC
         parquet     ARROW_PARQUET
         parquet     PARQUET_REQUIRE_ENCRYPTION
+        plasma      ARROW_PLASMA
         s3          ARROW_S3
 )
 
@@ -109,4 +110,8 @@ file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/FindParquet.cmake ${CURRENT_PA
 file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
 file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
 
+if ("plasma" IN_LIST FEATURES)
+    vcpkg_copy_tools(TOOL_NAMES plasma-store-server AUTO_CLEAN)
+endif ()
+
 vcpkg_fixup_pkgconfig()
diff --git a/ports/arrow/vcpkg.json b/ports/arrow/vcpkg.json
index 383b970641..728534954f 100644
--- a/ports/arrow/vcpkg.json
+++ b/ports/arrow/vcpkg.json
@@ -1,6 +1,7 @@
 {
   "name": "arrow",
   "version": "7.0.0",
+  "port-version": 1,
   "description": "Cross-language development platform for in-memory analytics",
   "homepage": "https://arrow.apache.org",
   "license": "Apache-2.0",
@@ -76,6 +77,10 @@
     "parquet": {
       "description": "Parquet support"
     },
+    "plasma": {
+      "description": "Plasma support",
+      "supports": "!windows"
+    },
     "s3": {
       "description": "S3 support",
       "dependencies": [
diff --git a/versions/a-/arrow.json b/versions/a-/arrow.json
index aeed66f187..3ca7acb06d 100644
--- a/versions/a-/arrow.json
+++ b/versions/a-/arrow.json
@@ -1,5 +1,10 @@
 {
   "versions": [
+    {
+      "git-tree": "71eea8dac175d368506f19bb246b40bf4829846a",
+      "version": "7.0.0",
+      "port-version": 1
+    },
     {
       "git-tree": "3682e12e1b3f3aa79551877b157ff3d914cb5c90",
       "version": "7.0.0",
diff --git a/versions/baseline.json b/versions/baseline.json
index 6c636e6b32..19cd542394 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -170,7 +170,7 @@
     },
     "arrow": {
       "baseline": "7.0.0",
-      "port-version": 0
+      "port-version": 1
     },
     "ashes": {
       "baseline": "2021-06-18",