Skip to content

Commit

Permalink
sysutils/polkit-qt-1-devel: new port
Browse files Browse the repository at this point in the history
This is the development version of sysutils/polkit-qt-1
It adds Qt6 support, which is required for the Plasma 6-beta ports.
  • Loading branch information
tcberner committed Dec 2, 2023
1 parent 551e034 commit 46e5d46
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 0 deletions.
1 change: 1 addition & 0 deletions sysutils/Makefile
Expand Up @@ -1034,6 +1034,7 @@
SUBDIR += polkit
SUBDIR += polkit-gnome
SUBDIR += polkit-qt
SUBDIR += polkit-qt-1-devel
SUBDIR += pot
SUBDIR += potnet
SUBDIR += poweralertd
Expand Down
34 changes: 34 additions & 0 deletions sysutils/polkit-qt-1-devel/Makefile
@@ -0,0 +1,34 @@
PORTNAME= polkit-qt-1
DISTVERSION= 0.175.0
CATEGORIES= sysutils
MASTER_SITES= KDE/unstable/${PORTNAME}/
PKGNAMESUFFIX= -${FLAVOR}

MAINTAINER= kde@FreeBSD.org
COMMENT= Qt wrapper around Polkit libraries
WWW= https://projects.kde.org/projects/kdesupport/polkit-qt-1

LICENSE= LGPL21

FLAVORS= qt5 qt6
FLAVOR?= qt5

LIB_DEPENDS= libpolkit-agent-1.so:sysutils/polkit

USES= cmake compiler:c++11-lang gnome pkgconfig qt:${FLAVOR:C/qt//} \
tar:xz
USE_GNOME= glib20
USE_QT= ${_USE_QT_${FLAVOR}}
CMAKE_OFF= BUILD_EXAMPLES BUILD_TEST
CMAKE_ARGS= -DQT_MAJOR_VERSION=${FLAVOR:C/qt//}
_USE_QT_qt5= core dbus gui widgets buildtools:build qmake:build
_USE_QT_qt6= base

USE_LDCONFIG= yes
PLIST_SUB= QT_VER=${FLAVOR:C/qt//}

post-patch:
${REINPLACE_CMD} -e 's|$${LIB_DESTINATION}/pkgconfig|libdata/pkgconfig|' \
${WRKSRC}/CMakeLists.txt

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions sysutils/polkit-qt-1-devel/distinfo
@@ -0,0 +1,3 @@
TIMESTAMP = 1701502649
SHA256 (polkit-qt-1-0.175.0.tar.xz) = 73a32d1a1819684145e0ef8a1f2ea804f9ec10ad78d62aa03bad4dbdb39c4c99
SIZE (polkit-qt-1-0.175.0.tar.xz) = 58208
4 changes: 4 additions & 0 deletions sysutils/polkit-qt-1-devel/pkg-descr
@@ -0,0 +1,4 @@
Polkit-Qt is a library that lets developers use the Polkit API through
a nice Qt-styled API. It is mainly a wrapper around QAction and
QAbstractButton that lets you integrate those two component easily
with Polkit.
43 changes: 43 additions & 0 deletions sysutils/polkit-qt-1-devel/pkg-plist
@@ -0,0 +1,43 @@
include/polkit-qt%%QT_VER%%-1/PolkitQt1/ActionDescription
include/polkit-qt%%QT_VER%%-1/PolkitQt1/Agent/Listener
include/polkit-qt%%QT_VER%%-1/PolkitQt1/Agent/Session
include/polkit-qt%%QT_VER%%-1/PolkitQt1/Authority
include/polkit-qt%%QT_VER%%-1/PolkitQt1/Details
include/polkit-qt%%QT_VER%%-1/PolkitQt1/Gui/Action
include/polkit-qt%%QT_VER%%-1/PolkitQt1/Gui/ActionButton
include/polkit-qt%%QT_VER%%-1/PolkitQt1/Gui/ActionButtons
include/polkit-qt%%QT_VER%%-1/PolkitQt1/Identity
include/polkit-qt%%QT_VER%%-1/PolkitQt1/Subject
include/polkit-qt%%QT_VER%%-1/PolkitQt1/TemporaryAuthorization
include/polkit-qt%%QT_VER%%-1/polkitqt1-actiondescription.h
include/polkit-qt%%QT_VER%%-1/polkitqt1-agent-export.h
include/polkit-qt%%QT_VER%%-1/polkitqt1-agent-listener.h
include/polkit-qt%%QT_VER%%-1/polkitqt1-agent-session.h
include/polkit-qt%%QT_VER%%-1/polkitqt1-authority.h
include/polkit-qt%%QT_VER%%-1/polkitqt1-core-export.h
include/polkit-qt%%QT_VER%%-1/polkitqt1-details.h
include/polkit-qt%%QT_VER%%-1/polkitqt1-gui-action.h
include/polkit-qt%%QT_VER%%-1/polkitqt1-gui-actionbutton.h
include/polkit-qt%%QT_VER%%-1/polkitqt1-gui-actionbuttons.h
include/polkit-qt%%QT_VER%%-1/polkitqt1-gui-export.h
include/polkit-qt%%QT_VER%%-1/polkitqt1-identity.h
include/polkit-qt%%QT_VER%%-1/polkitqt1-subject.h
include/polkit-qt%%QT_VER%%-1/polkitqt1-temporaryauthorization.h
include/polkit-qt%%QT_VER%%-1/polkitqt1-version.h
lib/cmake/PolkitQt%%QT_VER%%-1/PolkitQt%%QT_VER%%-1Config.cmake
lib/cmake/PolkitQt%%QT_VER%%-1/PolkitQt%%QT_VER%%-1ConfigVersion.cmake
lib/cmake/PolkitQt%%QT_VER%%-1/PolkitQt%%QT_VER%%-1Targets-%%CMAKE_BUILD_TYPE%%.cmake
lib/cmake/PolkitQt%%QT_VER%%-1/PolkitQt%%QT_VER%%-1Targets.cmake
lib/libpolkit-qt%%QT_VER%%-agent-1.so
lib/libpolkit-qt%%QT_VER%%-agent-1.so.1
lib/libpolkit-qt%%QT_VER%%-agent-1.so.1.175.0
lib/libpolkit-qt%%QT_VER%%-core-1.so
lib/libpolkit-qt%%QT_VER%%-core-1.so.1
lib/libpolkit-qt%%QT_VER%%-core-1.so.1.175.0
lib/libpolkit-qt%%QT_VER%%-gui-1.so
lib/libpolkit-qt%%QT_VER%%-gui-1.so.1
lib/libpolkit-qt%%QT_VER%%-gui-1.so.1.175.0
libdata/pkgconfig/polkit-qt%%QT_VER%%-1.pc
libdata/pkgconfig/polkit-qt%%QT_VER%%-agent-1.pc
libdata/pkgconfig/polkit-qt%%QT_VER%%-core-1.pc
libdata/pkgconfig/polkit-qt%%QT_VER%%-gui-1.pc

0 comments on commit 46e5d46

Please sign in to comment.