pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc Fix textproc/highlight build with 'x11' option.
details: https://anonhg.NetBSD.org/pkgsrc/rev/fcdf89501070
branches: trunk
changeset: 310936:fcdf89501070
user: schmonz <schmonz%pkgsrc.org@localhost>
date: Fri Jul 27 07:39:12 2018 +0000
description:
Fix textproc/highlight build with 'x11' option.
diffstat:
textproc/highlight/PLIST | 5 ++-
textproc/highlight/options.mk | 6 ++-
textproc/libhighlight/distinfo | 4 ++-
textproc/libhighlight/patches/patch-src_gui-qt_mainwindow.cpp | 15 ++++++++++
textproc/libhighlight/patches/patch-src_gui-qt_showtextfile.cpp | 15 ++++++++++
5 files changed, 41 insertions(+), 4 deletions(-)
diffs (94 lines):
diff -r be25764f0c53 -r fcdf89501070 textproc/highlight/PLIST
--- a/textproc/highlight/PLIST Fri Jul 27 07:28:14 2018 +0000
+++ b/textproc/highlight/PLIST Fri Jul 27 07:39:12 2018 +0000
@@ -1,11 +1,14 @@
-@comment $NetBSD: PLIST,v 1.7 2018/04/09 20:17:46 schmonz Exp $
+@comment $NetBSD: PLIST,v 1.8 2018/07/27 07:39:12 schmonz Exp $
bin/highlight
${PLIST.x11}bin/highlight-gui
man/man1/highlight.1
${PLIST.x11}share/applications/highlight.desktop
${PLIST.x11}share/highlight/gui_files/ext/fileopenfilter.conf
+${PLIST.x11}share/highlight/gui_files/l10n/highlight_bg_BG.qm
${PLIST.x11}share/highlight/gui_files/l10n/highlight_cs_CZ.qm
${PLIST.x11}share/highlight/gui_files/l10n/highlight_de_DE.qm
${PLIST.x11}share/highlight/gui_files/l10n/highlight_es_ES.qm
+${PLIST.x11}share/highlight/gui_files/l10n/highlight_fr_FR.qm
+${PLIST.x11}share/highlight/gui_files/l10n/highlight_it_IT.qm
${PLIST.x11}share/highlight/gui_files/l10n/highlight_zh_CN.qm
${PLIST.x11}share/pixmaps/highlight.xpm
diff -r be25764f0c53 -r fcdf89501070 textproc/highlight/options.mk
--- a/textproc/highlight/options.mk Fri Jul 27 07:28:14 2018 +0000
+++ b/textproc/highlight/options.mk Fri Jul 27 07:39:12 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.2 2018/05/03 13:13:50 schmonz Exp $
+# $NetBSD: options.mk,v 1.3 2018/07/27 07:39:12 schmonz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.highlight
PKG_SUPPORTED_OPTIONS= x11
@@ -7,8 +7,10 @@
PLIST_VARS+= x11
.if !empty(PKG_OPTIONS:Mx11)
-.include "../../x11/qt5-qttools/buildlink3.mk"
+.include "../../x11/qt5-qtbase/buildlink3.mk"
BUILD_TARGET+= gui
INSTALL_TARGET+= install-gui
PLIST.x11= yes
+pre-configure:
+ ${LN} -sf ${QTDIR}/bin/qmake ${TOOLS_DIR}/bin
.endif
diff -r be25764f0c53 -r fcdf89501070 textproc/libhighlight/distinfo
--- a/textproc/libhighlight/distinfo Fri Jul 27 07:28:14 2018 +0000
+++ b/textproc/libhighlight/distinfo Fri Jul 27 07:39:12 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2018/07/23 05:16:43 schmonz Exp $
+$NetBSD: distinfo,v 1.4 2018/07/27 07:39:12 schmonz Exp $
SHA1 (highlight-3.44.tar.bz2) = c01ea650bc9462df833afa59e566be32cd47e3f0
RMD160 (highlight-3.44.tar.bz2) = d7997c545d98c21c2fd09f68989e3cb8cf3713da
@@ -7,4 +7,6 @@
SHA1 (patch-extras_swig_makefile) = 2bb62f7519cd5baed60b1af5f606ce22444c346f
SHA1 (patch-makefile) = c3ba1882befaf0293ad4ff69b2b6067d42bb3e57
SHA1 (patch-src_core_platform__fs.cpp) = 65b7f4b665b820eec4b835474bd308e49080526e
+SHA1 (patch-src_gui-qt_mainwindow.cpp) = d073a80a1d853f9cc2bbedf7a402125ec7a994d2
+SHA1 (patch-src_gui-qt_showtextfile.cpp) = 9bd974f40aa9a5bf7c8178e079d4ee1818a4d7b8
SHA1 (patch-src_makefile) = 6d9343af73f1d9cc1cd62958c654089865f1a2bc
diff -r be25764f0c53 -r fcdf89501070 textproc/libhighlight/patches/patch-src_gui-qt_mainwindow.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/libhighlight/patches/patch-src_gui-qt_mainwindow.cpp Fri Jul 27 07:39:12 2018 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_gui-qt_mainwindow.cpp,v 1.1 2018/07/27 07:39:12 schmonz Exp $
+
+Use X11 on Darwin, like everywhere else.
+
+--- src/gui-qt/mainwindow.cpp.orig 2018-07-19 17:57:22.000000000 +0000
++++ src/gui-qt/mainwindow.cpp
+@@ -36,6 +36,8 @@ along with Highlight. If not, see <http
+ #include "io_report.h"
+ #include "syntax_chooser.h"
+
++#undef Q_OS_OSX
++
+ MainWindow::MainWindow(QWidget *parent)
+ : QMainWindow(parent), ui(new Ui::MainWindowClass), themesClassicIdx(0), themesBase16Idx(0), getDataFromCP(false)
+ {
diff -r be25764f0c53 -r fcdf89501070 textproc/libhighlight/patches/patch-src_gui-qt_showtextfile.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/libhighlight/patches/patch-src_gui-qt_showtextfile.cpp Fri Jul 27 07:39:12 2018 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_gui-qt_showtextfile.cpp,v 1.1 2018/07/27 07:39:12 schmonz Exp $
+
+Use X11 on Darwin, like everywhere else.
+
+--- src/gui-qt/showtextfile.cpp.orig 2018-07-19 17:57:22.000000000 +0000
++++ src/gui-qt/showtextfile.cpp
+@@ -30,6 +30,8 @@ along with Highlight. If not, see <http
+ #include <QFile>
+ #include <QDir>
+
++#undef Q_OS_OSX
++
+ ShowTextFile::ShowTextFile(QWidget *parent) :
+ QDialog(parent),
+ m_ui(new Ui::ShowTextFile)
Home |
Main Index |
Thread Index |
Old Index