gentoo/qt — pull request #38 by CmdrMoozy (2014-05-17 05:39:41+00:00)
Title: [dev-qt/qtwebkit:5] Add printsupport USE flag

This commit updates the =dev-qt/qtwebkit-5.3.0_rc ebuild to allow for
enabling/disabling of its qtprintsupport dependency.

I have verified that the ebuild works correctly with this patch on ~amd64:

Building with USE="-printsupport":
```
$ emerge -pv dev-qt/qtwebkit:5

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild R ~] dev-qt/qtwebkit-5.3.0_rc:5::local-qt-dev USE="multimedia opengl udev widgets
-debug -gstreamer -libxml2 -printsupport -qml {-test} -webp -xslt" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

$ ldd /usr/lib64/libQt5WebKit*.so.* | grep PrintSupport
```

Building with USE="printsupport":
```
$ emerge -pv qtwebkit:5

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild N ~] dev-qt/qtprintsupport-5.3.0_rc:5::local-qt-dev USE="cups -debug {-test}" 0 kB
[ebuild R ~] dev-qt/qtwebkit-5.3.0_rc:5::local-qt-dev USE="multimedia opengl printsupport*
udev widgets -debug -gstreamer -libxml2 -qml {-test} -webp -xslt" 0 kB

Total: 2 packages (1 new, 1 reinstall), Size of downloads: 0 kB

$ ldd /usr/lib64/libQt5WebKit*.so.* | grep PrintSupport
libQt5PrintSupport.so.5 => /usr/lib64/libQt5PrintSupport.so.5 (0x00007f8c526ef000)
libQt5PrintSupport.so.5 => /usr/lib64/libQt5PrintSupport.so.5 (0x00007effb6920000)
libQt5PrintSupport.so.5 => /usr/lib64/libQt5PrintSupport.so.5 (0x00007feffa9a9000)
```