aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen de Groot <yngwin@gentoo.org>2013-11-03 19:51:07 +0800
committerBen de Groot <yngwin@gentoo.org>2013-11-03 19:51:07 +0800
commite2285b4b4b81cc15182591759c65f6cf2705a423 (patch)
tree2a19d00ea114ec6ba44bebfaf977d54d96c6515f /x11-themes
parent[Qt5] Bump to 5.2.0_beta1, remove 5.1 (diff)
downloadqt-e2285b4b4b81cc15182591759c65f6cf2705a423.tar.gz
qt-e2285b4b4b81cc15182591759c65f6cf2705a423.tar.bz2
qt-e2285b4b4b81cc15182591759c65f6cf2705a423.zip
x11-themes/qtcurve: add live ebuild for new upstream unified qtcurve package
Diffstat (limited to 'x11-themes')
-rw-r--r--x11-themes/qtcurve/metadata.xml10
-rw-r--r--x11-themes/qtcurve/qtcurve-9999.ebuild67
2 files changed, 77 insertions, 0 deletions
diff --git a/x11-themes/qtcurve/metadata.xml b/x11-themes/qtcurve/metadata.xml
new file mode 100644
index 00000000..af38a96e
--- /dev/null
+++ b/x11-themes/qtcurve/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>qt</herd>
+ <use>
+ <flag name="kde">Enable KDE4 support. This adds a QtCurve configuration
+ module to KDE's SystemSettings</flag>
+ <flag name="windeco">Enable window decoration for KWin</flag>
+ </use>
+</pkgmetadata>
diff --git a/x11-themes/qtcurve/qtcurve-9999.ebuild b/x11-themes/qtcurve/qtcurve-9999.ebuild
new file mode 100644
index 00000000..f0e0c161
--- /dev/null
+++ b/x11-themes/qtcurve/qtcurve-9999.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+KDE_REQUIRED="optional"
+inherit cmake-utils kde4-base
+
+DESCRIPTION="A set of widget styles for Qt and GTK2"
+HOMEPAGE="https://github.com/QtCurve/qtcurve-qt4"
+
+if [[ ${PV} == *9999* ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/QtCurve/qtcurve.git"
+ KEYWORDS=""
+else
+ SRC_URI="https://github.com/QtCurve/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="+X gtk kde nls +qt4 qt5 windeco"
+REQUIRED_USE="gtk? ( X )
+ windeco? ( kde X )
+ || ( gtk qt4 qt5 )"
+
+RDEPEND="X? ( x11-libs/libxcb
+ x11-libs/libX11 )
+ gtk? ( x11-libs/gtk+:2 )
+ qt4? ( dev-qt/qtdbus:4
+ dev-qt/qtgui:4
+ dev-qt/qtsvg:4
+ )
+ qt5? ( dev-qt/qtgui:5
+ dev-qt/qtsvg:5
+ dev-qt/qtwidgets:5
+ X? ( dev-qt/qtdbus:5
+ dev-qt/qtx11extras:5 )
+ )
+ kde? ( $(add_kdebase_dep systemsettings)
+ windeco? ( $(add_kdebase_dep kwin) )
+ )
+ !x11-themes/gtk-engines-qtcurve"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+DOCS=( AUTHORS ChangeLog.md README.md TODO.md )
+
+pkg_setup() {
+ use kde && kde4-base_pkg_setup
+}
+
+src_configure() {
+ local mycmakeargs
+ mycmakeargs=(
+ $(cmake-utils_use_enable gtk GTK2)
+ $(cmake-utils_use_enable qt4 QT4)
+ $(cmake-utils_use_enable qt5 QT5)
+ $(cmake-utils_use X QTC_ENABLE_X11 )
+ $(cmake-utils_use kde QTC_QT4_ENABLE_KDE )
+ $(cmake-utils_use windeco QTC_QT4_ENABLE_KWIN )
+ $(cmake-utils_use nls QTC_INSTALL_PO )
+ )
+ cmake-utils_src_configure
+}