summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2017-07-09 21:45:52 +1000
committerMichael Palimaka <kensington@gentoo.org>2017-07-09 21:46:07 +1000
commit39d55767f9fad76d4cb295638caa5a0f718f5f35 (patch)
tree6e5125d4bc3602c430286fee29afab655cc76a74 /sys-auth
parentkde-frameworks/kfilemetadata: Tests need USE=taglib (diff)
downloadgentoo-39d55767f9fad76d4cb295638caa5a0f718f5f35.tar.gz
gentoo-39d55767f9fad76d4cb295638caa5a0f718f5f35.tar.bz2
gentoo-39d55767f9fad76d4cb295638caa5a0f718f5f35.zip
sys-auth/polkit-qt: add snapshot
Gentoo-bug: 589780 Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'sys-auth')
-rw-r--r--sys-auth/polkit-qt/Manifest1
-rw-r--r--sys-auth/polkit-qt/polkit-qt-0.112.0_p20160416.ebuild79
2 files changed, 80 insertions, 0 deletions
diff --git a/sys-auth/polkit-qt/Manifest b/sys-auth/polkit-qt/Manifest
index 739c8b562c8a..3994e981e4a9 100644
--- a/sys-auth/polkit-qt/Manifest
+++ b/sys-auth/polkit-qt/Manifest
@@ -1 +1,2 @@
DIST polkit-qt-1-0.112.0.tar.bz2 67725 SHA256 67fb03bf6ca3e0bdbd98d374dfb5b1651a07d17ae6c23e11a81b4b084447e7c6 SHA512 4cb17389b54a09c53052f6d72aa5cbfe09ccb19f7fd4edf8b43ccd4751f5e88609c5f89777f4af92167d32eb2ce1e78537cea7bcfb60a90072d1fe02d6a59b50 WHIRLPOOL cf77234386646a145c807888ba361dad45f50e8857d8bea7d507b966fd52172b870ffa16c8c5df15296419ee04778614161fff9466d31af44661730916435f73
+DIST polkit-qt-1-0.112.0_p20160416.tar.xz 64540 SHA256 3b334a088e9cfe903bded0af745f0410b45024352936b5a415a7df21115bf646 SHA512 90677af780a2bbcb33b6a54702ba96f965eb8561f2636af7aa0146f9b2450f9e89f67e022ffa99742afe50e3d1f570eabfad686e9e08e629a1e662d9f5abf2ea WHIRLPOOL 4421c548695a3ccef9b32653fc1c77b38c6898d10bebb69fd261d4088d6d9d5561aa9f0d2636b8ad7c6cd1f0360f3758fb765f486a5c95709ae9e0c4a688d123
diff --git a/sys-auth/polkit-qt/polkit-qt-0.112.0_p20160416.ebuild b/sys-auth/polkit-qt/polkit-qt-0.112.0_p20160416.ebuild
new file mode 100644
index 000000000000..30f4a1d5800c
--- /dev/null
+++ b/sys-auth/polkit-qt/polkit-qt-0.112.0_p20160416.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2017 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 Qt4 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 +qt5"
+
+REQUIRED_USE="|| ( qt4 qt5 )"
+
+RDEPEND="
+ dev-libs/glib:2
+ >=sys-auth/polkit-0.103
+ qt4? (
+ dev-qt/qtcore:4[glib]
+ dev-qt/qtdbus:4
+ dev-qt/qtgui:4[glib]
+ )
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtdbus:5
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+ examples? ( dev-qt/qtxml:5 )
+ )
+"
+DEPEND="${RDEPEND}"
+
+DOCS=( AUTHORS README README.porting TODO )
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ MULTIBUILD_VARIANTS=()
+ use qt4 && MULTIBUILD_VARIANTS+=( qt4 )
+ use qt5 && MULTIBUILD_VARIANTS+=( 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
+}