commit: 00e0db67f29624099ac46fba940246c65a0c9b71 Author: Quentin Retornaz <gentoo <AT> retornaz <DOT> com> AuthorDate: Wed Mar 29 21:48:27 2023 +0000 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> CommitDate: Tue Apr 18 06:03:25 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00e0db67
dev-libs/qhotkey: new package, v1.5.0 A global shortcut/hotkey library for desktop Qt applications. Signed-off-by: Quentin Retornaz <gentoo <AT> retornaz.com> Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> dev-libs/qhotkey/Manifest | 1 + dev-libs/qhotkey/metadata.xml | 18 ++++++++++++++++++ dev-libs/qhotkey/qhotkey-1.5.0.ebuild | 36 +++++++++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+) diff --git a/dev-libs/qhotkey/Manifest b/dev-libs/qhotkey/Manifest new file mode 100644 index 000000000000..627b3a927533 --- /dev/null +++ b/dev-libs/qhotkey/Manifest @@ -0,0 +1 @@ +DIST qhotkey-1.5.0.tar.gz 53083 BLAKE2B fab832d97ea8525b6d2916543b60c4e9ec2af1e0461b402d22367f5a9654b564cc24ee835e2157b1ef9f2dece66b750105b9815ccd7e0db4ae7352b33a5d6750 SHA512 c57135864e976c0881bca320f39ff98ec6973cb226902fe051b844ad29d106593bdf5524335b8f83a62cecac362af95b61964bc5fa6a47abcb7adf668bcc14c1 diff --git a/dev-libs/qhotkey/metadata.xml b/dev-libs/qhotkey/metadata.xml new file mode 100644 index 000000000000..884dd3b49960 --- /dev/null +++ b/dev-libs/qhotkey/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>[email protected]</email> + <name>Quentin Retornaz</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>[email protected]</email> + <name>Proxy Maintainers</name> + </maintainer> + <upstream> + <remote-id type="github">Skycoder42/QHotkey</remote-id> + </upstream> + <use> + <flag name="qt6">Use Qt6 dependencies</flag> + </use> +</pkgmetadata> diff --git a/dev-libs/qhotkey/qhotkey-1.5.0.ebuild b/dev-libs/qhotkey/qhotkey-1.5.0.ebuild new file mode 100644 index 000000000000..5721563f8374 --- /dev/null +++ b/dev-libs/qhotkey/qhotkey-1.5.0.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="A global shortcut/hotkey library for desktop Qt applications" +HOMEPAGE="https://github.com/Skycoder42/QHotkey" + +MY_PN="QHotkey" + +SRC_URI="https://github.com/Skycoder42/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="BSD-with-attribution" +SLOT="0" +KEYWORDS="~amd64" +IUSE="qt6" +S="${WORKDIR}/${MY_PN}-${PV}" + +DEPEND=" + !qt6? ( + dev-qt/qtcore:5 + dev-qt/qtx11extras:5 + ) + qt6? ( + dev-qt/qtbase:6 + ) + x11-libs/libX11 +" + +src_configure() { + local mycmakeargs=( + -DQT_DEFAULT_MAJOR_VERSION:STRING=$(usex qt6 "6" "5") + ) + cmake_src_configure +}
