Opened 9 years ago
Last modified 4 years ago
#49656 new request
PASH - PowerShell implementation
Reported by: | macports@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: |
Description
PASH is an Open Source reimplementation of Windows PowerShell, for Mono. Github page: https://github.com/Pash-Project/Pash
The only dependency I’m aware of is mono. The Github source currently builds for me without any tinkering.
Attachments (1)
Change History (6)
comment:1 follow-up: 2 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
Version: | 2.3.4 |
---|
comment:2 Changed 9 years ago by macports@…
Replying to ryandesign@…:
Since you've already successfully built the software, can you provide a working Portfile?
I'm working on it. I will have a couple of questions here in a day or two.
comment:3 Changed 9 years ago by mf2k (Frank Schima)
Keywords: | shell mono removed |
---|
comment:4 Changed 9 years ago by macports@…
Pash builds successfully via Mono’s xbuild tool, but it doesn’t have a “make install” equivalent, it leaves the executable in the project hierarchy at Source/PashConsole/bin/Debug/Pash.exe
.
Furthermore, it’s not a “normal” executable, it’s a “PE32 executable (console) Intel 80386 Mono/.Net assembly, for MS Windows,” meaning it has to be launched via Mono, e.g. mono path/to/Pash.exe
.
AFAICT none of the other ports in the mono category use xbuild, so I don’t have a model to follow here. I guess the right thing to do would be a post-install script creating a one-line launcher shell script, which is what would be installed in ${prefix}/bin
. But I don’t know where to put the project directory, which is full of DLLs and stuff that the executable presumably depends on, and as such should be kept in its entirety. ${workpath}
and ${portpath}
are subject to being cleaned, right? What is the proper location for persistent files?
Attached what I’ve got of the Portfile so far. The checksums are for the tarball I rolled from the source, do I attach that here or…?
Sorry if these are dopey questions, this is my first real attempt at packaging a port.
comment:5 Changed 4 years ago by harens (Haren S)
As of early 2019, Pash-Project/Pash has been archived.
See https://github.com/Pash-Project/Pash/issues/429 for more details, but essentially it's because Microsoft's implementation was open sourced: PowerShell/PowerShell.
Since you've already successfully built the software, can you provide a working Portfile?