x11-toolkits/hyprland-qt-support: add new port

hyprland-qt-support provides a QML style for hypr* Qt apps.

https://github.com/hyprwm/hyprland-qt-support
This commit is contained in:
Jan Beich 2025-01-08 23:00:35 +01:00
parent ffa248a95a
commit 18eadb35b3
5 changed files with 45 additions and 0 deletions

View file

@ -49,6 +49,7 @@
SUBDIR += gtksourceview5 SUBDIR += gtksourceview5
SUBDIR += gtksourceviewmm3 SUBDIR += gtksourceviewmm3
SUBDIR += guile-gnome-platform SUBDIR += guile-gnome-platform
SUBDIR += hyprland-qt-support
SUBDIR += imgui SUBDIR += imgui
SUBDIR += irrlicht SUBDIR += irrlicht
SUBDIR += itk SUBDIR += itk

View file

@ -0,0 +1,27 @@
PORTNAME= hyprland-qt-support
DISTVERSIONPREFIX= v
DISTVERSION= 0.1.0
CATEGORIES= x11-toolkits
MAINTAINER= jbeich@FreeBSD.org
COMMENT= QML style provider for hypr* Qt apps
WWW= https://github.com/hyprwm/hyprland-qt-support
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libhyprlang.so:devel/hyprlang
USES= cmake compiler:c++11-lib localbase:ldflags pkgconfig qt:6
USE_GITHUB= yes
USE_QT= base declarative
GH_ACCOUNT= hyprwm
LDFLAGS+= -Wl,--as-needed # Qt deps
CMAKE_ARGS= -DINSTALL_QML_PREFIX:PATH="${QT_QMLDIR_REL}"
post-patch:
# Respect PREFIX for system-wide config
@${REINPLACE_CMD} 's,/etc,${PREFIX}&,' \
${WRKSRC}/src/style/impl/hyprlandstyle.cpp
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1736373635
SHA256 (hyprwm-hyprland-qt-support-v0.1.0_GH0.tar.gz) = cac1f980bd088b890097f3f999cfdf03e73ee94c53f3c92d0b3bc23baa9e7b2c
SIZE (hyprwm-hyprland-qt-support-v0.1.0_GH0.tar.gz) = 12955

View file

@ -0,0 +1 @@
hyprland-qt-support provides a QML style for hypr* Qt apps.

View file

@ -0,0 +1,13 @@
lib/libhyprland-quick-style-impl.so
lib/libhyprland-quick-style.so
%%QT_QMLDIR%%/org/hyprland/style/Button.qml
%%QT_QMLDIR%%/org/hyprland/style/CheckBox.qml
%%QT_QMLDIR%%/org/hyprland/style/TextField.qml
%%QT_QMLDIR%%/org/hyprland/style/hyprland-quick-style.qmltypes
%%QT_QMLDIR%%/org/hyprland/style/impl/HyprlandStyle.qml
%%QT_QMLDIR%%/org/hyprland/style/impl/MotionBehavior.qml
%%QT_QMLDIR%%/org/hyprland/style/impl/hyprland-quick-style-impl.qmltypes
%%QT_QMLDIR%%/org/hyprland/style/impl/libhyprland-quick-style-implplugin.so
%%QT_QMLDIR%%/org/hyprland/style/impl/qmldir
%%QT_QMLDIR%%/org/hyprland/style/libhyprland-quick-styleplugin.so
%%QT_QMLDIR%%/org/hyprland/style/qmldir