Merge branch 'release-0.1.5-f2'
Dynamically work around issue 11973.

At some point either PyPy or Python should get around to properly supporting
the kevent(2) interface.  Prepare for that eventuality.
Fix release script to automatically merge the release branch into master.
Correctly test for python issue 11973.

Dave Mischler reported that issue 11973 does not work with (at least) on i386
environments, thus requiring the dynamic work-a-round.
Prepare for release of 0.1.5.3

Update:
 - version tags in setup.py, portbuilder, port/Makefile and ChangeLog
 - date of this release in ChangeLog
 - setup.py:
   - package directories
   - scripts
 - ports:
   - pkg-descr
   - COMMENT
   - pkg-plist
Update distinfo for 0.1.5.3 release tarball
Merge branch 'release-0.1.5-f3'
Fix setting "auto" flag with pkgng

pkg set -a changed to pkg set -A; -a is now used to match all packages.
pkg (r)query doesn't need -F with package names

-F is used with package files.
Fix --method=repo

pkg rquery generates a large output, and the OS pipe buffer gets
quickly filled, so Popen.wait() deadlocks. Popen.communicate(),
instead, flushes the output as soon as it is available.
Avoid including '\n' in OPTIONS list
Fix OPTIONS detection

This brings make config back to the game.
Fix style and comment
Fix sorting of queued jobs.

Although the jobs were displayed correctly on Top, it was not being sorted
properly in Queue resulting in jobs going active in the incorrect order.
Merge branch 'master' of https://github.com/xzhavilla/portbuilder into release-0.1.5-f4
Update ChangeLog for commits from pull 52ccea0ee.
Rename env.env_master to env.master.

There is no need for such verbosity.
Split load_defaults() to bootstrapping env.master and general options detection.

The original values for env.master are defaults that can be changed via either
os.environ or make.conf, if that is the case those changed values need to be
taken as the "original" values.

Create a function bootstrap_master() to detect the default values of env.master.

With the correct default values available the load_defaults() function can load
the bsd.ports.mk state variables directly from bsd.ports.mk and not from
make.conf.  This allows handling of dynamic handling of variables, such as
WITH_PKGNG, that is set if ${OSVERSION} > 1000017.
Use env.env["PORTSDIR"] not env.master["PORTSDIR"].

The user may specify a custom PORTSDIR, which will remove it from env.master
indicating a user override.
Prepare for release of 0.1.5.4

Update:
 - version tags in setup.py, portbuilder, port/Makefile and ChangeLog
 - date of this release in ChangeLog
 - setup.py:
   - package directories
   - scripts
 - ports:
   - pkg-descr
   - COMMENT
   - pkg-plist