Add MacPorts support

Open
#283 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
48/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
macos, php

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.

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.

Dominant language
PHP
Stars
721
Forks
33
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from libvips/php-vips

All issues in libvips/php-vips

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.