1 |
* New: Qt6 support |
2 |
* Make KNotifications support optional |
3 |
* xdg-utils -> xdg |
4 |
* EAPI 7 -> 8 |
5 |
* USE-flag to build with debug definitions |
6 |
* Sort out depends |
7 |
|
8 |
Signed-off-by: Anna Vyalkova <cyber+gentoo@×××××.in> |
9 |
--- |
10 |
|
11 |
Tests are such a PITA. Failures need to be reported upstream... |
12 |
|
13 |
x11-misc/copyq/Manifest | 1 + |
14 |
x11-misc/copyq/copyq-6.4.0.ebuild | 120 ++++++++++++++++++++++++++++++ |
15 |
2 files changed, 121 insertions(+) |
16 |
create mode 100644 x11-misc/copyq/copyq-6.4.0.ebuild |
17 |
|
18 |
diff --git a/x11-misc/copyq/Manifest b/x11-misc/copyq/Manifest |
19 |
index db723c3427..f5f5ea2b57 100644 |
20 |
--- a/x11-misc/copyq/Manifest |
21 |
+++ b/x11-misc/copyq/Manifest |
22 |
@@ -1,3 +1,4 @@ |
23 |
DIST copyq-3.13.0.tar.gz 2917941 BLAKE2B e8fc963e6a773ae70ca5a39f9ea55a98de5c5d129b845d0da9ed08ffec65d88ed8b5dd138dea11a33d563b899f0497929ed3c40d418574e50c2a1fbbd7b1a9f6 SHA512 898d4501002202849f0b5302d7315e8c539f8b0f8d5198641b3d3a647839581841e2ef1e2519c690d3cc95f85fdc921c979f2879348184de42767d31e081c307 |
24 |
DIST copyq-4.1.0.tar.gz 2999036 BLAKE2B 1252a66a3bbde3d4435ced9934792ed97066229b23cd5ec21a6187d4f36718d46ac5e16ff19c45afee8715a32686bfe8e47af1bbb37d61a1cacb4e9395dc7bc9 SHA512 538be8b5b60dc054cb8220174461516a4d1e9d6f7c1a03406770f143b83f9a23875b0cf663406e16d83a762b6170587f0e44c386a7d9d552ec6f914b3673206d |
25 |
DIST copyq-5.0.0.tar.gz 3019807 BLAKE2B d39c02867ed4a23eeeec7283f0cbf02a77a3c3fc3ece0a7323d67de9d2b8f03749318d066c23221ccd393923217c7cf357657bdf70802087edae7f4128a63529 SHA512 b6ff28bd7529bf371c7f9d10372eeafd5f291fd1f6bbed5416938973db43e43f0113a8f6ba4619840a7edd95d26ccb9369f8a58d30b740944d3f8510482b1405 |
26 |
+DIST copyq-6.4.0.tar.gz 3316278 BLAKE2B 348fdc23a6d0d53ddcc8e2c32b194cfbf6c4d4d2374b972cb81d945e284c42d1e8f6b9ed30e657e43e69ed0f35661adc7875392b5daf653ce895d76afed7c09c SHA512 a97b4ac541ff73129a6283266fb8857d89d571d042829de5793b94e6423a2978f632b22728ca663bccd540bb90fed51c755b432d1d2545f75c227ea2cb0d9581 |
27 |
diff --git a/x11-misc/copyq/copyq-6.4.0.ebuild b/x11-misc/copyq/copyq-6.4.0.ebuild |
28 |
new file mode 100644 |
29 |
index 0000000000..2103adde05 |
30 |
--- /dev/null |
31 |
+++ b/x11-misc/copyq/copyq-6.4.0.ebuild |
32 |
@@ -0,0 +1,120 @@ |
33 |
+# Copyright 1999-2023 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+inherit cmake edo optfeature virtualx xdg |
39 |
+ |
40 |
+DESCRIPTION="Clipboard manager with advanced features" |
41 |
+HOMEPAGE="https://github.com/hluk/CopyQ" |
42 |
+SRC_URI="https://github.com/hluk/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
43 |
+S="${WORKDIR}/CopyQ-${PV}" |
44 |
+ |
45 |
+LICENSE="GPL-3+" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
48 |
+IUSE="debug kde qt6 test" |
49 |
+ |
50 |
+# Qt6 tests fail with "Failed to stop server" error |
51 |
+RESTRICT=" |
52 |
+ qt6? ( test ) |
53 |
+ !test? ( test ) |
54 |
+" |
55 |
+ |
56 |
+RDEPEND=" |
57 |
+ dev-libs/wayland |
58 |
+ x11-libs/libX11 |
59 |
+ x11-libs/libXfixes |
60 |
+ x11-libs/libXtst |
61 |
+ !qt6? ( |
62 |
+ dev-qt/qtcore:5 |
63 |
+ dev-qt/qtdeclarative:5 |
64 |
+ dev-qt/qtgui:5 |
65 |
+ dev-qt/qtnetwork:5 |
66 |
+ dev-qt/qtsvg:5 |
67 |
+ dev-qt/qtwayland:5 |
68 |
+ dev-qt/qtwidgets:5 |
69 |
+ dev-qt/qtx11extras:5 |
70 |
+ dev-qt/qtxml:5 |
71 |
+ kde? ( kde-frameworks/knotifications:5 ) |
72 |
+ test? ( dev-qt/qttest:5 ) |
73 |
+ ) |
74 |
+ qt6? ( |
75 |
+ dev-qt/qtbase:6=[X,gui,network,test?,widgets,xml(+)] |
76 |
+ dev-qt/qtdeclarative:6 |
77 |
+ dev-qt/qtsvg:6 |
78 |
+ dev-qt/qtwayland:6 |
79 |
+ ) |
80 |
+" |
81 |
+DEPEND="${RDEPEND} |
82 |
+ x11-base/xorg-proto |
83 |
+" |
84 |
+BDEPEND=" |
85 |
+ kde-frameworks/extra-cmake-modules:5 |
86 |
+ !qt6? ( |
87 |
+ dev-qt/linguist-tools:5 |
88 |
+ dev-qt/qtwaylandscanner:5 |
89 |
+ ) |
90 |
+ qt6? ( |
91 |
+ dev-qt/qttools:6[linguist] |
92 |
+ dev-qt/qtwayland:6 |
93 |
+ dev-util/wayland-scanner |
94 |
+ ) |
95 |
+ test? ( |
96 |
+ app-crypt/gnupg |
97 |
+ x11-wm/icewm |
98 |
+ ) |
99 |
+" |
100 |
+ |
101 |
+src_configure() { |
102 |
+ if use debug; then |
103 |
+ # Add debug definitions |
104 |
+ CMAKE_BUILD_TYPE="Debug" |
105 |
+ fi |
106 |
+ |
107 |
+ local mycmakeargs=( |
108 |
+ -DPLUGIN_INSTALL_PREFIX="${EPREFIX}/usr/$(get_libdir)/${PN}/plugins" |
109 |
+ -DWITH_NATIVE_NOTIFICATIONS=$(usex kde) |
110 |
+ -DWITH_QT6=$(usex qt6) |
111 |
+ -DWITH_TESTS=$(usex test) |
112 |
+ ) |
113 |
+ |
114 |
+ cmake_src_configure |
115 |
+} |
116 |
+ |
117 |
+my_src_test() { |
118 |
+ local -x COPYQ_TESTS_RERUN_FAILED=0 |
119 |
+ local -x COPYQ_TESTS_NO_NETWORK=1 |
120 |
+ |
121 |
+ local plug |
122 |
+ local plugins=( |
123 |
+ itemencrypted |
124 |
+ itemfakevim |
125 |
+ itempinned |
126 |
+ #itemsync -- failure in avoidDuplicateItemsAddedFromClipboard() |
127 |
+ itemtags |
128 |
+ ) |
129 |
+ |
130 |
+ ebegin "Starting IceWM" |
131 |
+ icewm & |
132 |
+ sleep 5 |
133 |
+ eend 0 |
134 |
+ |
135 |
+ cd "${BUILD_DIR}" || die |
136 |
+ mkdir -p "${HOME}"/.gnupg || die |
137 |
+ for plug in "${plugins[@]}"; do |
138 |
+ edo ./copyq tests PLUGINS:"${plug}" |
139 |
+ done |
140 |
+ |
141 |
+ # ScriptError: Failed to send key presses |
142 |
+ #edo ./copyq tests |
143 |
+} |
144 |
+ |
145 |
+src_test() { |
146 |
+ virtx my_src_test |
147 |
+} |
148 |
+ |
149 |
+pkg_postinst() { |
150 |
+ xdg_pkg_postinst |
151 |
+ optfeature "encryption support" app-crypt/gnupg |
152 |
+} |
153 |
-- |
154 |
2.39.1 |