MFH: r356888

Add explicit dependency on qt4-gui.

For some reason, PyQt's configure.py adds a dependency on QtGui when
figuring out if QtSql is installed. When the API option is on, this
dependency is always installed indirectly, but things fail if it is turned
off. From configure's build log:

  Checking to see if the QtSql module should be built...
  c++ -DQT_NO_DEBUG -DQT_SQL_LIB -I. -I/usr/local/share/qt4/mkspecs/default
  -I/usr/local/include/qt4/QtSql -I/usr/local/include/qt4/QtGui
  -I/usr/local/include/qt4 -I/usr/local/include -O2 -pipe
  -fno-strict-aliasing -O2 -w -pthread -D_THREAD_SAFE cfgtest_QtSql.cpp -o
  cfgtest_QtSql -L/usr/local/lib/qt4 -L/usr/local/lib -Wl,-O1
  -Wl,-rpath,/usr/local/lib/qt4 -lQtSql -L/usr/local/lib/qt4
  -L/usr/local/lib/qt4 -L/usr/local/lib -lQtCore -L/usr/local/lib/qt4
  -L/usr/local/lib/qt4 -L/usr/local/lib -lQtGui -lXext -lX11 -lm
  /usr/bin/ld: cannot find -lQtGui
  c++: error: linker command failed with exit code 1 (use -v to see invocation)

PR:		183706

Approved by:	portmgr (miwi)
MFH: r356889

Add explicit dependency on qt4-gui.

This is similar to r356888, in that PyQt's configure.py builds py-qt4-test
with QtGui's libraries (even though, contrary to qt4-sql, it is not used at
configuration time). Using QtGui defines QT_GUI_LIB, which makes the QtTest
headers pull in QtGui ones. QtGui comes for free indirectly when the API
option is set, but the build fails otherwise:

  c++ -c -O2 -pipe -fno-strict-aliasing -fPIC -O2 -Wall -W -pthread -D_THREAD_SAFE -DNDEBUG -DQT_NO_DEBUG -DQT_TEST_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/usr/local/include/python2.7 -I/usr/local/share/qt4/mkspecs/default -I/usr/local/include/qt4/QtTest -I/usr/local/include/qt4/QtGui -I/usr/local/include/qt4/QtCore -I/usr/local/include/qt4 -I/usr/local/include -o sipQtTestQTest.o sipQtTestQTest.cpp
  In file included from /wrkdirs/usr/ports/devel/py-qt4-test/work/PyQt-x11-gpl-4.10.3/sip/QtTest/qtestkeyboard.sip:31:
  /usr/local/include/qt4/QtTest/qtestkeyboard.h:56:10: fatal error: 'QtGui/qapplication.h' file not found

PR:		183706

Approved by:	portmgr (miwi)
MFH: r356890

- Rebase patch-configure.py on top of the current PyQt version, to make it
  easy to change it, which leads us to...

- Build pylupdate and pyrcc only for py-qt4-xml again.
  This fixes a regression introduced last year when PyQt was updated to
  4.10.3: configure.py started building pylupdate and pyrcc unconditionally
  instead of only if "QtXml" was specified.
  If the API option is off, the build would fail because the QtXml headers
  needed to build those tools would not be added as a dependency.

PR:		183706

Approved by:	portmgr (miwi)
MFH: r356899

- New upstream release 1.0.1
- Un-break build with clang
- Stagify
- Introduce NLS OPTION
- USE_* -> USES
- Shared lib convention: shlib.X -> libshlib.so
- Pet portlint

Approved by:	portmgr (swills), mentors (implicit)