From: "Michael Palimaka" <kensington@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/kde:master commit in: kde-plasma/kde-gtk-config/, kde-plasma/kde-gtk-config/files/
Date: Tue, 6 Oct 2015 10:58:32 +0000 (UTC) [thread overview]
Message-ID: <1444129098.17da4ae478249970aa074219d754d45925cad6a1.kensington@gentoo> (raw)
commit: 17da4ae478249970aa074219d754d45925cad6a1
Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
AuthorDate: Fri Oct 2 22:22:55 2015 +0000
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Tue Oct 6 10:58:18 2015 +0000
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=17da4ae4
kde-plasma/kde-gtk-config: Make gtk+3 optional
gtk3proxies depends on a ui file from gtkproxies, so gtk+2 is kept unconditionally.
Package-Manager: portage-2.2.20.1
.../files/kde-gtk-config-5.4.2-gtk3-optional.patch | 19 +++++++++++++++++++
kde-plasma/kde-gtk-config/kde-gtk-config-5.4.2.ebuild | 6 +++++-
.../kde-gtk-config/kde-gtk-config-5.4.49.9999.ebuild | 6 +++++-
kde-plasma/kde-gtk-config/kde-gtk-config-9999.ebuild | 6 +++++-
kde-plasma/kde-gtk-config/metadata.xml | 3 +++
5 files changed, 37 insertions(+), 3 deletions(-)
diff --git a/kde-plasma/kde-gtk-config/files/kde-gtk-config-5.4.2-gtk3-optional.patch b/kde-plasma/kde-gtk-config/files/kde-gtk-config-5.4.2-gtk3-optional.patch
new file mode 100644
index 0000000..e1e8de2
--- /dev/null
+++ b/kde-plasma/kde-gtk-config/files/kde-gtk-config-5.4.2-gtk3-optional.patch
@@ -0,0 +1,19 @@
+--- a/CMakeLists.txt 2015-10-02 22:36:55.186480671 +0200
++++ b/CMakeLists.txt 2015-10-02 22:38:40.048169719 +0200
+@@ -17,6 +17,7 @@
+ include(ECMSetupVersion)
+ include(ECMInstallIcons)
+ include(ECMMarkAsTest)
++include(ECMOptionalAddSubdirectory)
+ include(GenerateExportHeader)
+ include(FeatureSummary)
+ include(KDEInstallDirs)
+@@ -62,7 +63,7 @@
+ install(FILES kde-gtk-config.desktop DESTINATION ${SERVICES_INSTALL_DIR})
+
+ add_subdirectory(gtkproxies)
+-add_subdirectory(gtk3proxies)
++ecm_optional_add_subdirectory(gtk3proxies)
+ add_subdirectory(icons)
+ add_subdirectory(tests)
+
diff --git a/kde-plasma/kde-gtk-config/kde-gtk-config-5.4.2.ebuild b/kde-plasma/kde-gtk-config/kde-gtk-config-5.4.2.ebuild
index 6fc2840..fc00913 100644
--- a/kde-plasma/kde-gtk-config/kde-gtk-config-5.4.2.ebuild
+++ b/kde-plasma/kde-gtk-config/kde-gtk-config-5.4.2.ebuild
@@ -11,6 +11,7 @@ DESCRIPTION="KDE systemsettings kcm to set GTK application look&feel"
HOMEPAGE="https://projects.kde.org/kde-gtk-config"
LICENSE="GPL-3"
KEYWORDS="~amd64 ~x86"
+IUSE="+gtk3"
DEPEND="
$(add_frameworks_dep karchive)
@@ -26,7 +27,7 @@ DEPEND="
dev-qt/qtgui:5
dev-qt/qtwidgets:5
x11-libs/gtk+:2
- x11-libs/gtk+:3
+ gtk3? ( x11-libs/gtk+:3 )
"
RDEPEND="${DEPEND}
$(add_plasma_dep kde-cli-tools)
@@ -34,9 +35,12 @@ RDEPEND="${DEPEND}
!kde-misc/kde-gtk-config
"
+PATCHES=( "${FILESDIR}/${PN}-5.4.2-gtk3-optional.patch" )
+
src_configure() {
local mycmakeargs=(
-DDATA_INSTALL_DIR="${EPREFIX}/usr/share"
+ -DBUILD_gtk3proxies=$(usex gtk3)
)
kde5_src_configure
diff --git a/kde-plasma/kde-gtk-config/kde-gtk-config-5.4.49.9999.ebuild b/kde-plasma/kde-gtk-config/kde-gtk-config-5.4.49.9999.ebuild
index 329048d..365514e 100644
--- a/kde-plasma/kde-gtk-config/kde-gtk-config-5.4.49.9999.ebuild
+++ b/kde-plasma/kde-gtk-config/kde-gtk-config-5.4.49.9999.ebuild
@@ -11,6 +11,7 @@ DESCRIPTION="KDE systemsettings kcm to set GTK application look&feel"
HOMEPAGE="https://projects.kde.org/kde-gtk-config"
LICENSE="GPL-3"
KEYWORDS=""
+IUSE="+gtk3"
DEPEND="
$(add_frameworks_dep karchive)
@@ -26,7 +27,7 @@ DEPEND="
dev-qt/qtgui:5
dev-qt/qtwidgets:5
x11-libs/gtk+:2
- x11-libs/gtk+:3
+ gtk3? ( x11-libs/gtk+:3 )
"
RDEPEND="${DEPEND}
$(add_plasma_dep kde-cli-tools)
@@ -34,9 +35,12 @@ RDEPEND="${DEPEND}
!kde-misc/kde-gtk-config
"
+PATCHES=( "${FILESDIR}/${PN}-5.4.2-gtk3-optional.patch" )
+
src_configure() {
local mycmakeargs=(
-DDATA_INSTALL_DIR="${EPREFIX}/usr/share"
+ -DBUILD_gtk3proxies=$(usex gtk3)
)
kde5_src_configure
diff --git a/kde-plasma/kde-gtk-config/kde-gtk-config-9999.ebuild b/kde-plasma/kde-gtk-config/kde-gtk-config-9999.ebuild
index 329048d..365514e 100644
--- a/kde-plasma/kde-gtk-config/kde-gtk-config-9999.ebuild
+++ b/kde-plasma/kde-gtk-config/kde-gtk-config-9999.ebuild
@@ -11,6 +11,7 @@ DESCRIPTION="KDE systemsettings kcm to set GTK application look&feel"
HOMEPAGE="https://projects.kde.org/kde-gtk-config"
LICENSE="GPL-3"
KEYWORDS=""
+IUSE="+gtk3"
DEPEND="
$(add_frameworks_dep karchive)
@@ -26,7 +27,7 @@ DEPEND="
dev-qt/qtgui:5
dev-qt/qtwidgets:5
x11-libs/gtk+:2
- x11-libs/gtk+:3
+ gtk3? ( x11-libs/gtk+:3 )
"
RDEPEND="${DEPEND}
$(add_plasma_dep kde-cli-tools)
@@ -34,9 +35,12 @@ RDEPEND="${DEPEND}
!kde-misc/kde-gtk-config
"
+PATCHES=( "${FILESDIR}/${PN}-5.4.2-gtk3-optional.patch" )
+
src_configure() {
local mycmakeargs=(
-DDATA_INSTALL_DIR="${EPREFIX}/usr/share"
+ -DBUILD_gtk3proxies=$(usex gtk3)
)
kde5_src_configure
diff --git a/kde-plasma/kde-gtk-config/metadata.xml b/kde-plasma/kde-gtk-config/metadata.xml
index a23f444..b277fb6 100644
--- a/kde-plasma/kde-gtk-config/metadata.xml
+++ b/kde-plasma/kde-gtk-config/metadata.xml
@@ -2,4 +2,7 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>kde</herd>
+ <use>
+ <flag name="gtk3">Add support for gtk+3-based applications.</flag>
+ </use>
</pkgmetadata>
next reply other threads:[~2015-10-06 10:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-06 10:58 Michael Palimaka [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-09-14 14:00 [gentoo-commits] proj/kde:master commit in: kde-plasma/kde-gtk-config/, kde-plasma/kde-gtk-config/files/ Michael Palimaka
2021-08-26 16:46 Andreas Sturmlechner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1444129098.17da4ae478249970aa074219d754d45925cad6a1.kensington@gentoo \
--to=kensington@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox