git: 432ceedd166c - main - textproc/kf5-syntax-highlighting: Add dependency on qdeclarative to enable QML module.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 19 Dec 2022 13:45:46 UTC
The branch main has been updated by arrowd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=432ceedd166cc1930a7dba0d6c3d4cbbaa0b0a3c
commit 432ceedd166cc1930a7dba0d6c3d4cbbaa0b0a3c
Author: Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2022-12-18 17:56:47 +0000
Commit: Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2022-12-19 13:45:41 +0000
textproc/kf5-syntax-highlighting: Add dependency on qdeclarative to enable QML module.
While there remove a legacy patch.
Differential Revision: https://reviews.freebsd.org/D37738
---
textproc/kf5-syntax-highlighting/Makefile | 3 ++-
.../files/patch-src_cli_kate-syntax-highlighter.cpp | 14 --------------
textproc/kf5-syntax-highlighting/pkg-plist | 2 ++
3 files changed, 4 insertions(+), 15 deletions(-)
diff --git a/textproc/kf5-syntax-highlighting/Makefile b/textproc/kf5-syntax-highlighting/Makefile
index 280a46b924d6..293a004a4227 100644
--- a/textproc/kf5-syntax-highlighting/Makefile
+++ b/textproc/kf5-syntax-highlighting/Makefile
@@ -1,5 +1,6 @@
PORTNAME= syntax-highlighting
DISTVERSION= ${KDE_FRAMEWORKS_VERSION}
+PORTREVISION= 1
CATEGORIES= textproc kde kde-frameworks
MAINTAINER= kde@FreeBSD.org
@@ -7,7 +8,7 @@ COMMENT= KF5 syntax highlighting engine for structured text and code
USES= cmake compiler:c++11-lib kde:5 perl5 qt:5 tar:xz
USE_KDE= ecm:build
-USE_QT= core gui network \
+USE_QT= core declarative gui network \
buildtools:build linguisttools:build testlib:build qmake:build
CMAKE_ARGS= -DCMAKE_DISABLE_FIND_PACKAGE_Qt5XmlPatterns=TRUE
diff --git a/textproc/kf5-syntax-highlighting/files/patch-src_cli_kate-syntax-highlighter.cpp b/textproc/kf5-syntax-highlighting/files/patch-src_cli_kate-syntax-highlighter.cpp
deleted file mode 100644
index 23b8394ca65a..000000000000
--- a/textproc/kf5-syntax-highlighting/files/patch-src_cli_kate-syntax-highlighter.cpp
+++ /dev/null
@@ -1,14 +0,0 @@
-Fix build on 9.3
-
-/wrkdirs/usr/ports/textproc/kf5-syntax-highlighting/work/syntax-highlighting-5.29.0/src/cli/kate-syntax-highlighter.cpp:121:35: error: 'stdout' was not declared in this scope
-
---- src/cli/kate-syntax-highlighter.cpp.orig 2016-12-13 11:57:30 UTC
-+++ src/cli/kate-syntax-highlighter.cpp
-@@ -28,6 +28,7 @@
- #include <QVector>
-
- #include <iostream>
-+#include <cstdio>
-
- using namespace KSyntaxHighlighting;
-
diff --git a/textproc/kf5-syntax-highlighting/pkg-plist b/textproc/kf5-syntax-highlighting/pkg-plist
index 740b6156dee7..a58c4067795e 100644
--- a/textproc/kf5-syntax-highlighting/pkg-plist
+++ b/textproc/kf5-syntax-highlighting/pkg-plist
@@ -29,6 +29,8 @@ lib/libKF5SyntaxHighlighting.so
lib/libKF5SyntaxHighlighting.so.5
lib/libKF5SyntaxHighlighting.so.%%KDE_FRAMEWORKS_VERSION%%
%%QT_MKSPECDIR%%/modules/qt_KSyntaxHighlighting.pri
+%%QT_QMLDIR%%/org/kde/syntaxhighlighting/libkquicksyntaxhighlightingplugin.so
+%%QT_QMLDIR%%/org/kde/syntaxhighlighting/qmldir
share/locale/af/LC_MESSAGES/syntaxhighlighting5_qt.qm
share/locale/ar/LC_MESSAGES/syntaxhighlighting5_qt.qm
share/locale/az/LC_MESSAGES/syntaxhighlighting5_qt.qm