diff options
author | Michael Palimaka <kensington@gentoo.org> | 2016-07-21 01:46:37 +1000 |
---|---|---|
committer | Michael Palimaka <kensington@gentoo.org> | 2016-07-21 01:46:47 +1000 |
commit | 2c3489cf81d84fc76c835c18727dacafd0fd6214 (patch) | |
tree | 35953282bbd84a880194b417f470f7d7c2c04968 /dev-libs/libdbusmenu-qt | |
parent | dev-ml/ocplib-endian: bump to 1.0 (diff) | |
download | gentoo-2c3489cf81d84fc76c835c18727dacafd0fd6214.tar.gz gentoo-2c3489cf81d84fc76c835c18727dacafd0fd6214.tar.bz2 gentoo-2c3489cf81d84fc76c835c18727dacafd0fd6214.zip |
dev-libs/libdbusmenu-qt: version bump
Gentoo-bug: 589116
Package-Manager: portage-2.3.0
Diffstat (limited to 'dev-libs/libdbusmenu-qt')
-rw-r--r-- | dev-libs/libdbusmenu-qt/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/libdbusmenu-qt/libdbusmenu-qt-0.9.3_pre20160218.ebuild | 129 |
2 files changed, 130 insertions, 0 deletions
diff --git a/dev-libs/libdbusmenu-qt/Manifest b/dev-libs/libdbusmenu-qt/Manifest index bbaa08939df4..357b4dfebd02 100644 --- a/dev-libs/libdbusmenu-qt/Manifest +++ b/dev-libs/libdbusmenu-qt/Manifest @@ -1 +1,2 @@ DIST libdbusmenu-qt_0.9.3+14.10.20140619.orig.tar.gz 46641 SHA256 e531b29388317f48e22c652c7111e9c7750aa7d429a72742c49a1c8af1e61968 SHA512 791c1904a1c960a94bba2c624469d8a9c1c76e14fc40917feb5aeb8c55acc6c68a0b03509037440f35ad8416710cbe705c1b117b23a9a684b6ff0d919d1d5e18 WHIRLPOOL b76294a4c9cdf943594f685aeae13e12db8d6f0b85f4a86031023c15072cdae619ff70c95e8db40eaeb9acb8d234e48e45ca79899c835b068387df040f688160 +DIST libdbusmenu-qt_0.9.3+16.04.20160218.orig.tar.gz 46438 SHA256 a8e6358a31c44ccdf1bfc46c95a77a6bfc7fc1f536aadb913ed4f4405c570cf6 SHA512 dfaba59cedd320e6a3b5a9c0a5e13fb9e0952224e39cdd6ee3b32b03d95ac850a533e2a73835a7c0ead93b2283b9c235472bacb84e3d761ebe9e9398345314a9 WHIRLPOOL 7832fc56c09e232415befdd032db9498499e722a727215d27796db8cfff104ef7e6b11c8534d42496e4be7dcaec33116d7b2cabe443562a5a364fe5a6dc59a3e diff --git a/dev-libs/libdbusmenu-qt/libdbusmenu-qt-0.9.3_pre20160218.ebuild b/dev-libs/libdbusmenu-qt/libdbusmenu-qt-0.9.3_pre20160218.ebuild new file mode 100644 index 000000000000..1a2aea3778bd --- /dev/null +++ b/dev-libs/libdbusmenu-qt/libdbusmenu-qt-0.9.3_pre20160218.ebuild @@ -0,0 +1,129 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +EBZR_REPO_URI="lp:libdbusmenu-qt" + +[[ ${PV} == 9999* ]] && inherit bzr +inherit cmake-multilib multibuild multilib virtualx cmake-multilib + +DESCRIPTION="A library providing Qt implementation of DBusMenu specification" +HOMEPAGE="https://launchpad.net/libdbusmenu-qt/" +if [[ ${PV} != 9999* ]] ; then + MY_PV=${PV/_pre/+16.04.} + SRC_URI="https://launchpad.net/ubuntu/+archive/primary/+files/${PN}_${MY_PV}.orig.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" +fi + +LICENSE="LGPL-2" +SLOT="0" +IUSE="debug +qt4 qt5" + +REQUIRED_USE="|| ( qt4 qt5 )" + +RDEPEND=" + qt4? ( + >=dev-qt/qtcore-4.8.6:4[${MULTILIB_USEDEP}] + >=dev-qt/qtdbus-4.8.6:4[${MULTILIB_USEDEP}] + >=dev-qt/qtgui-4.8.6:4[${MULTILIB_USEDEP}] + ) + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtdbus:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + ) +" +DEPEND="${RDEPEND} + test? ( + qt4? ( >=dev-qt/qttest-4.8.6:4[${MULTILIB_USEDEP}] ) + qt5? ( dev-qt/qttest:5 ) + ) +" + +[[ ${PV} == 9999* ]] || S=${WORKDIR}/${PN}-${MY_PV} + +DOCS=( NEWS README ) + +# tests fail due to missing connection to dbus +RESTRICT="test" + +pkg_setup() { + MULTIBUILD_VARIANTS=( $(usex qt4 4) $(usex qt5 5) ) +} + +src_prepare() { + [[ ${PV} == 9999* ]] && bzr_src_prepare + cmake-utils_src_prepare + + cmake_comment_add_subdirectory tools + use test || cmake_comment_add_subdirectory tests +} + +multilib_src_configure() { + local mycmakeargs=( + -DWITH_DOC=OFF + -DUSE_QT${QT_MULTIBUILD_VARIANT}=ON + -DQT_QMAKE_EXECUTABLE="/usr/$(get_libdir)/qt${QT_MULTIBUILD_VARIANT}/bin/qmake" + ) + cmake-utils_src_configure +} + +src_configure() { + myconfigure() { + local QT_MULTIBUILD_VARIANT=${MULTIBUILD_VARIANT} + if [[ ${MULTIBUILD_VARIANT} = 4 ]] ; then + cmake-multilib_src_configure + elif [[ ${MULTIBUILD_VARIANT} = 5 ]] ; then + multilib_src_configure + fi + } + + multibuild_foreach_variant myconfigure +} + +src_compile() { + mycompile() { + if [[ ${MULTIBUILD_VARIANT} = 4 ]] ; then + cmake-multilib_src_compile + elif [[ ${MULTIBUILD_VARIANT} = 5 ]] ; then + cmake-utils_src_compile + fi + } + + multibuild_foreach_variant mycompile +} + +src_install() { + myinstall() { + if [[ ${MULTIBUILD_VARIANT} = 4 ]] ; then + cmake-multilib_src_install + elif [[ ${MULTIBUILD_VARIANT} = 5 ]] ; then + cmake-utils_src_install + fi + } + + multibuild_foreach_variant myinstall +} + +src_test() { + mytest() { + if [[ ${MULTIBUILD_VARIANT} = 4 ]] ; then + cmake-multilib_src_test + elif [[ ${MULTIBUILD_VARIANT} = 5 ]] ; then + multilib_src_test + fi + } + + multibuild_foreach_variant mytest +} + +multilib_src_test() { + local builddir=${BUILD_DIR} + + BUILD_DIR=${BUILD_DIR}/tests virtx cmake-utils_src_test + + BUILD_DIR=${builddir} +} |