From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 656CE158042 for ; Fri, 15 Nov 2024 13:46:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 53342E0918; Fri, 15 Nov 2024 13:46:45 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3D63FE088F for ; Fri, 15 Nov 2024 13:46:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3A86B33BE3B for ; Fri, 15 Nov 2024 13:46:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7AC00D81 for ; Fri, 15 Nov 2024 13:46:42 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1731678389.8e8f06ff0b223e5188e05153436597c25d4edeba.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/copyq/ X-VCS-Repository: repo/gentoo X-VCS-Files: x11-misc/copyq/Manifest x11-misc/copyq/copyq-9.1.0.ebuild X-VCS-Directories: x11-misc/copyq/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 8e8f06ff0b223e5188e05153436597c25d4edeba X-VCS-Branch: master Date: Fri, 15 Nov 2024 13:46:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7b0d705f-aa25-4bed-83a2-d46f4bf62865 X-Archives-Hash: 0392ba6b044c073220ddecba64d3d80d commit: 8e8f06ff0b223e5188e05153436597c25d4edeba Author: Andreas Sturmlechner gentoo org> AuthorDate: Fri Nov 15 12:40:58 2024 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Fri Nov 15 13:46:29 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e8f06ff x11-misc/copyq: add 9.1.0 Closes: https://bugs.gentoo.org/934459 Signed-off-by: Andreas Sturmlechner gentoo.org> x11-misc/copyq/Manifest | 1 + x11-misc/copyq/copyq-9.1.0.ebuild | 100 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 101 insertions(+) diff --git a/x11-misc/copyq/Manifest b/x11-misc/copyq/Manifest index c9b144ae31ea..95aaddd98bc5 100644 --- a/x11-misc/copyq/Manifest +++ b/x11-misc/copyq/Manifest @@ -1 +1,2 @@ DIST copyq-7.1.0.tar.gz 3351093 BLAKE2B 758271f6bb54760372b8b5ab84de7c91af874bd72a22c8c22d338705869eab5500fde90808b4bf1288f8bdbad11163283637b81d85c09ccf0d734286dee605b6 SHA512 4320095ab75c361cc3d553c7817951eb6e74d47223f62bf6c1722e0f0b0d3ff59a1762354cf46fe0de064d516d60a467bff9ad9143b12016fc3f9e62139d3909 +DIST copyq-9.1.0.tar.gz 3417507 BLAKE2B 582b532cdc0c01976fa52b01b3656902fc392ce5785145230efe7f42da8920553161e8bd44b1fcbd9ba2f7d4a8169ac017474f1dd8a34874aec1919e442326a6 SHA512 d87964b876de28be860a17490d9816f5224a25565f84916ee4ca39f83d2e7c5d57dafdf9f54667c43fd93d232e1e1f1f32064e6435aad6abab086398e6ae246d diff --git a/x11-misc/copyq/copyq-9.1.0.ebuild b/x11-misc/copyq/copyq-9.1.0.ebuild new file mode 100644 index 000000000000..e715321c54ab --- /dev/null +++ b/x11-misc/copyq/copyq-9.1.0.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake optfeature virtualx xdg + +DESCRIPTION="Clipboard manager with advanced features" +HOMEPAGE="https://hluk.github.io/CopyQ/ https://github.com/hluk/CopyQ/" +SRC_URI="https://github.com/hluk/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/CopyQ-${PV}" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux" +IUSE="notification test X" + +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/wayland + dev-qt/qtbase:6[gui,network,widgets,xml(+)] + dev-qt/qtdeclarative:6 + dev-qt/qtsvg:6 + dev-qt/qtwayland:6 + X? ( + dev-qt/qtbase:6=[X] + x11-libs/libX11 + x11-libs/libXfixes + x11-libs/libXtst + ) + notification? ( + kde-frameworks/knotifications:6 + kde-frameworks/kstatusnotifieritem:6 + ) +" +DEPEND="${RDEPEND} + X? ( x11-base/xorg-proto ) +" +BDEPEND=" + kde-frameworks/extra-cmake-modules:0 + dev-qt/qttools:6[linguist] + dev-util/wayland-scanner + test? ( + app-crypt/gnupg + x11-wm/openbox + ) +" + +# used in tests +PATCHES=( "${FILESDIR}/${PN}-7.1.0-support-plugin-dir-envvar-r1.patch" ) + +src_configure() { + local mycmakeargs=( + -DWITH_QT6=ON + -DPLUGIN_INSTALL_PREFIX="${EPREFIX}/usr/$(get_libdir)/${PN}/plugins" + -DWITH_NATIVE_NOTIFICATIONS=$(usex notification) + -DWITH_TESTS=$(usex test) + -DWITH_X11=$(usex X) + ) + + cmake_src_configure +} + +my_src_test() { + # Don't rerun tests and more logs + local -x COPYQ_TESTS_RERUN_FAILED=0 + local -x COPYQ_LOG_LEVEL=DEBUG + + # Skip test that require network + local -x COPYQ_TESTS_NO_NETWORK=1 + + # Less noise from trying the wayland plugin + local -x QT_QPA_PLATFORM=xcb + + # Make sure copyq doesn't use system installed plugins which may be incompatible. + local -x COPYQ_PLUGIN_DIR="${BUILD_DIR}/plugins" + + # In case the users current system confuses the notification integration + unset KDE_FULL_SESSION XDG_CURRENT_DESKTOP + + mkdir "${HOME}"/.gnupg || die + + ebegin "Starting Openbox" + openbox & # upstream uses Openbox and it doesn't fail like IceWM + sleep 5 + eend 0 + + "${BUILD_DIR}"/copyq tests +} + +src_test() { + # local -x QT_QPA_PLATFORM=offscreen # TODO: make it work + virtx my_src_test +} + +pkg_postinst() { + xdg_pkg_postinst + optfeature "encryption support" app-crypt/gnupg +}