www/ap-perl: Fix build with gcc 4.7

GCC 4.7 requires variable declaration before use.
Drop PKG_DESTDIR_SUPPORT setting, "user-destdir" is default these days.
Add patch from cairo's GIT repository to fix crashes with older versions
of X.org. XChat now works again under Mac OS X Lion.
Note update of the "cairo" package to version 1.12.4nb1.
Drop PKG_DESTDIR_SUPPORT setting, "user-destdir" is default these days.
print/cups: PR#46984 Remove libusb options from DragonFly, SunOS

The devel/libusb1 package is masked for both DragonFly and SunOS.  This
cups package set libusb on by default which means cups fails to build
with no set options on those two platforms.

Add an OPSYS check which prevents libusb from even being offered as an
option on DragonFly and SunOS.
Update to 2.1.5:

Version 2.1.5
* Updated translations
* 1 bug fix
Updated games/gbrainy to 2.15
+ courier-authlib-0.65.0, puzzles-9682.
Update to 1.02

Upstream changes:
1.02 2012-08-27 10:27:21
    [IMPROVEMENT]
    - performance improvement for v5.14.0 or grater (dex4er)

1.01 2012-08-24 09:03:29
    [BUG FIXES]
    - fix circular dependency which was introduced in 1.00 (hanekomu++)

1.00 2012-08-23 20:50:46
    This is 1.00 but has no significant change!

    [BUG FIXES]
    - Fix a problem which occured in a case where a role applied
      to an instance with AUTOLOAD.

0.99 2012-06-30 14:47:03
    [BUG FIXES]
    - Resolve RT#73592 use of local $_ was buggy in older perls
    - Resolve RT#75093 warning about weak_ref

0.98 2012-06-30 14:02:26
    [ANNOUNCE]
    - The repository has been moved to github
      https://github.com/gfx/p5-Mouse
      in order toto accept pull-requests easily!

    [BUG FIXES]
    - Resolve RT#75313 and RT#77227 ($@ issues)
Updated devel/p5-Mouse to 1.02
Drop PKG_DESTDIR_SUPPORT setting, "user-destdir" is default these days.
Drop PKG_DESTDIR_SUPPORT setting, "user-destdir" is default these days.
Update from version 1.6.8 to 1.6.13.
Ensure that ldns is at least as new as this package.
I don't think there are specific fixes to drill in this update,
so this is an update to pull in all the library fixes from ldns,
since drill comes out of the ldns distribution.
Drop PKG_DESTDIR_SUPPORT setting, "user-destdir" is default these days.
Add a patch each to code and documentation so that drill probes
for /etc/trusted-key.key, and uses that as a trust anchor if neither
-D nor -k options were specified. This feature is borrowed from
BIND's dig when it is compiled with SIGCHASE support.  Bump
PKGREVISION.
Note the two updates for net/drill, first to 1.6.13 and then to 1.6.13nb1.
GCC_REQD is 3.0 not 3.4, removing the pain for NetBSD-2.1 and other 3.0<=gcc<3.4 platforms
Update to Poly/ML 5.5


Changes in Poly/ML Version 5.5

Major New Features

    Storage management rewrite. The storage management system
    has been almost completely rewritten. The garbage collector
    is parallelised and a new mechanism has been introduced to
    adjust the size of the heap. When space is very short an
    extra pass may be triggered that merges immutable cells with
    the same contents. Thanks to Tobias Nipkow and the Technical
    University of Munich for support for this work.

    PolyML.shareCommonData has been parallelised and now uses a
    dynamic stack to avoid a possible segfault if the C stack
    overflows with deep data structures.

    There is now support for 64-bit on Windows using either
    mingw or Visual Studio.

    Added a PolyML.Statistics structure to extract information
    about the current ML program or that running in another
    process.

    The standard "text" and "data" areas are now used for
    exported object files. In particular this removes the need
    for --segprot when linking the object files on Mac OS X with
    previous versions.

    libffi is now used for foreign function interface
    (CInterface). Among other things this allows the full range
    of types to be use on X86/64. A version of libffi is
    included in the source but those packaging Poly/ML may
    prefer to use the --with-system-libffi option to the
    configure script to use the version installed on the
    machine.

    Withdrawn support for native-code on PPC and Sparc. The
    configure script will now fall back to the interpreted
    version on these platforms.


Minor Additions and Changes

    Added G, M, K suffix to RTS arguments for --maxheap and --minheap.

    Some changes to where "op" is allowed to conform more
    closely to the Definition.

    --debug and --logfile options. These allow fine control of
    debugging information within the run-time system.

    Added --error-exit option to terminate the top-level loop if
    any command raises an exception.

    Added PolyML.IntInf with gcd and lcm functions to use GMP's
    gcd function if available.

    Added PolyML.Compiler.allocationProfiling to work with
    PolyML.profiling 4. This causes each full GC to print a
    profile indicating where the currently live data has been
    allocated.

    Removed NetDB structure from the library since this was in
    an early draft of the basis library but not in the final book.

    Added PolyML.Codetree structure within PolyML. This allows
    ML code to build intermediate code data structures and
    generate machine code from them.

    Added "--use FILENAME" command line argument to run a command
    from a file before starting the main Read-Eval-Print loop.


Bug Fixes

    Fixes related to Word32 on X86-64 and Word.~>>.

    Vol allocation locking issue

    Floating point box issue

    Fix some functions in the Windows structure to match the
    Basis Library definition

    Fix a possible crash if a GC happened while another thread
    was in foreign code.

    Fix error in printer function for a datatype where the
    effect of PolyML.print_depth depended on the posiition
    of a constructor in the datatype.

    Fix bug with flexible record handling.

    Fix Real.fmt and Real.toString to conform to the Basis
    Library definition.

    Fix Real.abs with nan argument.

    Fix IEEEReal.toString for nan argument.

    Fix code-generator bug which resulted in incorrect result
    for Real.nextAfter.

    Fix bug the produced Subscript exceptions in stream IO.
Updated lang/polyml to 5.5