When comparing pkgsrc vs Coda 2, the Slant community recommends Coda 2 for most people. In the question“What are the best developer tools for Mac OSX?” Coda 2 is ranked 19th while pkgsrc is ranked 28th. The most important reason people chose Coda 2 is:
Coda 2 comprises all you would expect from an IDE: it supports multiple languages (including all the standards); it performs autocomplete of project names, as well as language functions; it supports SVN and GIT; it has good support for plugins (or you can write your own); it has a configurable editor; and it has a built-in preview.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro pkgin is an apt-like tools for installing binaries from pkgsrc
pkgin aims to be a tool similar to apt/yum for managing pkgsrc binaries by relying on pkg_summary for installing, removing and upgrading packages and dependencies, using a remote repo.
Pro Adapted for use on over a dozen different operating systems
Has been adopted to be used on several Unix-like operating systems and Windows. It's also the default package manager of DragonflyBSD and of the (now discounted) Bluewall Linux distro.
Pro Installs and works in the same way as MacPorts
Installs its own dependencies which means that it is very secure. Cannot install anything unless you use the "sudo" command which is in keeping with the Unix philosophy.
Pro Both binary packages and source build possible
Fast software installation is possible by using binary packages. It's also easy to build from source which allows for different compile-time options (like different UI backends) as well as gaining access to pre-release versions of software in certain cases.
Pro Offering tooling for backporting fixes
Backporting fixes can be done by cherry-picking updates from a newer branch (pkgsrc is released every 3 months) and creating a package. Sometimes bugs need to be fixed for production and there is neither a fix in newer pkgsrc nor the softwares upstream. So pkgsrc has tools like pkgdiff, mkpatches, etc. that help with developing patches and building binary packages from that. A bit of documentation about that process can be found here.
Pro Does not need Xcode command line tools or Xcode.
This means that you can install it fresh on a new installation of MacOS and have all your favorite apps installed right from the start.
Pro Works easily with Ansible
Can be used from within Ansible to install packages on macOS.
Pro Easy installation if you use 3rd party scripts
This one works brilliantly.
Pro Real IDE with all the benefits
Coda 2 comprises all you would expect from an IDE: it supports multiple languages (including all the standards); it performs autocomplete of project names, as well as language functions; it supports SVN and GIT; it has good support for plugins (or you can write your own); it has a configurable editor; and it has a built-in preview.
Cons
Con Relatively complicated setup and installation
Installing and setting pkgsrc up is a bit more complicated than in other package managers where it often consists in running a single script.
Con Not so broadly used on MacOS as compared with MacPorts
You do not hear about Pkgsrc as openly as you hear the words "HomeBrew" or "MacPorts".
Con Outdated packages
Some packages are outdated.
Con Can't install some packages
Even building well known packages (except MacPorts) from source using the ports can fail.
Con Defective UI
There are several things in Coda that simply don't work, and never have. For instance, the root directory for your local and remote files is simply not honored. For every project, you can specify the root directory for its files. But when you open the project in Coda, it doesn't go there. The file browser just shows whatever the last directory was that you were using, and will write files to the wrong place. Thus, it defeats the purpose of setting the home directory in the first place.
Also, splitting the editor doesn't work. If you've done any programming, you know how important it is to be able to view two files simultaneously. Coda fails to do this, with a bizarre insistence on making the two panes dependent on each other.
Con Support for Mac and commercial use only
Coda 2 is only available on Mac (even though that does make it a native app, meaning its much faster). Coda 2 costs $99 after the 30 day free trial is up.
Con No XDebug
If you also write PHP, there's no XDebug support available.