Opened 10 years ago

Closed 10 years ago

#43763 closed submission (fixed)

New port mksh

Reported by: Schamschula (Marius Schamschula) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc:
Port: mksh

Description

I've put together a Portfile for mksh:

A free implementation of the Korn Shell programming language and a successor to the Public Domain Korn Shell (pdksh).

Attachments (1)

Portfile (1.6 KB) - added by Schamschula (Marius Schamschula) 10 years ago.

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by Schamschula (Marius Schamschula)

Attachment: Portfile added

comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

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.

comment:2 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

Committed with the above changes in r120262.

Note: See TracTickets for help on using tickets.