Hi, I have had this in my tree for a while.
There is a minor bug in text selection where text can become invisible. To work around this, you must turn *off* "highlight current line". This bug has also appeared (where once it was not present) in our in-tree texworks package too, so its something in QT/X that has changed. Upstream bug report: http://code.google.com/p/texworks/issues/detail?can=2&start=0&num=100&q=disappears&colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary&groupby=&sort=&id=569 Anyway, OK? Index: Makefile =================================================================== RCS file: /cvs/ports/editors/texworks/Makefile,v retrieving revision 1.13 diff -u -p -u -r1.13 Makefile --- Makefile 16 Sep 2011 09:48:09 -0000 1.13 +++ Makefile 15 Apr 2012 21:24:45 -0000 @@ -4,15 +4,13 @@ COMMENT-main = easy to use LaTeX and Co COMMENT-python = Python scripting for TeXworks COMMENT-lua = Lua scripting for TeXworks -V = 0.4.0 -DISTNAME = texworks-${V}-r759 +V = 0.4.3 +R = 858 +DISTNAME = texworks-${V}-r${R} PKGNAME-main = texworks-${V} PKGNAME-lua = texworks-lua-${V} PKGNAME-python = texworks-python-${V} -REVISION-main = 1 -REVISION-python = 2 -REVISION-lua = 1 WRKDIST = ${WRKDIR}/texworks-${V} @@ -32,10 +30,18 @@ MODULES = x11/qt4 \ lang/lua SHARED_ONLY = Yes -WANTLIB += QtDBus QtGui QtScript QtScriptTools QtXml c \ - hunspell-1.2 m poppler poppler-qt4 pthread stdc++ z -WANTLIB-lua = QtCore QtGui QtXml lua m stdc++ -WANTLIB-python = QtCore QtGui QtXml ${MODPY_WANTLIB} stdc++ m + +WANTLIB += ICE QtDBus QtGui QtScript QtScriptTools QtXml SM X11 +WANTLIB += Xext Xi Xinerama Xrender c fontconfig freetype hunspell-1.2 +WANTLIB += m poppler-qt4 pthread stdc++ z + +WANTLIB-lua = lua +WANTLIB-lua += ICE QtCore QtGui QtXml SM X11 Xext Xi Xinerama Xrender +WANTLIB-lua += fontconfig freetype m stdc++ + +WANTLIB-python = ${MODPY_WANTLIB} +WANTLIB-python += ICE QtCore QtGui QtXml SM X11 Xext Xi Xinerama Xrender +WANTLIB-python += fontconfig freetype m stdc++ MULTI_PACKAGES = -main -lua -python @@ -78,14 +84,13 @@ pre-build: cd ${PLUGIN_SRC}/TWLuaPlugin && ${MAKE_PROGRAM} # install main stuff and then plugins -INSTALL_PATHS = ${WRKSRC} \ - ${PLUGIN_SRC}/TWPythonPlugin \ - ${PLUGIN_SRC}/TWLuaPlugin - -# note: install does not depend upon fake env or fake flags -do-install: - for i in ${INSTALL_PATHS}; do \ - cd $$i && ${MAKE_PROGRAM} -f ${MAKE_FILE} ${FAKE_TARGET}; \ +PLUGIN_INSTALLS = ${PLUGIN_SRC}/TWPythonPlugin \ + ${PLUGIN_SRC}/TWLuaPlugin + +FAKE_FLAGS += INSTALL_ROOT=${WRKINST} +post-install: + for i in ${PLUGIN_INSTALLS}; do \ + cd $$i && ${MAKE_PROGRAM} -f ${MAKE_FILE} ${FAKE_TARGET} INSTALL_ROOT=${WRKINST}; \ done .include <bsd.port.mk> Index: distinfo =================================================================== RCS file: /cvs/ports/editors/texworks/distinfo,v retrieving revision 1.3 diff -u -p -u -r1.3 distinfo --- distinfo 20 Apr 2011 22:16:25 -0000 1.3 +++ distinfo 15 Apr 2012 21:24:45 -0000 @@ -1,5 +1,5 @@ -MD5 (texworks-0.4.0-r759.tar.gz) = iq/66ZklO3zOalYxvLoyTA== -RMD160 (texworks-0.4.0-r759.tar.gz) = PP+93b13cSV2yvmy/6gG53ydicc= -SHA1 (texworks-0.4.0-r759.tar.gz) = rfhl9jxFfcX3KofHe7Qe70pjVm4= -SHA256 (texworks-0.4.0-r759.tar.gz) = tOSYzHM7pX9i770v0pEZw2g0Lv9xTm6WCyayOvIufk0= -SIZE (texworks-0.4.0-r759.tar.gz) = 5018740 +MD5 (texworks-0.4.3-r858.tar.gz) = Scj2jb53hDXdlR3/tDs92w== +RMD160 (texworks-0.4.3-r858.tar.gz) = Ronh6hjz4/LZnQCnpEC0EMs0gOQ= +SHA1 (texworks-0.4.3-r858.tar.gz) = uiRXpQgjNDjWZkHrayocFkV5Pvg= +SHA256 (texworks-0.4.3-r858.tar.gz) = 1e2fkf086lUU8+elW0Y1P8qJDOyNEpJ2a0VmN/xIEHw= +SIZE (texworks-0.4.3-r858.tar.gz) = 5169890 Index: pkg/PLIST-main =================================================================== RCS file: /cvs/ports/editors/texworks/pkg/PLIST-main,v retrieving revision 1.1 diff -u -p -u -r1.1 PLIST-main --- pkg/PLIST-main 20 Apr 2011 22:16:25 -0000 1.1 +++ pkg/PLIST-main 15 Apr 2012 21:24:45 -0000 @@ -2,12 +2,105 @@ @pkgpath editors/texworks @bin bin/texworks lib/texworks/ -@man man/man1/texworks.1 share/applications/texworks.desktop share/doc/texworks/ share/doc/texworks/COPYING +share/doc/texworks/NEWS share/doc/texworks/README +share/man/ +share/man/man1/ +@man share/man/man1/texworks.1 share/pixmaps/ share/pixmaps/TeXworks.png +share/texworks-help/ +share/texworks-help/en/ +share/texworks-help/en/Acknowledgements.html +share/texworks-help/en/AdvanceduseScripting.html +share/texworks-help/en/Beyondthismanual.html +share/texworks-help/en/CompilingTw.html +share/texworks-help/en/CustomizingTw.html +share/texworks-help/en/Firststeps.html +share/texworks-help/en/GoingfurtherEditingtools.html +share/texworks-help/en/GoingfurtherOthertools.html +share/texworks-help/en/Installation.html +share/texworks-help/en/Introduction.html +share/texworks-help/en/Regularexpressions.html +share/texworks-help/en/TeXworks-manual.pdf +share/texworks-help/en/bibname.html +share/texworks-help/en/contentsname.html +share/texworks-help/en/images/ +share/texworks-help/en/images/LMB.png +share/texworks-help/en/images/Linux.png +share/texworks-help/en/images/Mac.png +share/texworks-help/en/images/MacCmdKey.png +share/texworks-help/en/images/MacOptKey.png +share/texworks-help/en/images/RMB.png +share/texworks-help/en/images/TeXworks.png +share/texworks-help/en/images/Windows.png +share/texworks-help/en/images/cmsy10-c-41.png +share/texworks-help/en/images/cmsy10-c-4d.png +share/texworks-help/en/images/cmsy10-c-53.png +share/texworks-help/en/images/consoleOutput.png +share/texworks-help/en/images/errorParsingScript.png +share/texworks-help/en/images/example.png +share/texworks-help/en/images/iconAbortTypesetting.png +share/texworks-help/en/images/iconTypeset.png +share/texworks-help/en/images/index0x.png +share/texworks-help/en/images/index1x.png +share/texworks-help/en/images/index2x.png +share/texworks-help/en/images/index3x.png +share/texworks-help/en/images/index4x.png +share/texworks-help/en/images/index5x.png +share/texworks-help/en/images/index6x.png +share/texworks-help/en/images/index7x.png +share/texworks-help/en/images/index8x.png +share/texworks-help/en/images/interface-summary.png +share/texworks-help/en/images/replaceDialog.png +share/texworks-help/en/images/screenshotHardWrapDlg.png +share/texworks-help/en/images/toolbar1.png +share/texworks-help/en/images/toolbar2.png +share/texworks-help/en/index.css +share/texworks-help/en/index.html +share/texworks-help/en/index10.html +share/texworks-help/en/index12.html +share/texworks-help/en/index13.html +share/texworks-help/en/index14.html +share/texworks-help/en/index15.html +share/texworks-help/en/index16.html +share/texworks-help/en/index17.html +share/texworks-help/en/index18.html +share/texworks-help/en/index19.html +share/texworks-help/en/index2.html +share/texworks-help/en/index20.html +share/texworks-help/en/index21.html +share/texworks-help/en/index23.html +share/texworks-help/en/index24.html +share/texworks-help/en/index25.html +share/texworks-help/en/index26.html +share/texworks-help/en/index27.html +share/texworks-help/en/index28.html +share/texworks-help/en/index29.html +share/texworks-help/en/index30.html +share/texworks-help/en/index32.html +share/texworks-help/en/index33.html +share/texworks-help/en/index34.html +share/texworks-help/en/index36.html +share/texworks-help/en/index37.html +share/texworks-help/en/index40.html +share/texworks-help/en/index41.html +share/texworks-help/en/index42.html +share/texworks-help/en/index44.html +share/texworks-help/en/index45.html +share/texworks-help/en/index46.html +share/texworks-help/en/index47.html +share/texworks-help/en/index48.html +share/texworks-help/en/index49.html +share/texworks-help/en/index5.html +share/texworks-help/en/index6.html +share/texworks-help/en/index8.html +share/texworks-help/en/index9.html +share/texworks-help/en/indexname.html +share/texworks-help/en/manual.css +share/texworks-help/en/tw-help-title.txt @exec %D/bin/update-desktop-database @unexec-delete %D/bin/update-desktop-database Index: patches/patch-TeXworks_pro =================================================================== RCS file: /cvs/ports/editors/texworks/patches/patch-TeXworks_pro,v retrieving revision 1.1 diff -u -p -u -r1.1 patch-TeXworks_pro --- patches/patch-TeXworks_pro 20 Apr 2011 22:16:25 -0000 1.1 +++ patches/patch-TeXworks_pro 15 Apr 2012 21:24:46 -0000 @@ -1,46 +1,17 @@ -$OpenBSD: patch-TeXworks_pro,v 1.1 2011/04/20 22:16:25 edd Exp $ ---- TeXworks.pro.orig Sat Mar 19 16:12:51 2011 -+++ TeXworks.pro Thu Apr 14 18:20:45 2011 -@@ -96,6 +96,10 @@ unix:!macx { # on Unix-ish platforms we rely on pkgcon - # gets expanded to " in the c++ code) - QMAKE_CXXFLAGS += -DTW_HELPPATH=\\\"/usr/local/share/texworks-help\\\" - QMAKE_CXXFLAGS += -DTW_PLUGINPATH=\\\"/usr/local/lib/texworks\\\" -+} -+ -+# openbsd uses the mozilla dicts -+unix:!openbsd-g++* { - QMAKE_CXXFLAGS += -DTW_DICPATH=\\\"/usr/share/myspell/dicts\\\" - } +$OpenBSD$ +--- TeXworks.pro.orig Wed Jun 29 18:03:14 2011 ++++ TeXworks.pro Thu Mar 29 09:43:08 2012 +@@ -47,11 +47,11 @@ QMAKE_CXXFLAGS_WARN_ON += -Wno-unknown-pragmas -@@ -107,10 +111,11 @@ linux-g++ { - LIBS += -lz - } - --openbsd-g++ { -+openbsd-g++* { - # Same bug exists in OpenBSD/qt4 - LIBS += -lQtDBus - INCLUDEPATH += /usr/local/include/X11/qt4/QtDBus -+ QMAKE_CXXFLAGS += -DTW_DICPATH=\\\"${LOCALBASE}/share/mozilla-dicts\\\" - } - - win32 { # paths here are specific to my setup -@@ -224,13 +229,17 @@ TRANSLATIONS += trans/TeXworks_af.ts \ - trans/TeXworks_tr.ts \ - trans/TeXworks_zh_CN.ts - -+# OpenBSD ports specific -+INSTALL_PREFIX = ${WRKINST}/${PREFIX} -+ - unix:!macx { # installation on Unix-ish platforms - isEmpty(INSTALL_PREFIX):INSTALL_PREFIX = /usr/local - isEmpty(BIN_DIR):BIN_DIR = $$INSTALL_PREFIX/bin + unix:!macx { + TARGET = texworks +- isEmpty(INSTALL_PREFIX):INSTALL_PREFIX = /usr/local ++ isEmpty(INSTALL_PREFIX):INSTALL_PREFIX = ${PREFIX} isEmpty(DATA_DIR):DATA_DIR = $$INSTALL_PREFIX/share - isEmpty(DOCS_DIR):DOCS_DIR = $$DATA_DIR/doc/texworks - isEmpty(ICON_DIR):ICON_DIR = $$DATA_DIR/pixmaps -- isEmpty(MAN_DIR):MAN_DIR = $$DATA_DIR/man/man1 -+ #isEmpty(MAN_DIR):MAN_DIR = $$DATA_DIR/man/man1 -+ isEmpty(MAN_DIR):MAN_DIR = $$INSTALL_PREFIX/man/man1 - isEmpty(DESKTOP_DIR):DESKTOP_DIR = $$DATA_DIR/applications - - target.path = $$BIN_DIR + isEmpty(TW_HELPPATH):TW_HELPPATH = $$DATA_DIR/texworks-help + isEmpty(TW_PLUGINPATH):TW_PLUGINPATH = $$INSTALL_PREFIX/lib/texworks +- isEmpty(TW_DICPATH):TW_DICPATH = /usr/share/myspell/dicts ++ isEmpty(TW_DICPATH):TW_DICPATH = ${LOCALBASE}/share/mozilla-dicts + } else { + TARGET = TeXworks + QMAKE_CXXFLAGS += -fexceptions Index: patches/patch-plugins-src_TWLuaPlugin_TWLuaPlugin_pro =================================================================== RCS file: /cvs/ports/editors/texworks/patches/patch-plugins-src_TWLuaPlugin_TWLuaPlugin_pro,v retrieving revision 1.1 diff -u -p -u -r1.1 patch-plugins-src_TWLuaPlugin_TWLuaPlugin_pro --- patches/patch-plugins-src_TWLuaPlugin_TWLuaPlugin_pro 20 Apr 2011 22:16:25 -0000 1.1 +++ patches/patch-plugins-src_TWLuaPlugin_TWLuaPlugin_pro 15 Apr 2012 21:24:46 -0000 @@ -1,21 +1,14 @@ -$OpenBSD: patch-plugins-src_TWLuaPlugin_TWLuaPlugin_pro,v 1.1 2011/04/20 22:16:25 edd Exp $ ---- plugins-src/TWLuaPlugin/TWLuaPlugin.pro.orig Wed Mar 2 19:25:55 2011 -+++ plugins-src/TWLuaPlugin/TWLuaPlugin.pro Sat Apr 16 19:42:23 2011 -@@ -44,11 +44,16 @@ macx { +$OpenBSD$ +--- plugins-src/TWLuaPlugin/TWLuaPlugin.pro.orig Mon Mar 12 11:46:27 2012 ++++ plugins-src/TWLuaPlugin/TWLuaPlugin.pro Mon Mar 12 11:47:38 2012 +@@ -44,6 +44,10 @@ macx { INCLUDEPATH += /usr/local/include } +openbsd-g++* { -+ LIBS += -L${LOCALBASE}/lib -llua ++ LIBS += -L${LOCALBASE}/lib -llua +} + -+ unix:!macx { # on Unix-ish platforms we rely on pkgconfig CONFIG += link_pkgconfig PKGCONFIG += lua5.1 - -- target.path = /usr/local/lib/texworks -+ target.path = ${WRKINST}/${PREFIX}/lib/texworks - INSTALLS += target - } - Index: patches/patch-plugins-src_TWPythonPlugin_TWPythonPlugin_pro =================================================================== RCS file: /cvs/ports/editors/texworks/patches/patch-plugins-src_TWPythonPlugin_TWPythonPlugin_pro,v retrieving revision 1.2 diff -u -p -u -r1.2 patch-plugins-src_TWPythonPlugin_TWPythonPlugin_pro --- patches/patch-plugins-src_TWPythonPlugin_TWPythonPlugin_pro 16 Jun 2011 04:24:17 -0000 1.2 +++ patches/patch-plugins-src_TWPythonPlugin_TWPythonPlugin_pro 15 Apr 2012 21:24:46 -0000 @@ -1,7 +1,7 @@ -$OpenBSD: patch-plugins-src_TWPythonPlugin_TWPythonPlugin_pro,v 1.2 2011/06/16 04:24:17 rpointel Exp $ ---- plugins-src/TWPythonPlugin/TWPythonPlugin.pro.orig Wed Mar 2 19:25:55 2011 -+++ plugins-src/TWPythonPlugin/TWPythonPlugin.pro Sat Apr 16 19:42:37 2011 -@@ -45,9 +45,9 @@ +$OpenBSD$ +--- plugins-src/TWPythonPlugin/TWPythonPlugin.pro.orig Wed Jun 29 18:03:14 2011 ++++ plugins-src/TWPythonPlugin/TWPythonPlugin.pro Mon Mar 12 12:02:28 2012 +@@ -50,8 +50,8 @@ macx { unix:!macx { # on Unix-ish platforms we should rely on pkgconfig # Python prior to 3.x doesn't register properly with pkg-config @@ -12,13 +12,3 @@ $OpenBSD: patch-plugins-src_TWPythonPlug # uncomment these lines (and comment those above) to use Python 3 # CONFIG += link_pkgconfig - # QMAKE_CXXFLAGS += -DPy_UNICODE_WIDE -@@ -55,7 +55,7 @@ - - QMAKE_CXXFLAGS += -fno-strict-aliasing - -- target.path = /usr/local/lib/texworks -+ target.path = ${WRKINST}/${PREFIX}/lib/texworks - INSTALLS += target - } - -- Best Regards Edd Barrett http://www.theunixzoo.co.uk