[125946] trunk/dports/office/goldendict

ryandesign at macports.org ryandesign at macports.org
Mon Sep 29 22:30:01 PDT 2014


Revision: 125946
          https://trac.macports.org/changeset/125946
Author:   ryandesign at macports.org
Date:     2014-09-29 22:30:01 -0700 (Mon, 29 Sep 2014)
Log Message:
-----------
goldendict: don't include X11 headers when they're not needed

Modified Paths:
--------------
    trunk/dports/office/goldendict/Portfile

Added Paths:
-----------
    trunk/dports/office/goldendict/files/patch-keyboardstate.cc.diff

Modified: trunk/dports/office/goldendict/Portfile
===================================================================
--- trunk/dports/office/goldendict/Portfile	2014-09-30 05:15:29 UTC (rev 125945)
+++ trunk/dports/office/goldendict/Portfile	2014-09-30 05:30:01 UTC (rev 125946)
@@ -38,6 +38,7 @@
                     port:zlib
 
 patchfiles          patch-goldendict.pro.diff
+patchfiles-append   patch-keyboardstate.cc.diff
 
 post-patch {
     reinplace "s|@VERSION@|${version}|g" ${worksrcpath}/goldendict.pro

Added: trunk/dports/office/goldendict/files/patch-keyboardstate.cc.diff
===================================================================
--- trunk/dports/office/goldendict/files/patch-keyboardstate.cc.diff	                        (rev 0)
+++ trunk/dports/office/goldendict/files/patch-keyboardstate.cc.diff	2014-09-30 05:30:01 UTC (rev 125946)
@@ -0,0 +1,11 @@
+--- keyboardstate.cc.orig	2014-09-30 00:27:12.000000000 -0500
++++ keyboardstate.cc	2014-09-30 00:28:17.000000000 -0500
+@@ -6,7 +6,7 @@
+ 
+ #ifdef Q_OS_WIN32
+ #include <windows.h>
+-#else
++#elif defined(Q_WS_X11)
+ #include <QX11Info>
+ #include <X11/X.h>
+ #include <X11/XKBlib.h>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140929/b6e03966/attachment.html>


More information about the macports-changes mailing list