commit:     14c0b005b7f7ca821f846252144f64cf102946ab
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 10 13:22:16 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Tue Apr 10 13:22:16 2018 +0000
URL:        https://gitweb.gentoo.org/proj/kde-sunset.git/commit/?id=14c0b005

sys-auth/polkit-qt: Import from Gentoo ebuild repo

Package-Manager: Portage-2.3.28, Repoman-2.3.9

 sys-auth/polkit-qt/metadata.xml                    |  5 ++
 .../polkit-qt-0.112.0_p20160416-r1.ebuild          | 73 ++++++++++++++++++++++
 2 files changed, 78 insertions(+)

diff --git a/sys-auth/polkit-qt/metadata.xml b/sys-auth/polkit-qt/metadata.xml
new file mode 100644
index 0000000..6f49eba
--- /dev/null
+++ b/sys-auth/polkit-qt/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>

diff --git a/sys-auth/polkit-qt/polkit-qt-0.112.0_p20160416-r1.ebuild 
b/sys-auth/polkit-qt/polkit-qt-0.112.0_p20160416-r1.ebuild
new file mode 100644
index 0000000..3d97e63
--- /dev/null
+++ b/sys-auth/polkit-qt/polkit-qt-0.112.0_p20160416-r1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_P="${P/qt/qt-1}"
+
+inherit cmake-utils multibuild
+
+DESCRIPTION="PolicyKit Qt API wrapper library"
+HOMEPAGE="https://www.kde.org/";
+SRC_URI="https://dev.gentoo.org/~kensington/distfiles/${MY_P}.tar.xz";
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~arm64 ppc ppc64 x86 ~x86-fbsd"
+IUSE="debug examples qt4"
+
+RDEPEND="
+       dev-libs/glib:2
+       dev-qt/qtcore:5
+       dev-qt/qtdbus:5
+       dev-qt/qtgui:5
+       dev-qt/qtwidgets:5
+       >=sys-auth/polkit-0.103
+       examples? ( dev-qt/qtxml:5 )
+       qt4? (
+               dev-qt/qtcore:4[glib]
+               dev-qt/qtdbus:4
+               dev-qt/qtgui:4[glib]
+       )
+"
+DEPEND="${RDEPEND}"
+
+DOCS=( AUTHORS README README.porting TODO )
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+       MULTIBUILD_VARIANTS=( $(usev qt4) qt5 )
+}
+
+src_configure() {
+       myconfigure() {
+               local mycmakeargs=(
+                       -DSYSCONF_INSTALL_DIR="${EPREFIX}"/etc
+                       -DBUILD_EXAMPLES=$(usex examples)
+               )
+
+               if [[ ${MULTIBUILD_VARIANT} = qt4 ]] ; then
+                       mycmakeargs+=( -DUSE_QT4=ON )
+               fi
+               if [[ ${MULTIBUILD_VARIANT} = qt5 ]] ; then
+                       mycmakeargs+=( -DUSE_QT5=ON )
+               fi
+
+               cmake-utils_src_configure
+       }
+
+       multibuild_foreach_variant myconfigure
+}
+
+src_compile() {
+       multibuild_foreach_variant cmake-utils_src_compile
+}
+
+src_test() {
+       multibuild_foreach_variant cmake-utils_src_test
+}
+
+src_install() {
+       multibuild_foreach_variant cmake-utils_src_install
+}

Reply via email to