When comparing MacPorts vs Karabiner, the Slant community recommends Karabiner for most people. In the question“What are the best power user tools for macOS?” Karabiner is ranked 34th while MacPorts is ranked 52nd.
Ranked in these QuestionsQuestion Ranking
Pro Provides a consistent experience across OS X versions
MacPorts eschews Apple-supplied libraries and links sources against its own making sure that the experience is the same regardless of what OS X version is used.
Pro Nice variants system
MacPorts has a variants system that allows customizing builds with author provided options.
Pro Generally very up to date
MacPorts generally gets new software soon after it's available. This way users will not have to worry if their software is up to date.
Pro Make FN key into a new modifier key for custom shortcuts across apps
Pro Low-level key bindings/mappings
For example: Fn+C now calls up contextual menus for me with:
<!-- Fn + C = same as right-click mouse --> <item> <name>kybd control click</name> <identifier>private.keybd_to_control_click</identifier> <autogen> __KeyToKey__ KeyCode::C, ModifierFlag::FN, KeyCode::VK_MOUSEKEY_BUTTON_RIGHT </autogen> </item>
Con Downloads unneeded libraries duplicating functionality already provided by Apple's libraries
As MacPorts eschews Apple-supplied libraries and links sources against its own a large duplication of functionality across MacPorts and Apple libraries can be found.
Con Bad at limiting dependencies
MacPorts has a habit of pulling very specific versions of dependencies for each package. It downloads different version of already existing dependencies even in cases where the existing dependency version would have worked seamlessly.
Con Difficult to configure custom actions
Configuring custom actions requires editing an XML file with very strange syntax, for which it's difficult to find good documentation.