summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>2018-06-30 10:17:21 +0200
committerAndreas Sturmlechner <andreas.sturmlechner@gmail.com>2018-06-30 10:45:02 +0200
commit416659860ddcc02d07e9f14f34a657e59c391789 (patch)
treebb2dd41a6c599863d27a3f06b49f58405cab4ea7 /kde-frameworks
parentkde-frameworks/kdelibs: Re-add USE webkit for legacy revdeps (diff)
downloadkde-sunset-416659860ddcc02d07e9f14f34a657e59c391789.tar.gz
kde-sunset-416659860ddcc02d07e9f14f34a657e59c391789.tar.bz2
kde-sunset-416659860ddcc02d07e9f14f34a657e59c391789.zip
kde-frameworks/kdelibs: Re-add USE opengl for legacy revdeps
Diffstat (limited to 'kde-frameworks')
-rw-r--r--kde-frameworks/kdelibs/kdelibs-4.14.37.ebuild12
-rw-r--r--kde-frameworks/kdelibs/metadata.xml1
2 files changed, 9 insertions, 4 deletions
diff --git a/kde-frameworks/kdelibs/kdelibs-4.14.37.ebuild b/kde-frameworks/kdelibs/kdelibs-4.14.37.ebuild
index 1c8fe534..5e9c8ebb 100644
--- a/kde-frameworks/kdelibs/kdelibs-4.14.37.ebuild
+++ b/kde-frameworks/kdelibs/kdelibs-4.14.37.ebuild
@@ -14,10 +14,11 @@ KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux"
LICENSE="LGPL-2.1"
SLOT="4/4.14"
IUSE="cpu_flags_x86_3dnow acl altivec +bzip2 debug doc fam +handbook jpeg2k kerberos
-libressl lzma cpu_flags_x86_mmx nls openexr plasma +policykit qt3support spell
+libressl lzma cpu_flags_x86_mmx nls openexr opengl +plasma +policykit qt3support spell
test cpu_flags_x86_sse cpu_flags_x86_sse2 ssl +udev +udisks +upower webkit zeroconf"
REQUIRED_USE="
+ opengl? ( plasma )
udisks? ( udev )
upower? ( udev )
"
@@ -75,6 +76,7 @@ COMMONDEPEND="
media-libs/openexr:=
media-libs/ilmbase:=
)
+ opengl? ( >=dev-qt/qtopengl-${QT_MINIMAL}:4 )
plasma? (
app-crypt/qca:2[qt4]
>=dev-qt/qtsql-${QT_MINIMAL}:4[qt3support?]
@@ -146,9 +148,11 @@ src_prepare() {
sed -e 's|FILES[[:space:]]applications.menu|FILES applications.menu RENAME kde-4-applications.menu|g' \
-i kded/CMakeLists.txt || die "Sed on CMakeLists.txt for applications.menu failed."
- sed -i -e "/if/ s/QT_QTOPENGL_FOUND/FALSE/" \
- plasma/CMakeLists.txt plasma/tests/CMakeLists.txt includes/CMakeLists.txt \
- || die "failed to sed out QT_QTOPENGL_FOUND"
+ if ! use opengl; then
+ sed -i -e "/if/ s/QT_QTOPENGL_FOUND/FALSE/" \
+ plasma/CMakeLists.txt plasma/tests/CMakeLists.txt includes/CMakeLists.txt \
+ || die "failed to sed out QT_QTOPENGL_FOUND"
+ fi
}
src_configure() {
diff --git a/kde-frameworks/kdelibs/metadata.xml b/kde-frameworks/kdelibs/metadata.xml
index b4bf47b5..d6f2c0e9 100644
--- a/kde-frameworks/kdelibs/metadata.xml
+++ b/kde-frameworks/kdelibs/metadata.xml
@@ -4,6 +4,7 @@
<!-- maintainer-needed -->
<use>
<flag name="legacyssl">Support for some deprecated ciphers. Don't use this flag unless you really need it</flag>
+ <flag name="opengl">Enable OpenGL support for Plasma (GLApplet)</flag>
<flag name="qt3support">Enable kde3support/qt3support for very old applications</flag>
<flag name="utempter">Records user logins. Useful on multi-user systems</flag>
</use>