#43763: New port mksh -----------------------------+-------------------------- Reporter: mschamschula@… | Owner: ryandesign@… Type: submission | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: mksh | -----------------------------+-------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => ryandesign@… * status: new => assigned Comment: Thanks. Some observations: * You shouldn't usually set `build.cmd` to multiple commands. Since your goal is to set the execute bit of the build script before running it, set "`build.cmd ./Build.sh`", and set the execute bit in a post-extract block using "`file attributes ... -permissions`". * Instead of "`${workpath}/${destdir}`", use "`${destroot}`". * Instead of "`build.target-delete all`", use "`build.target`". * In the destroot block, you shouldn't specify the owner and group. When specifying the mode, we usually use 755 for executables and 644 for non- executable files. * Because you use "`use_configure no`" and a custom build system, you need to add code to ensure the port is UsingTheRightCompiler and `-arch` flags and has a universal variant. Fortunately the build system accepts environment variables to do this. -- Ticket URL: <https://trac.macports.org/ticket/43763#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X