When comparing MacPorts vs Hazel, the Slant community recommends Hazel for most people. In the question“What are the best power user tools for macOS?” Hazel is ranked 14th while MacPorts is ranked 42nd. The most important reason people chose Hazel is:
Hazel watches whatever folders you tell it to, automatically organizing your files according to the rules you create. Have Hazel move files around based on name, date, type, what site/email address it came from (Safari and Mail only) and much more. Automatically put your music in your Music folder, movies in Movies. Keep your downloads off the desktop and put them where they are supposed to be.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Easy to use
Detailed instructions on the homepage are easy to follow. Official GUI app is also available
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 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 Nice variants system
MacPorts has a variants system that allows customizing builds with author provided options.
Pro Has many more packages than its competitors
As of this writing, 20K packages. 3 to 5x more than other current package managers.
Pro Requires SUDO to install apps
No need to worry if some rogue app will change your binaries or configuration.
Pro Download libraries instead of relying on Apple's caprices
Considering just how often Apple breaks things, any reduplication of of Apple-supplied libraries with the canonical sources is an asset.
Pro Fast
Written in Tcl & C, it's generally significantly faster than the competition. Tcl is also quite readable and comparable to Ruby, so it's also friendly to newcomers.
Pro Supports older Mac operating systems
Homebrew dropped support for old Macs. MacPorts still supports them.
Pro MacPorts is a native application: C + TCL
No need to install Ruby, or any other programming language.
Pro More packages than competition
Pro Apple Silicon Ready
With Apple moving over to its own silicon, macports has been ready for the move to ARM since 2.6.4
Pro Initially started and developed by Apple employees and supported by Apple itself
Reading the story behind MacPorts, it is the only one that was developed by Apple by an Apple employee. In fact it is the same person that was responsible for creating the FreeBSD port system.
Pro Great support for older systems
Pro Most of the available packages work
For example, trying to install Finch using Pkgsrc doesn't work, while installing it using MacPorts works perfectly. Finch isn't even on Homebrew's radar.
Pro Automatically cleans up and maintains folders
Hazel watches whatever folders you tell it to, automatically organizing your files according to the rules you create. Have Hazel move files around based on name, date, type, what site/email address it came from (Safari and Mail only) and much more. Automatically put your music in your Music folder, movies in Movies. Keep your downloads off the desktop and put them where they are supposed to be.
Pro Very customizable
More so than alternatives.
Pro Cleans up after uninstalling an application
When you delete an application Hazel will pop up and show you a list of attached files belonging to the deleted app to clean your uninstall more correctly.
Pro iLife Support
Hazel features new actions to import your files into iPhoto or iTunes. And with Hazel 3, you can import into Aperture projects and folders as well.
Pro Process files depending on their content
Its in-file search criteria allows it to extract dates from files (e.g., to add to the filename) and to categorize recurrent files (e.g., receipts) into subfolders (or to treat them in some specific way).
Cons
Con New Packages and Updates take time
Macports isn't the first choice for developers producing new packages or binaries for macOS. Nor is it the fastest in getting updates. But in general, it usually is one of the most up to date and will be updated eventually. Some would see this as a con in comparison to Homebrew.
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 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 Requires root permissions (sudo) for installation of packages
A really good security feature, but some see it as a con.
Con Expensive
Con Doesn't work well with subfolders
The rules don't work very well with subfolders and working with archive files (zip, rar, gz, 7z, etc) is also limited.
Con Rules creation is a time consuming process
To really enjoy the power of Hazel, you will need to progressively create more and more rules to manage each specific kind of file, but this process is slow, quite annoying when you have many similar rules, and can only be learned on the way, as you find new uses for it.
