summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavide Pesavento <pesa@gentoo.org>2014-01-26 18:14:09 +0000
committerDavide Pesavento <pesa@gentoo.org>2014-01-26 18:14:09 +0000
commit5857ce879d0dd51ff514a4c5c29eb85c4f9d009a (patch)
treee2b44cd46eb1b21889df7b4210f815ec1ae7ab55 /dev-qt/qtgui
parenthardened/linux/musl: switch to dev-util/pkgconf which does better in musl (diff)
downloadhistorical-5857ce879d0dd51ff514a4c5c29eb85c4f9d009a.tar.gz
historical-5857ce879d0dd51ff514a4c5c29eb85c4f9d009a.tar.bz2
historical-5857ce879d0dd51ff514a4c5c29eb85c4f9d009a.zip
Cleanup.
Package-Manager: portage-2.2.8-r1/cvs/Linux x86_64 Manifest-Sign-Key: 0x17A85C72
Diffstat (limited to 'dev-qt/qtgui')
-rw-r--r--dev-qt/qtgui/ChangeLog6
-rw-r--r--dev-qt/qtgui/Manifest33
-rw-r--r--dev-qt/qtgui/files/CVE-2013-0254.patch143
-rw-r--r--dev-qt/qtgui/metadata.xml3
-rw-r--r--dev-qt/qtgui/qtgui-4.8.4-r1.ebuild233
5 files changed, 21 insertions, 397 deletions
diff --git a/dev-qt/qtgui/ChangeLog b/dev-qt/qtgui/ChangeLog
index 272b1d50affc..c760fb1f3021 100644
--- a/dev-qt/qtgui/ChangeLog
+++ b/dev-qt/qtgui/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-qt/qtgui
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-qt/qtgui/ChangeLog,v 1.18 2014/01/26 11:55:54 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-qt/qtgui/ChangeLog,v 1.19 2014/01/26 17:57:41 pesa Exp $
+
+ 26 Jan 2014; Davide Pesavento <pesa@gentoo.org> -files/CVE-2013-0254.patch,
+ -qtgui-4.8.4-r1.ebuild, metadata.xml:
+ Cleanup.
26 Jan 2014; Agostino Sarubbo <ago@gentoo.org> qtgui-4.8.5-r1.ebuild:
Stable for ia64, wrt bug #494728
diff --git a/dev-qt/qtgui/Manifest b/dev-qt/qtgui/Manifest
index d8b130023836..ccb06be71bc5 100644
--- a/dev-qt/qtgui/Manifest
+++ b/dev-qt/qtgui/Manifest
@@ -1,29 +1,26 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
-AUX CVE-2013-0254.patch 6449 SHA256 c25f54ed3fdfed4cc945e53f7a848f88be8bda899c8ebff904f241cf9096df3e SHA512 957d1f3e5ca9a8585e0e5c806cd0ea731e97a3b05cf60e84aef44912cbd9b8db80961f336f91734f9759d14d4e0de39a73becb45f58ca8af831c1780e5368739 WHIRLPOOL 633cba444159eb134ec2df8a4b4fbb145aea28012b75353c9684f3d47b1c50736ea7c5adbd4fa1fbb0bf285a1e517b122bb6b5edac1313f6578465c8381d60d9
AUX qtgui-4.7.3-cups.patch 3297 SHA256 3ccfefb432015e4a4ea967b030c51b10dcdfb1f63445557908ddae5e75012d33 SHA512 4a8f828c79bde81ab1e39c9eaba4ef553582d85b62d6d182dda02820c4c8e046de6a25cc77d228955ed37fbc5b55f697a0a464af0bb3e171849851639e9ef4ee WHIRLPOOL 41d82843f91533a5cbb0c9945c9013d9c8f07be3f06fef1b52cf8d18483d9cdfd24fe1d53c18a2f1eebd7a504f1665f1859616ae460d6471dc1599cea63a7bda
AUX qtgui-4.8.5-keyboard-shortcuts.patch 1706 SHA256 597fe8717279af4db6bc074588ef9973b2a48e5249ea3e6e85266ce949335921 SHA512 60a3c28b9fd8032e5ee314f2dc6d043981441858d7b3a3da0d97d87c39599d7e09e398625c03bf44974c3782a824ab8f997f579fcd26e4a023bb7cfe04c0f443 WHIRLPOOL 77269a9d4285f3f8fb544299f5ed938430362cb45eecfa9506beee1cf3fbfa757113d35f40c25f3288c45591fd22a9b4ce64627e9c96d4b0cd25f701be20d5eb
-DIST qt-everywhere-opensource-src-4.8.4.tar.gz 236593028 SHA256 33b0e38ba4c54a0cf8a4be8ca5a4584f1c2e0adfecb57b21d9d1d267b0093270 SHA512 472972b63b5cad83b4c4656b23e95b6d4923cc31a518138e25d5921982b14abc835883356c2b779a7972cb77cf73fe25b46630be7c6a86a917b364186aa17496 WHIRLPOOL 9d250ee9ddd0431eeabc22ea598eda2bc74ee7ee6c5329522c479143d6c38fa17ae545541b4e3220b05d493c1a5d407c70980d0d1ffa49d2f83dedc1774cfa79
DIST qt-everywhere-opensource-src-4.8.5.tar.gz 241491467 SHA256 eb728f8268831dc4373be6403b7dd5d5dde03c169ad6882f9a8cb560df6aa138 SHA512 47118d1aa30c59a1eb74e805023cd060edcb35bb0944fe6651889254b75acbd4b83700ba92a9bc215663474d26330cb44f084098c380fac9270742659e5864eb WHIRLPOOL a18f47fd91b522d1543e415aff4f5056202e0cab03da9cfcae9fe2d4118cb1dd1d5fd6a5e2edb9c1e4a68563188d44440e234d268d9c0aef6e3ca3f0988dd357
-EBUILD qtgui-4.8.4-r1.ebuild 7213 SHA256 acd016b867ab1a37a4ea62e156277e2cbb618e22bf658a7f82ce2f3f1d2b6684 SHA512 67125c1bc35aa87f7f2806b4d4c4ffb1ba5f9cb5c553f29597298c6dc68244da5b9a8bbb3fce687bdb811bfa8dfcd6e2154b291a9edfc62dac65745b4bb6e585 WHIRLPOOL 710dfdecb00d9fa23df82e8efc8170ccd65dad81e5f5f7c34230ced2ed9ffdff0df580a80629f616c10a3ecbc36d79afe868f9800a5c187780e66ee4faff7812
EBUILD qtgui-4.8.5-r1.ebuild 5661 SHA256 bc8ed1ba030dc609d567346b51bc8581e5aba7429834507a3309a3b397668b3a SHA512 676f6c4b1355ac97358316c6647ae98b4a3256531e605711d08a081e4b9f57948a5f334a1666bc890e423ab98a5d32c9b112bceeb71d0eb26c8e9275f6a26821 WHIRLPOOL f090a7f16a02e5f85d9346ef83d6cb6688f1881237e33792d491bd7ec034e1907637d54fa7c01bfa10d620fb5e85644581750af48c274e1d25df12650d2dc6c0
-MISC ChangeLog 35720 SHA256 11266dd5bf3b5d6216973ef6040f827753bf5fb6acb883611b60cd61ce1fd0a7 SHA512 814ab6b0c6cbec67880179160d461ca71aab5a79426615fb410eabc07bc39cd0ffb2ad38222a58db6f8404c2d81d8bd29cf28b2d18a48a9bb7bc327a43e85139 WHIRLPOOL 2e4df5fda51d1ba044112f5d015f27a64e4ac53642b6bdfb64dcc33ee5b5e3730d71e5dd126674b791ba7df04f625dadefd99689d112a8773a16c1d25f00dc84
-MISC metadata.xml 1117 SHA256 fe5f2ec8d0a91fd48b7fb30f9d146c315812647477608bf303a13ee8ef91290e SHA512 18357a2905d6fed98173361c8b574bca5501844d11f3887f913fb9ce0d3dfce1e181188b93d2a21c9a4e24229afe4037a0c3a7877d521d2f43464d94dae1b7d0 WHIRLPOOL 76c441e8ba23e2067e76ed06ad3db061ab9e99647ad124b1f5ebcf14d6ebf6cd82cd11651a5a207ba97f39a00aee44b840deeae1e098e631fac99378008376fb
+MISC ChangeLog 35851 SHA256 985fe4d31c864dbacd728b64a95da0d0bb4557f2ca6b0a938415f219203b1d42 SHA512 a086027fe84c52545651f35f9c644c371bbd5bc45eab63a57a3689351f13dc6d2c576a4d2f627fc85be5fbbb26fe90ec04c6adc79525842249d98420b9cf1c0c WHIRLPOOL af885ba3d6143708370177ef953ea7c6abef663edc7debdca4ca5a205e20efcc4d3a76a65a2a22f3541cc34c051c4b3540444dab0cb9eee5faec323104d1cbb8
+MISC metadata.xml 1058 SHA256 fea87cdb725fa8f278ed1310f49796cf553025a0e05d54fa813bd455ad4ab923 SHA512 360984939e4ff6607bfb207e826a54c8faf6c08f5f2b71d10cc7c08b374d2edb9cb91bff959a9626212d2548c09ed85a8c253e22c41aae28c885795e17cee0bb WHIRLPOOL 1d27158db4c3e2c735c5881972d9e10e12087789597a96042e8a9031d3eb847745101bd0fe7c68b42350ea581dcda8851c472e8c8db7982661a1ac89ceb117ca
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
-iQIcBAEBCAAGBQJS5PfLAAoJELp701BxlEWfWy4P/3RqqDNAG99OHyZ2B0bXfsGR
-3dMGlk+zc8m4UAkmEYoPBTMfICKQzFQd29FZqWbSi9CqB04J7F/zLRnWlIcI2qcv
-iuw3jrq0Lo+noiSCV2QkENMaOvfatxj/8O8xjISr9rnjt6ypbT+7tJyIrLZKPj18
-7ooYKxzknhUApgz+h+dcm66DPdIrHj3Z3OyXbSyDpbQ2C8U0qjg7b6jyCMhsDynr
-2No/oP8G0HDnekVE6JyxWliH74DXCLd/lUm6aNihBFqr0k9UQoTkYSfdegJKPKlx
-FAbNzBG/gJoQGg9KIyHy75UovRFApb2oVVPEnNuJYo4vUcIA6Z7iPQu38LAIK3NP
-IVjRPVJkgmR/DFs2sLhNjA75Yd+fNE+NLzAXrADZogw2OcOrZQ6tE3+rZKjr516X
-7kXGJo9HV7ByvhBqGcrGnr+Qrq22gj8NMykKZHybu7egYb9nZK3tJ+n/5NtjQP8z
-gc35srImirft28NfcMHavtoZ7vjqfmlTgZ03paDqyvCqMwsq3zo4UOyYC434pnO3
-vnVdAg5A2UZYU+7AvWJPGCxC4vQX8YVDUW46Q2JF7SC7eZhbBynKxZGeOEnu7zYu
-Nqn1kGI9gKo87NVhOvmY3yoq9CERALDLFzQM3jDpkzzbQQZtbw+UvutylXB0vCd+
-QXqPmShFD5908v/1QYYv
-=wkkR
+iQIcBAEBCAAGBQJS5UyWAAoJENXLsxwXqFxyJCQP/itnZSPfKiWmelH1k6YVptrU
+Gq9knx+B7OiObac3zo+Zdegm5RIBe7Xe0UzBmmmNLwcQNztYjpx9v7ABtvfr1q6v
+auVqX0xndJ7LXRJC6HuLuhz8smCYjqWYNJ1tD7LshyXiGPNV5mFbJIJwBDCBZPc9
+i6cdit1Enm4T8LTYCznDlt5c3tzhUHX+OKgUlSeB0rI07I60wUdyBYBGEIBBmrIb
+EYSkLrA6q2sUACOAvvGpUdMWJhbHrhB2WYDVDPuRpgIsWhzuArZVvK3wuxru3RSr
+CkbLT+rnN6BEcPOnRf4k/laXNEF95E8kO2ZsR5RQ8lW1E1J1Ks1ETcYMYSjIwTm/
+PWaQFKv2IhLjRKZ4B6zohNfuF/pM0LEP8/DYUl8Xg9J+GpkhePPszXJQkBlfdohV
+pt6GpqlToPoI/UORWn+J3emkq043hUdorQU/B5fcdZ/c1/Ps6RH8Wn0TGGj6+VUK
+UNt7qLnMN9wPSbGBZjWeDm1JpnDfybNJTKx8C/FmSO3NySxFQe0ljfMkJM1FVSiO
+tC3eEwxFepOTtjghth3vrdDuW4+n9c+FQlektHvhzPlzXAYIvV3dAJjzBWhhMOkn
++t5T41FDnGd1EFTono/dnpcoS7uNBk+j84EIbeu2SwTd3k+ABW+l7ljhu2iYG2VI
+7QduCh+TaGNr84tZmpUV
+=zvZw
-----END PGP SIGNATURE-----
diff --git a/dev-qt/qtgui/files/CVE-2013-0254.patch b/dev-qt/qtgui/files/CVE-2013-0254.patch
deleted file mode 100644
index fa05da333257..000000000000
--- a/dev-qt/qtgui/files/CVE-2013-0254.patch
+++ /dev/null
@@ -1,143 +0,0 @@
-From 20b26bdb3dd5e46b01b9a7e1ce8342074df3c89c Mon Sep 17 00:00:00 2001
-From: Thiago Macieira <thiago.macieira@intel.com>
-Date: Sat, 22 Dec 2012 08:32:12 -0800
-Subject: [PATCH] Change all shmget calls to user-only memory
-
-Drop the read and write permissions for group and other users in the
-system.
-
-Change-Id: I8fc753f09126651af3fb82df3049050f0b14e876
-(cherry-picked from Qt 5 commit 856f209fb63ae336bfb389a12d2a75fa886dc1c5)
-Reviewed-by: Richard J. Moore <rich@kde.org>
----
- src/corelib/kernel/qsharedmemory_unix.cpp | 6 +++---
- src/corelib/kernel/qsystemsemaphore_unix.cpp | 4 ++--
- src/gui/image/qnativeimage.cpp | 2 +-
- src/gui/image/qpixmap_x11.cpp | 2 +-
- src/plugins/platforms/xcb/qxcbwindowsurface.cpp | 2 +-
- src/plugins/platforms/xlib/qxlibwindowsurface.cpp | 2 +-
- tools/qvfb/qvfbshmem.cpp | 4 ++--
-
-diff --git a/src/corelib/kernel/qsharedmemory_unix.cpp b/src/corelib/kernel/qsharedmemory_unix.cpp
-index 20d76e3..4cf3acf 100644
---- a/src/corelib/kernel/qsharedmemory_unix.cpp
-+++ b/src/corelib/kernel/qsharedmemory_unix.cpp
-@@ -238,7 +238,7 @@ bool QSharedMemoryPrivate::create(int size)
- }
-
- // create
-- if (-1 == shmget(unix_key, size, 0666 | IPC_CREAT | IPC_EXCL)) {
-+ if (-1 == shmget(unix_key, size, 0600 | IPC_CREAT | IPC_EXCL)) {
- QString function = QLatin1String("QSharedMemory::create");
- switch (errno) {
- case EINVAL:
-@@ -293,7 +293,7 @@ bool QSharedMemoryPrivate::attach(QSharedMemory::AccessMode mode)
- {
- #ifndef QT_POSIX_IPC
- // grab the shared memory segment id
-- int id = shmget(unix_key, 0, (mode == QSharedMemory::ReadOnly ? 0444 : 0660));
-+ int id = shmget(unix_key, 0, (mode == QSharedMemory::ReadOnly ? 0400 : 0600));
- if (-1 == id) {
- setErrorString(QLatin1String("QSharedMemory::attach (shmget)"));
- return false;
-@@ -381,7 +381,7 @@ bool QSharedMemoryPrivate::detach()
- size = 0;
-
- // Get the number of current attachments
-- int id = shmget(unix_key, 0, 0444);
-+ int id = shmget(unix_key, 0, 0400);
- cleanHandle();
-
- struct shmid_ds shmid_ds;
-diff --git a/src/corelib/kernel/qsystemsemaphore_unix.cpp b/src/corelib/kernel/qsystemsemaphore_unix.cpp
-index fad9acc..e77456b 100644
---- a/src/corelib/kernel/qsystemsemaphore_unix.cpp
-+++ b/src/corelib/kernel/qsystemsemaphore_unix.cpp
-@@ -153,10 +153,10 @@ key_t QSystemSemaphorePrivate::handle(QSystemSemaphore::AccessMode mode)
- }
-
- // Get semaphore
-- semaphore = semget(unix_key, 1, 0666 | IPC_CREAT | IPC_EXCL);
-+ semaphore = semget(unix_key, 1, 0600 | IPC_CREAT | IPC_EXCL);
- if (-1 == semaphore) {
- if (errno == EEXIST)
-- semaphore = semget(unix_key, 1, 0666 | IPC_CREAT);
-+ semaphore = semget(unix_key, 1, 0600 | IPC_CREAT);
- if (-1 == semaphore) {
- setErrorString(QLatin1String("QSystemSemaphore::handle"));
- cleanHandle();
-diff --git a/src/gui/image/qnativeimage.cpp b/src/gui/image/qnativeimage.cpp
-index 9654afe..fef38c5 100644
---- a/src/gui/image/qnativeimage.cpp
-+++ b/src/gui/image/qnativeimage.cpp
-@@ -176,7 +176,7 @@ QNativeImage::QNativeImage(int width, int height, QImage::Format format,bool /*
-
- bool ok;
- xshminfo.shmid = shmget(IPC_PRIVATE, xshmimg->bytes_per_line * xshmimg->height,
-- IPC_CREAT | 0777);
-+ IPC_CREAT | 0700);
- ok = xshminfo.shmid != -1;
- if (ok) {
- xshmimg->data = (char*)shmat(xshminfo.shmid, 0, 0);
-diff --git a/src/gui/image/qpixmap_x11.cpp b/src/gui/image/qpixmap_x11.cpp
-index 280d8bd..88c9b7b 100644
---- a/src/gui/image/qpixmap_x11.cpp
-+++ b/src/gui/image/qpixmap_x11.cpp
-@@ -193,7 +193,7 @@ static bool qt_create_mitshm_buffer(const QPaintDevice* dev, int w, int h)
- bool ok;
- xshminfo.shmid = shmget(IPC_PRIVATE,
- xshmimg->bytes_per_line * xshmimg->height,
-- IPC_CREAT | 0777);
-+ IPC_CREAT | 0700);
- ok = xshminfo.shmid != -1;
- if (ok) {
- xshmimg->data = (char*)shmat(xshminfo.shmid, 0, 0);
-diff --git a/src/plugins/platforms/xcb/qxcbwindowsurface.cpp b/src/plugins/platforms/xcb/qxcbwindowsurface.cpp
-index b6a42d8..0d56821 100644
---- a/src/plugins/platforms/xcb/qxcbwindowsurface.cpp
-+++ b/src/plugins/platforms/xcb/qxcbwindowsurface.cpp
-@@ -98,7 +98,7 @@ QXcbShmImage::QXcbShmImage(QXcbScreen *screen, const QSize &size, uint depth, QI
- 0);
-
- m_shm_info.shmid = shmget (IPC_PRIVATE,
-- m_xcb_image->stride * m_xcb_image->height, IPC_CREAT|0777);
-+ m_xcb_image->stride * m_xcb_image->height, IPC_CREAT|0600);
-
- m_shm_info.shmaddr = m_xcb_image->data = (quint8 *)shmat (m_shm_info.shmid, 0, 0);
- m_shm_info.shmseg = xcb_generate_id(xcb_connection());
-diff --git a/src/plugins/platforms/xlib/qxlibwindowsurface.cpp b/src/plugins/platforms/xlib/qxlibwindowsurface.cpp
-index bf003eb..46a2f97 100644
---- a/src/plugins/platforms/xlib/qxlibwindowsurface.cpp
-+++ b/src/plugins/platforms/xlib/qxlibwindowsurface.cpp
-@@ -99,7 +99,7 @@ void QXlibWindowSurface::resizeShmImage(int width, int height)
-
-
- image_info->shminfo.shmid = shmget (IPC_PRIVATE,
-- image->bytes_per_line * image->height, IPC_CREAT|0777);
-+ image->bytes_per_line * image->height, IPC_CREAT|0700);
-
- image_info->shminfo.shmaddr = image->data = (char*)shmat (image_info->shminfo.shmid, 0, 0);
- image_info->shminfo.readOnly = False;
-diff --git a/tools/qvfb/qvfbshmem.cpp b/tools/qvfb/qvfbshmem.cpp
-index 7f9671f..84b6ebe 100644
---- a/tools/qvfb/qvfbshmem.cpp
-+++ b/tools/qvfb/qvfbshmem.cpp
-@@ -176,13 +176,13 @@ QShMemViewProtocol::QShMemViewProtocol(int displayid, const QSize &s,
- uint data_offset_value = sizeof(QVFbHeader);
-
- int dataSize = bpl * h + data_offset_value;
-- shmId = shmget(key, dataSize, IPC_CREAT | 0666);
-+ shmId = shmget(key, dataSize, IPC_CREAT | 0600);
- if (shmId != -1)
- data = (unsigned char *)shmat(shmId, 0, 0);
- else {
- struct shmid_ds shm;
- shmctl(shmId, IPC_RMID, &shm);
-- shmId = shmget(key, dataSize, IPC_CREAT | 0666);
-+ shmId = shmget(key, dataSize, IPC_CREAT | 0600);
- if (shmId == -1) {
- perror("QShMemViewProtocol::QShMemViewProtocol");
- qFatal("Cannot get shared memory 0x%08x", key);
---
-1.7.1
-
diff --git a/dev-qt/qtgui/metadata.xml b/dev-qt/qtgui/metadata.xml
index 66d14b70e816..5359da53269e 100644
--- a/dev-qt/qtgui/metadata.xml
+++ b/dev-qt/qtgui/metadata.xml
@@ -3,11 +3,10 @@
<pkgmetadata>
<herd>qt</herd>
<use>
- <flag name="c++0x">Build Qt using the C++11 standard</flag>
<flag name="egl">Use EGL instead of default GLX to manage OpenGL
contexts on the desktop</flag>
<flag name="exceptions">Add support for exceptions - like catching them
- inside the event loop (recommended by Nokia)</flag>
+ inside the event loop (recommended by upstream)</flag>
<flag name="glib">Enable <pkg>dev-libs/glib</pkg> eventloop support</flag>
<flag name="gtkstyle">Build a Qt style called GTK+ that mimics the active
GTK+ theme</flag>
diff --git a/dev-qt/qtgui/qtgui-4.8.4-r1.ebuild b/dev-qt/qtgui/qtgui-4.8.4-r1.ebuild
deleted file mode 100644
index 1d19df6e8973..000000000000
--- a/dev-qt/qtgui/qtgui-4.8.4-r1.ebuild
+++ /dev/null
@@ -1,233 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-qt/qtgui/qtgui-4.8.4-r1.ebuild,v 1.3 2013/08/27 15:52:30 kensington Exp $
-
-EAPI=4
-
-inherit eutils qt4-build
-
-DESCRIPTION="The GUI module for the Qt toolkit"
-SLOT="4"
-if [[ ${QT4_BUILD_TYPE} == live ]]; then
- KEYWORDS=""
-else
- KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
-fi
-IUSE="+accessibility cups dbus egl gif +glib gtkstyle mng nas nis qt3support tiff trace xinerama +xv"
-
-REQUIRED_USE="
- gtkstyle? ( glib )
-"
-
-# cairo[-qt4] is needed because of bug 454066
-RDEPEND="
- app-admin/eselect-qtgraphicssystem
- media-libs/fontconfig
- media-libs/freetype:2
- media-libs/libpng:0
- sys-libs/zlib
- virtual/jpeg:0
- ~dev-qt/qtcore-${PV}[aqua=,debug=,glib=,qt3support=]
- ~dev-qt/qtscript-${PV}[aqua=,debug=]
- !aqua? (
- x11-libs/libICE
- x11-libs/libSM
- x11-libs/libX11
- x11-libs/libXcursor
- x11-libs/libXext
- x11-libs/libXi
- x11-libs/libXrandr
- x11-libs/libXrender
- xinerama? ( x11-libs/libXinerama )
- xv? ( x11-libs/libXv )
- )
- cups? ( net-print/cups )
- dbus? ( ~dev-qt/qtdbus-${PV}[aqua=,debug=] )
- egl? ( media-libs/mesa[egl] )
- gtkstyle? (
- x11-libs/cairo[-qt4]
- x11-libs/gtk+:2[aqua=]
- )
- mng? ( >=media-libs/libmng-1.0.9 )
- nas? ( >=media-libs/nas-1.5 )
- tiff? ( media-libs/tiff:0 )
-"
-DEPEND="${RDEPEND}
- !aqua? (
- x11-proto/inputproto
- x11-proto/xextproto
- xinerama? ( x11-proto/xineramaproto )
- xv? ( x11-proto/videoproto )
- )
-"
-PDEPEND="qt3support? ( ~dev-qt/qt3support-${PV}[aqua=,debug=] )"
-
-PATCHES=(
- "${FILESDIR}/${PN}-4.7.3-cups.patch"
- "${FILESDIR}/CVE-2013-0254.patch"
-)
-
-pkg_setup() {
- QT4_TARGET_DIRECTORIES="
- src/gui
- src/scripttools
- tools/designer
- tools/linguist/linguist
- src/plugins/imageformats/gif
- src/plugins/imageformats/ico
- src/plugins/imageformats/jpeg
- src/plugins/inputmethods"
-
- QT4_EXTRACT_DIRECTORIES="
- include
- src
- tools"
-
- use accessibility && QT4_TARGET_DIRECTORIES="${QT4_TARGET_DIRECTORIES} src/plugins/accessible/widgets"
- use dbus && QT4_TARGET_DIRECTORIES="${QT4_TARGET_DIRECTORIES} tools/qdbus/qdbusviewer"
- use mng && QT4_TARGET_DIRECTORIES="${QT4_TARGET_DIRECTORIES} src/plugins/imageformats/mng"
- use tiff && QT4_TARGET_DIRECTORIES="${QT4_TARGET_DIRECTORIES} src/plugins/imageformats/tiff"
- use trace && QT4_TARGET_DIRECTORIES="${QT4_TARGET_DIRECTORIES} src/plugins/graphicssystems/trace"
-
- # mac version does not contain qtconfig?
- [[ ${CHOST} == *-darwin* ]] || QT4_TARGET_DIRECTORIES+=" tools/qtconfig"
-
- QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES} ${QT4_EXTRACT_DIRECTORIES}"
-
- qt4-build_pkg_setup
-}
-
-src_prepare() {
- qt4-build_src_prepare
-
- # Add -xvideo to the list of accepted configure options
- sed -i -e 's:|-xinerama|:&-xvideo|:' configure
-
- # Don't build plugins this go around, because they depend on qt3support lib
- sed -i -e 's:CONFIG(shared:# &:g' tools/designer/src/src.pro
-}
-
-src_configure() {
- export PATH="${S}/bin:${PATH}"
- export LD_LIBRARY_PATH="${S}/lib:${LD_LIBRARY_PATH}"
-
- myconf="$(qt_use accessibility)
- $(qt_use cups)
- $(use gif || echo -no-gif)
- $(qt_use glib)
- $(qt_use mng libmng system)
- $(qt_use nas nas-sound system)
- $(qt_use nis)
- $(qt_use tiff libtiff system)
- $(qt_use dbus qdbus)
- $(qt_use dbus)
- $(qt_use egl)
- $(qt_use qt3support)
- $(qt_use gtkstyle)
- $(qt_use xinerama)
- $(qt_use xv xvideo)"
-
- myconf+="
- -system-libpng -system-libjpeg -system-zlib
- -no-sql-mysql -no-sql-psql -no-sql-ibase -no-sql-sqlite -no-sql-sqlite2 -no-sql-odbc
- -sm -xshape -xsync -xcursor -xfixes -xrandr -xrender -mitshm -xinput -xkb
- -fontconfig -no-svg -no-webkit -no-phonon -no-opengl"
-
- [[ ${CHOST} == *86*-apple-darwin* ]] && myconf+=" -no-ssse3" #367045
-
- qt4-build_src_configure
-
- if use gtkstyle; then
- einfo "patching the Makefile to fix qgtkstyle compilation"
- sed "s:-I/usr/include/qt4 ::" -i src/gui/Makefile ||
- die "sed failed"
- fi
- sed -i -e "s:-I/usr/include/qt4/QtGui ::" src/gui/Makefile || die "sed failed"
-}
-
-src_install() {
- QCONFIG_ADD="
- mitshm tablet x11sm xcursor xfixes xinput xkb xrandr xrender xshape xsync
- fontconfig gif png system-png jpeg system-jpeg
- $(usev accessibility)
- $(usev cups)
- $(use mng && echo system-mng)
- $(usev nas)
- $(usev nis)
- $(use tiff && echo system-tiff)
- $(usev xinerama)
- $(use xv && echo xvideo)"
- QCONFIG_REMOVE="no-gif no-jpeg no-png"
- QCONFIG_DEFINE="$(use accessibility && echo QT_ACCESSIBILITY)
- $(use cups && echo QT_CUPS)
- $(use egl && echo QT_EGL)
- QT_FONTCONFIG
- $(use gtkstyle && echo QT_STYLE_GTK)
- QT_IMAGEFORMAT_JPEG QT_IMAGEFORMAT_PNG
- $(use mng && echo QT_IMAGEFORMAT_MNG)
- $(use nas && echo QT_NAS)
- $(use nis && echo QT_NIS)
- $(use tiff && echo QT_IMAGEFORMAT_TIFF)
- QT_SESSIONMANAGER QT_SHAPE QT_TABLET QT_XCURSOR QT_XFIXES
- $(use xinerama && echo QT_XINERAMA)
- QT_XINPUT QT_XKB QT_XRANDR QT_XRENDER QT_XSYNC
- $(use xv && echo QT_XVIDEO)"
-
- qt4-build_src_install
-
- # qt-creator
- # some qt-creator headers are located
- # under /usr/include/qt4/QtDesigner/private.
- # those headers are just includes of the headers
- # which are located under tools/designer/src/lib/*
- # So instead of installing both, we create the private folder
- # and drop tools/designer/src/lib/* headers in it.
- if use aqua && [[ ${CHOST##*-darwin} -ge 9 ]]; then
- insinto "${QTLIBDIR#${EPREFIX}}"/QtDesigner.framework/Headers/private/
- else
- insinto "${QTHEADERDIR#${EPREFIX}}"/QtDesigner/private/
- fi
- doins "${S}"/tools/designer/src/lib/shared/*
- doins "${S}"/tools/designer/src/lib/sdk/*
-
- # install private headers
- if use aqua && [[ ${CHOST##*-darwin} -ge 9 ]]; then
- insinto "${QTLIBDIR#${EPREFIX}}"/QtGui.framework/Headers/private/
- else
- insinto "${QTHEADERDIR#${EPREFIX}}"/QtGui/private
- fi
- find "${S}"/src/gui -type f -name '*_p.h' -exec doins {} +
-
- if use aqua && [[ ${CHOST##*-darwin} -ge 9 ]]; then
- # rerun to get links to headers right
- fix_includes
- fi
-
- # touch the available graphics systems
- dodir /usr/share/qt4/graphicssystems
- echo "default" > "${ED}"/usr/share/qt4/graphicssystems/raster || die
- touch "${ED}"/usr/share/qt4/graphicssystems/native || die
-
- doicon tools/designer/src/designer/images/designer.png
- newicon tools/linguist/linguist/images/icons/linguist-128-32.png linguist.png
- newicon tools/qtconfig/images/appicon.png qtconfig.png
- use dbus && newicon tools/qdbus/qdbusviewer/images/qdbusviewer-128.png qdbusviewer.png
- make_desktop_entry designer Designer designer 'Qt;Development;GUIDesigner'
- make_desktop_entry linguist Linguist linguist 'Qt;Development;Translation'
- make_desktop_entry qtconfig 'Qt Configuration Tool' qtconfig 'Qt;Settings;DesktopSettings'
-}
-
-pkg_postinst() {
- qt4-build_pkg_postinst
-
- # raster is the default graphicssystem, set it on first install
- eselect qtgraphicssystem set raster --use-old
-
- if use gtkstyle; then
- # see bug 388551
- elog "For Qt's GTK style to work, you need to either export"
- elog "the following variable into your environment:"
- elog ' GTK2_RC_FILES="$HOME/.gtkrc-2.0"'
- elog "or alternatively install gnome-base/libgnomeui"
- fi
-}