Skip to content

Commit

Permalink
deskutils/copyq: Fix wayland detection and remove qt5 runtime deps fr…
Browse files Browse the repository at this point in the history
…om qt6 flavor

PR:		272635
  • Loading branch information
BSDKaffee authored and nunotexbsd committed Jul 21, 2023
1 parent 54aa044 commit 8cd4394
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
18 changes: 10 additions & 8 deletions deskutils/copyq/Makefile
@@ -1,12 +1,13 @@
PORTNAME= copyq
DISTVERSIONPREFIX= v
DISTVERSION= 7.0.0
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= deskutils
PKGNAMESUFFIX= -${FLAVOR}

PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES+= 79d33dd337deeb357ce92c3d1e2b5b56b6f2c97d.patch:-p1 # Fix build with Qt 6.5.x
PATCHFILES+= 8ae296bed45a7679712aff0cb2e2d0508330ad37.patch:-p1 # Fix cmake warnings

MAINTAINER= eduardo@FreeBSD.org
COMMENT= Qt${FLAVOR:S/qt//} based clipboard manager
Expand All @@ -18,26 +19,27 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libwayland-client.so:graphics/wayland \
libxkbcommon.so:x11/libxkbcommon

FLAVORS= qt5 qt6
FLAVOR?= qt5

FLAVORS= qt5 qt6
FLAVOR?= qt5
qt5_CONFLICTS_INSTALL= copyq-qt6
qt6_CONFLICTS_INSTALL= copyq-qt5

USES= cmake compiler:c++17-lang gl kde:5 qt:${FLAVOR:S/qt//} xorg
USES= cmake compiler:c++17-lang gl kde:5 pkgconfig \
qt:${FLAVOR:S/qt//} xorg
USE_GITHUB= yes
GH_ACCOUNT= hluk
GH_PROJECT= CopyQ
USE_GL= gl
USE_KDE= notifications # needed WITH_QT6, Extra CMake Modules (ECM)
_USE_KDE_qt5= ecm:build notifications
_USE_KDE_qt6= ecm:build
USE_KDE= ${_USE_KDE_${FLAVOR}}
_USE_QT5= core dbus declarative gui network svg wayland widgets x11extras \
xml buildtools:build qmake:build
_USE_QT6= base declarative svg wayland translations:build
USE_QT= ${_USE_QT${FLAVOR:S/qt//}}
USE_XORG= ice sm x11 xext xfixes xtst

_QT6_CMAKE_ARGS= -DQtWaylandScanner_EXECUTABLE=${PREFIX}/libexec/qt6/qtwaylandscanner \
-DWITH_QT6:BOOL=TRUE
_QT6_CMAKE_ARGS= -DWITH_QT6:BOOL=TRUE
CMAKE_ARGS= ${_QT${FLAVOR:S/qt//}_CMAKE_ARGS}

PORTSCOUT= limit:^d\.d\.
Expand Down
4 changes: 3 additions & 1 deletion deskutils/copyq/distinfo
@@ -1,5 +1,7 @@
TIMESTAMP = 1689891691
TIMESTAMP = 1689919063
SHA256 (hluk-CopyQ-v7.0.0_GH0.tar.gz) = 5898ba2025f8e9f61a4b4732e85adf3b1653fad20b5c1f1b0c879a7b72cd4d48
SIZE (hluk-CopyQ-v7.0.0_GH0.tar.gz) = 3323354
SHA256 (79d33dd337deeb357ce92c3d1e2b5b56b6f2c97d.patch) = 1e35ffd348245b2ca74671e17e38ea77888c589730da69974f6440923226872e
SIZE (79d33dd337deeb357ce92c3d1e2b5b56b6f2c97d.patch) = 1734
SHA256 (8ae296bed45a7679712aff0cb2e2d0508330ad37.patch) = 3b59ead404fed04a6296c5e7de3f8208837d8da805ec217f428076ebf9df0f2c
SIZE (8ae296bed45a7679712aff0cb2e2d0508330ad37.patch) = 4577

0 comments on commit 8cd4394

Please sign in to comment.