[MacPorts] #64326: app PortGroup: app.name unable to handle names with spaces
MacPorts
noreply at macports.org
Sun Jan 2 04:08:10 UTC 2022
#64326: app PortGroup: app.name unable to handle names with spaces
-------------------------+--------------------
Reporter: jasonliu-- | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords:
Port: pg-app-1.0 |
-------------------------+--------------------
Comment (by jasonliu--):
Replying to [comment:4 ryandesign]:
> It was not anticipated that anyone would have a need to use a separate
variable here. Why do you?
Really? I'm a bit surprised that no one has encountered the following
situation when writing a portfile:
{{{
name shortname
set pretty_name "Long Name with Capitalization and Spaces"
app.name $pretty_name
app.executable ${name}
}}}
(Of course, based on your previous comment, as things currently stand,
that would have to be {{{app.name {*}$pretty_name}}}.)
To me, this scenario makes the most sense, because you want to be able to
launch the application from the command line using {{{shortname}}}, but
you want to see the long, proper name in the Finder window.
--
Ticket URL: <https://trac.macports.org/ticket/64326#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list