Skip to content

Conversation

@SladeGetz
Copy link
Contributor

@SladeGetz SladeGetz commented Sep 15, 2022

I added support for the MacPorts package manager. I followed the format used for the Homebrew package manager located in src/modules/packages.c. I added a port member definition to PackageCounts struct, a static count and get MacPortsPackages function, and updated the areas which collect/use the package data (lines 392, 461, 519, 545). Tested on M1, but follows MacPorts convention for finding packages in /opt/local and/or $MACPORTS_PREFIX.

"You will need to manually adapt your shell's environment to work with MacPorts and your chosen installation prefix (the value passed to configure's --prefix flag, defaulting to /opt/local)"
(taken from https://www.macports.org/install.php#git).

Copy link
Collaborator

@LinusDierheimer LinusDierheimer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please increase FF_PACKAGE_NUM_FORMAT_ARGS by 1.

Also edit the help here.

Then please add MacPorts to the package manager section in README.md.

SladeGetz and others added 2 commits September 16, 2022 10:57
@SladeGetz
Copy link
Contributor Author

Just made and pushed the requested modifications!

@LinusDierheimer
Copy link
Collaborator

Thanks!

@LinusDierheimer LinusDierheimer merged commit 999b918 into fastfetch-cli:master Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants