From 809b7210120c549a39a246fd148a08698628efc2 Mon Sep 17 00:00:00 2001 From: Felix Palmen Date: Wed, 10 Apr 2024 19:22:58 +0200 Subject: [PATCH] x11/qxmoji: Add new port qXmoji is a simple X11 emoji keyboards using key press events. --- x11/Makefile | 1 + x11/qxmoji/Makefile | 33 +++++++++++++++++++++++++++++++++ x11/qxmoji/distinfo | 3 +++ x11/qxmoji/pkg-descr | 13 +++++++++++++ x11/qxmoji/pkg-plist | 10 ++++++++++ 5 files changed, 60 insertions(+) create mode 100644 x11/qxmoji/Makefile create mode 100644 x11/qxmoji/distinfo create mode 100644 x11/qxmoji/pkg-descr create mode 100644 x11/qxmoji/pkg-plist diff --git a/x11/Makefile b/x11/Makefile index 8818c8c142bc..03692c6ddc93 100644 --- a/x11/Makefile +++ b/x11/Makefile @@ -358,6 +358,7 @@ SUBDIR += qt5-qev SUBDIR += qt5-x11extras SUBDIR += qterminal + SUBDIR += qxmoji SUBDIR += remontoire SUBDIR += rendercheck SUBDIR += rgb diff --git a/x11/qxmoji/Makefile b/x11/qxmoji/Makefile new file mode 100644 index 000000000000..e90fb7986708 --- /dev/null +++ b/x11/qxmoji/Makefile @@ -0,0 +1,33 @@ +PORTNAME= qxmoji +DISTVERSION= 0.7 +CATEGORIES= x11 +MASTER_SITES= ${WWW}/releases/download/v${DISTVERSION}/ +PKGNAMESUFFIX= -${FLAVOR} + +MAINTAINER= zirias@FreeBSD.org +COMMENT= X11 emoji keyboard with Qt GUI +WWW= https://github.com/Zirias/qxmoji + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +RUN_DEPENDS= noto-emoji>0:x11-fonts/noto-emoji + +FLAVORS= qt5 qt6 +FLAVOR?= ${FLAVORS:[1]} + +USES= compiler:c++17-lang gmake pkgconfig tar:xz \ + qt:${FLAVOR:S/qt//} xorg +_USE_QT5= core gui widgets x11extras buildtools:build linguisttools:build +_USE_QT6= base tools:build +USE_QT= ${_USE_QT${FLAVOR:S/qt//}} +USE_XORG= xcb + +MAKEFILE= GNUmakefile +MAKE_ARGS= QT_VERSION=${FLAVOR:S/qt//} +ALL_TARGET= strip + +CONFLICTS_INSTALL= ${FLAVORS:S/^/${PORTNAME}-/} +OPTIONS_DEFINE= DOCS + +.include diff --git a/x11/qxmoji/distinfo b/x11/qxmoji/distinfo new file mode 100644 index 000000000000..a504d4d69237 --- /dev/null +++ b/x11/qxmoji/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1714632875 +SHA256 (qxmoji-0.7.tar.xz) = f00778cac983eaed427aa978a7d8e3fd76d6e6a5b31b4bc1153734b105e10921 +SIZE (qxmoji-0.7.tar.xz) = 193584 diff --git a/x11/qxmoji/pkg-descr b/x11/qxmoji/pkg-descr new file mode 100644 index 000000000000..6cc8b31fc982 --- /dev/null +++ b/x11/qxmoji/pkg-descr @@ -0,0 +1,13 @@ +qXmoji is a very simple emoji keyboard designed to work with any X11 +application. It uses Qt to show its GUI, but "types" emojis using plain X11 +keyboard events. + +Features: + +* Works with "plain" X11 events, so it can send emojis to any window, + independent of toolkits like GTK or Qt. +* Search (as you type) for an emoji by its (english) name. The search box + temporarily grabs the keyboard to allow typing and immediately releases it + again when the mouse pointer leaves it. +* Maintains a history of the 100 least recently used emojis, this list is + automatically persisted. diff --git a/x11/qxmoji/pkg-plist b/x11/qxmoji/pkg-plist new file mode 100644 index 000000000000..93073ba5a07b --- /dev/null +++ b/x11/qxmoji/pkg-plist @@ -0,0 +1,10 @@ +bin/qxmoji +share/applications/qxmoji.desktop +%%PORTDOCS%%%%DOCSDIR%%/README.md +%%PORTDOCS%%%%DOCSDIR%%/TRANSLATE.md +share/icons/hicolor/16x16/apps/qxmoji.png +share/icons/hicolor/256x256/apps/qxmoji.png +share/icons/hicolor/32x32/apps/qxmoji.png +share/icons/hicolor/48x48/apps/qxmoji.png +%%DATADIR%%/translations/emojidata_de.qm +%%DATADIR%%/translations/qxmoji_de.qm -- 2.44.0