Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-themes/adwaita-qt/
Date: Fri, 21 Jul 2017 08:47:01
Message-Id: 1500626800.972483cac6332bf7b3103ef8ce55003011c9b970.pacho@gentoo
1 commit: 972483cac6332bf7b3103ef8ce55003011c9b970
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 21 08:41:41 2017 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 21 08:46:40 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=972483ca
7
8 x11-themes/adwaita-qt: Package adwaita-qt themes for better integration with Gnome
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 x11-themes/adwaita-qt/Manifest | 1 +
13 x11-themes/adwaita-qt/adwaita-qt-1.0.ebuild | 56 +++++++++++++++++++++++++++++
14 x11-themes/adwaita-qt/metadata.xml | 7 ++++
15 3 files changed, 64 insertions(+)
16
17 diff --git a/x11-themes/adwaita-qt/Manifest b/x11-themes/adwaita-qt/Manifest
18 new file mode 100644
19 index 00000000000..1e60bdfd145
20 --- /dev/null
21 +++ b/x11-themes/adwaita-qt/Manifest
22 @@ -0,0 +1 @@
23 +DIST adwaita-qt-1.0.tar.gz 565625 SHA256 c2c0c71b131d0e3e58ee108570796cf70b35dccaa64ce17915d4486de5e91513 SHA512 35993a9f99f9d41812d448d679a9e7a8cb15e8ed9b23a2ea9a33c61c1bfc98a226f8bea2fce3ff0dab29420ff10c4e4a4a800c9b989475cc66c4042257fe154c WHIRLPOOL a45d838d2cf39237065ed8f7b650678c69ec80683b6f1e215d2252fb3e15dc16d5e1c5ed1ff2bd9c3bed2e37abf96f068a54f458336d39c4dffe049306c78993
24
25 diff --git a/x11-themes/adwaita-qt/adwaita-qt-1.0.ebuild b/x11-themes/adwaita-qt/adwaita-qt-1.0.ebuild
26 new file mode 100644
27 index 00000000000..7b1729cb1b8
28 --- /dev/null
29 +++ b/x11-themes/adwaita-qt/adwaita-qt-1.0.ebuild
30 @@ -0,0 +1,56 @@
31 +# Copyright 1999-2017 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +inherit cmake-utils
36 +
37 +DESCRIPTION="A style to bend Qt applications to look like they belong into GNOME Shell"
38 +HOMEPAGE="https://github.com/MartinBriza/adwaita-qt"
39 +SRC_URI="https://github.com/MartinBriza/${PN}/archive/${PV}/${P}.tar.gz"
40 +
41 +KEYWORDS="~amd64 ~x86"
42 +LICENSE="GPL-2 LGPL-2"
43 +SLOT="0"
44 +
45 +IUSE="gnome qt4 +qt5"
46 +REQUIRED_USE="|| ( qt4 qt5 )"
47 +
48 +RDEPEND="
49 + gnome? ( x11-themes/QGnomePlatform )
50 + qt4? (
51 + dev-qt/qtgui:4
52 + dev-qt/qtdbus:4
53 + )
54 + qt5? (
55 + dev-qt/qtwidgets:5
56 + dev-qt/qtdbus:5
57 + )
58 +"
59 +DEPEND="${RDEPEND}"
60 +
61 +src_configure() {
62 + if use qt4; then
63 + BUILD_DIR="${WORKDIR}/${PN}_qt4"
64 + local mycmakeargs=( -DUSE_QT4=ON )
65 + cmake-utils_src_configure
66 + fi
67 + if use qt5; then
68 + BUILD_DIR="${WORKDIR}/${PN}_qt5"
69 + local mycmakeargs=( -DUSE_QT4=OFF )
70 + cmake-utils_src_configure
71 + fi
72 +}
73 +
74 +src_compile() {
75 + local _d
76 + for _d in "${WORKDIR}"/${PN}_qt*; do
77 + cmake-utils_src_compile -C "${_d}"
78 + done
79 +}
80 +
81 +src_install() {
82 + local _d
83 + for _d in "${WORKDIR}"/${PN}_qt*; do
84 + cmake-utils_src_install -C "${_d}"
85 + done
86 +}
87
88 diff --git a/x11-themes/adwaita-qt/metadata.xml b/x11-themes/adwaita-qt/metadata.xml
89 new file mode 100644
90 index 00000000000..020b40648ee
91 --- /dev/null
92 +++ b/x11-themes/adwaita-qt/metadata.xml
93 @@ -0,0 +1,7 @@
94 +<?xml version="1.0" encoding="UTF-8"?>
95 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
96 +<pkgmetadata>
97 + <maintainer type="person">
98 + <email>pacho@g.o</email>
99 + </maintainer>
100 +</pkgmetadata>