installing patched okular: cannot open Portfile

Ken Cunningham ken.cunningham.webuse at gmail.com
Mon Mar 16 14:36:02 UTC 2020


> And if I do _not_ change the name, then how will command “sudo port install okular” know to use the modified port, inside my home tree, instead of the distributed one?

for a one-off like that, you can use a MacPorts feature.
If you type "sudo port install" without a name, in a port directory, it will always build and install the port with the default name from the portfile in the directory you are in.
Gets trickier when using variants, though. To do that, you need to use a subport syntax, like this:

sudo port -v install subport=name +myvariant -myunwantedvariant

and then it will build and install the named subport in your local folder, which can be the main port name, or some subport of it, with your variants.

For permanently setting your port as the replacement of the named port I cannot tell you, but look in recent prior messages and you will see it mentioned.

K
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20200316/5d7d091e/attachment.html>


More information about the macports-users mailing list