summaryrefslogtreecommitdiff
path: root/dev-libs/libdbusmenu-qt5/libdbusmenu-qt5-0.9.3_pre20160218-r3.ebuild
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-08-02 07:30:13 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-08-02 07:30:13 +0100
commit7114e7c39ed32ed3c7cfb3c34ac0f82c8de70d03 (patch)
tree1242f7db9998a95d1fe5be111dfc0ecf24a3b476 /dev-libs/libdbusmenu-qt5/libdbusmenu-qt5-0.9.3_pre20160218-r3.ebuild
parent26dd56909bc15450b376222e0b4ab02ae3b07524 (diff)
dev-libs/libdbusmenu-qt : EAPI bump
Diffstat (limited to 'dev-libs/libdbusmenu-qt5/libdbusmenu-qt5-0.9.3_pre20160218-r3.ebuild')
-rw-r--r--dev-libs/libdbusmenu-qt5/libdbusmenu-qt5-0.9.3_pre20160218-r3.ebuild64
1 files changed, 64 insertions, 0 deletions
diff --git a/dev-libs/libdbusmenu-qt5/libdbusmenu-qt5-0.9.3_pre20160218-r3.ebuild b/dev-libs/libdbusmenu-qt5/libdbusmenu-qt5-0.9.3_pre20160218-r3.ebuild
new file mode 100644
index 00000000..ec1c37d2
--- /dev/null
+++ b/dev-libs/libdbusmenu-qt5/libdbusmenu-qt5-0.9.3_pre20160218-r3.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+MY_PN="${PN/qt5/qt}"
+MY_PV=${PV/_pre/+16.04.}
+
+EBZR_REPO_URI="lp:libdbusmenu-qt"
+
+[[ ${PV} == 9999* ]] && inherit bzr
+inherit cmake virtualx
+
+DESCRIPTION="Library providing Qt implementation of DBusMenu specification"
+HOMEPAGE="https://launchpad.net/libdbusmenu-qt/"
+if [[ ${PV} != 9999* ]] ; then
+ SRC_URI="https://launchpad.net/ubuntu/+archive/primary/+files/${MY_PN}_${MY_PV}.orig.tar.gz"
+ KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux"
+fi
+
+LICENSE="LGPL-2"
+SLOT="0"
+IUSE="debug"
+
+RDEPEND="
+ dev-qt/qtcore:5
+ dev-qt/qtdbus:5
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+"
+DEPEND="${RDEPEND}
+ test? ( dev-qt/qttest:5 )
+"
+
+[[ ${PV} == 9999* ]] || S=${WORKDIR}/${PN}-${MY_PV}
+
+# tests fail due to missing connection to dbus
+RESTRICT="test"
+
+S=${WORKDIR}/${MY_PN}-${MY_PV}
+
+src_prepare() {
+ [[ ${PV} == 9999* ]] && bzr_src_prepare
+ cmake_src_prepare
+
+ cmake_comment_add_subdirectory tools
+ use test || cmake_comment_add_subdirectory tests
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DWITH_DOC=OFF
+ -DUSE_QT5=ON
+ )
+ cmake_src_configure
+}
+
+src_test() {
+ local builddir=${BUILD_DIR}
+
+ BUILD_DIR=${BUILD_DIR}/tests virtx cmake_src_test
+
+ BUILD_DIR=${builddir}
+}