libvips / libvips/php-vips

Add MacPorts support

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

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

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.