Add MacPorts support
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 721
- Forks
- 33
- PR merge metrics
- No merged PRs in 30d
Description
HomeBrew is not the only package manager on macOS.
https://github.com/libvips/php-vips/blob/2e9280ba6e7dcc3c70c8ec007c35075215b71f46/src/FFI.php#L298
MacPorts is an equally-valid package manager, which stores binaries in a different location. Vips is installed at the following location when using MacPorts...
/opt/local/bin/vips
I'll do a pull request for your consideration.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in src/FFI.php at the linked code around line 298 and inspect how the Homebrew binary location is selected. Verify the MacPorts path /opt/local/bin/vips is handled, then check the repository's existing validation or test entry points if available; done means MacPorts-installed vips can be located without breaking Homebrew support.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, php
- Domain
- backend, operating-systems
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100