kevingurney commented on code in PR #38660:
URL: https://github.com/apache/arrow/pull/38660#discussion_r1523730994


##########
matlab/tools/packageMatlabInterface.m:
##########
@@ -0,0 +1,58 @@
+% Licensed to the Apache Software Foundation (ASF) under one
+% or more contributor license agreements.  See the NOTICE file
+% distributed with this work for additional information
+% regarding copyright ownership.  The ASF licenses this file
+% to you under the Apache License, Version 2.0 (the
+% "License"); you may not use this file except in compliance
+% with the License.  You may obtain a copy of the License at
+%
+%   http://www.apache.org/licenses/LICENSE-2.0
+%
+% Unless required by applicable law or agreed to in writing,
+% software distributed under the License is distributed on an
+% "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+% KIND, either express or implied.  See the License for the
+% specific language governing permissions and limitations
+% under the License.
+
+toolboxFolder = string(getenv("ARROW_MATLAB_TOOLBOX_FOLDER"));
+outputFolder = string(getenv("ARROW_MATLAB_TOOLBOX_OUTPUT_FOLDER"));
+toolboxVersionRaw = string(getenv("ARROW_MATLAB_TOOLBOX_VERSION"));
+
+% Output folder must exist.
+mkdir(outputFolder);
+
+disp("Toolbox Folder: " + toolboxFolder);
+disp("Output Folder: " + outputFolder);
+disp("Toolbox Version Raw: " + toolboxVersionRaw);
+
+% Note: This string processing heuristic may not be robust to future
+% changes in the Arrow versioning scheme.
+dotIdx = strfind(toolboxVersionRaw, ".");
+numDots = numel(dotIdx);
+if numDots >= 3
+    toolboxVersion = extractBefore(toolboxVersionRaw, dotIdx(3));
+else
+    toolboxVersion = toolboxVersionRaw;
+end
+
+disp("Toolbox Version:" + toolboxVersion);
+
+identifier = "ad1d0fe6-22d1-4969-9e6f-0ab5d0f12ce3";
+opts = matlab.addons.toolbox.ToolboxOptions(toolboxFolder, identifier);

Review Comment:
   After reviewing the relevant sections from 
https://www.apache.org/legal/release-policy.html and 
https://infra.apache.org/licensing-howto.html, we updated the `LICENSE.txt` and 
`NOTICE.txt` files as detailed below:
   
   1. Added a "pointer" to `mathworks/libmexclass` at the bottom of 
`LICENSE.txt`.
   2. Added a note about the fact that the project includes software from The 
MathWorks, Inc. (i.e. all of the contents of the distributed MLTBX files, other 
than mathworks/libmexclass and libarrow) which MathWorks is granting the Apache 
Software Foundation the right to distribute under the standard Apache Version 
2.0 license.
   
   We believe these updates should be sufficient to address the bundling of the 
`mathworks/libmexclass` binaries and all other contents in the distributed 
MLTBX files. However, please let us know if there is anything else we should be 
including in the `LICENSE.txt` or `NOTICE.txt` files.
   
   Thanks again for everyone's help!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to