On Tue, Oct 26, 2010 at 03:20:37PM +0200, Marcin Piotr Pawlowski wrote: > Hi, > last week I've cooked up an update of texmaker to 2.0. I've noticed > maintainer almost a week ago but didn't get any response so I'm > posting it here (with up-to-date minor modifications). > > Tested on amd64. > > Cheers, > mpp >
I also already suggested diff for 2.0. Sent to the ports@ and maintainer no answer with 24 Aug. Attach diff for -current -- Alexandr Shadchin Index: Makefile =================================================================== RCS file: /cvs/ports/editors/texmaker/Makefile,v retrieving revision 1.7 diff -u -p -r1.7 Makefile --- Makefile 23 Oct 2010 18:26:21 -0000 1.7 +++ Makefile 26 Oct 2010 13:33:34 -0000 @@ -2,44 +2,44 @@ # $FreeBSD: ports/editors/texmaker/Makefile,v 1.2 2004/01/09 09:16:33 krion Exp $ COMMENT= LaTeX development environment -DISTNAME= texmaker-1.11 -REVISION= 0 -CATEGORIES= editors +DISTNAME= texmaker-2.0 +CATEGORIES= editors HOMEPAGE= http://www.xm1math.net/texmaker/ -MAINTAINER= Thomas Delaet <tho...@delaet.org> +MAINTAINER= Thomas Delaet <tho...@delaet.org> -# GPL +# GPLv2 PERMIT_PACKAGE_CDROM= Yes -PERMIT_PACKAGE_FTP= Yes -PERMIT_DISTFILES_CDROM= Yes -PERMIT_DISTFILES_FTP= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes -WANTLIB= X11 Xext c m pthread pthread-stubs stdc++ xcb - -MASTER_SITES= ${HOMEPAGE} +MASTER_SITES= ${HOMEPAGE} EXTRACT_SUFX= .tar.bz2 -MODULES= x11/qt3 +WANTLIB += QtDBus QtGui QtNetwork QtWebKit QtXml QtXmlPatterns c hunspell-1.2 +WANTLIB += m phonon poppler poppler-qt4 pthread sqlite3 stdc++ + +MODULES= x11/qt4 + +RUN_DEPENDS= ::print/texlive/base \ + ::devel/desktop-file-utils + +LIB_DEPENDS= ::textproc/hunspell \ + ::print/poppler,-qt4 + NO_REGRESS= Yes +FAKE_FLAGS= INSTALL_ROOT=${WRKINST} + do-configure: @cd ${WRKSRC} && \ - qmake-mt -makefile \ + qmake4 -unix \ -spec ${MODQT_LIBDIR}/mkspecs/openbsd-g++ \ - -unix \ - "LIBS+=-L/usr/local/lib -lm -lqt-mt" \ - "PREFIX=${LOCALBASE}" \ - "INCLUDEPATH+=${MODQT_INCDIR}" \ - "UIC=${MODQT_UIC}" \ - "MOC=${MODQT_MOC}" \ - texmaker.pro && \ - perl -i -pe 's/ -lqt / -lpthread /' Makefile - -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/texmaker ${PREFIX}/bin - ${INSTALL_DATA_DIR} ${PREFIX}/share/texmaker - ${INSTALL_DATA} ${WRKSRC}/utilities/[a-z]* ${PREFIX}/share/texmaker + PREFIX=${LOCALBASE} \ + DESKTOPDIR=${LOCALBASE}/share/applications \ + ICONDIR=${LOCALBASE}/share/pixmaps \ + texmaker.pro .include <bsd.port.mk> Index: distinfo =================================================================== RCS file: /cvs/ports/editors/texmaker/distinfo,v retrieving revision 1.3 diff -u -p -r1.3 distinfo --- distinfo 5 Apr 2007 15:38:08 -0000 1.3 +++ distinfo 26 Oct 2010 13:33:34 -0000 @@ -1,5 +1,5 @@ -MD5 (texmaker-1.11.tar.bz2) = PduRCqVpPzM2NYQuAiPtYg== -RMD160 (texmaker-1.11.tar.bz2) = FjpkCXHFxfCU3fnOoSGo2etClUc= -SHA1 (texmaker-1.11.tar.bz2) = 8XjD/b4c4jKTCLfTBfeCVVk5NrE= -SHA256 (texmaker-1.11.tar.bz2) = 0wt9Z4kl3YTldVlY8Dmf2n2yrsYdltuMo5cXfx81Ers= -SIZE (texmaker-1.11.tar.bz2) = 697937 +MD5 (texmaker-2.0.tar.bz2) = n+sRH+Pm1CDg291RQLGVyg== +RMD160 (texmaker-2.0.tar.bz2) = hD00R93IbB7zWd9CgVEAJpdB3+U= +SHA1 (texmaker-2.0.tar.bz2) = gQaH+hp+yAzg7p/8yv6RunKEyrw= +SHA256 (texmaker-2.0.tar.bz2) = Y41IkJ/+Czsj1lAsO4Xn4xGvcHzJNE9rM+/w6jH1mas= +SIZE (texmaker-2.0.tar.bz2) = 3235821 Index: patches/patch-latexeditor_h =================================================================== RCS file: patches/patch-latexeditor_h diff -N patches/patch-latexeditor_h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-latexeditor_h 26 Oct 2010 13:33:34 -0000 @@ -0,0 +1,12 @@ +$OpenBSD$ +--- latexeditor.h.orig Sat Feb 6 17:19:40 2010 ++++ latexeditor.h Sat Feb 6 17:19:59 2010 +@@ -22,7 +22,7 @@ + + #include "latexhighlighter.h" + #include "parenmatcher.h" +-#include "hunspell/hunspell.hxx" ++#include <hunspell.hxx> + + //class QCompleter; + //class ParenMatcher; Index: patches/patch-latexeditorview_h =================================================================== RCS file: patches/patch-latexeditorview_h diff -N patches/patch-latexeditorview_h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-latexeditorview_h 26 Oct 2010 13:33:34 -0000 @@ -0,0 +1,12 @@ +$OpenBSD$ +--- latexeditorview.h.orig Sat Feb 6 17:20:18 2010 ++++ latexeditorview.h Sat Feb 6 17:20:30 2010 +@@ -18,7 +18,7 @@ + #include "latexeditor.h" + #include "linenumberwidget.h" + #include "findwidget.h" +-#include "hunspell/hunspell.hxx" ++#include <hunspell.hxx> + + class LatexEditorView : public QWidget { + Q_OBJECT Index: patches/patch-latexhighlighter_h =================================================================== RCS file: patches/patch-latexhighlighter_h diff -N patches/patch-latexhighlighter_h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-latexhighlighter_h 26 Oct 2010 13:33:34 -0000 @@ -0,0 +1,12 @@ +$OpenBSD$ +--- latexhighlighter.h.orig Sat Feb 6 17:20:42 2010 ++++ latexhighlighter.h Sat Feb 6 17:20:57 2010 +@@ -19,7 +19,7 @@ + #include <QTextCharFormat> + #include <QColor> + #include <QTextBlockUserData> +-#include "hunspell/hunspell.hxx" ++#include <hunspell.hxx> + + class QTextDocument; + Index: patches/patch-spellerdialog_h =================================================================== RCS file: patches/patch-spellerdialog_h diff -N patches/patch-spellerdialog_h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-spellerdialog_h 26 Oct 2010 13:33:34 -0000 @@ -0,0 +1,12 @@ +$OpenBSD$ +--- spellerdialog.h.orig Sat Jan 30 11:45:07 2010 ++++ spellerdialog.h Sat Jan 30 11:17:14 2010 +@@ -13,7 +13,7 @@ + + #include "ui_spellerdialog.h" + #include "latexeditor.h" +-#include "hunspell/hunspell.hxx" ++#include <hunspell.hxx> + + #include <QTextCursor> + Index: patches/patch-texmaker_cpp =================================================================== RCS file: patches/patch-texmaker_cpp diff -N patches/patch-texmaker_cpp --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-texmaker_cpp 26 Oct 2010 13:33:34 -0000 @@ -0,0 +1,21 @@ +$OpenBSD$ +--- texmaker.cpp.orig Thu Jul 29 14:19:28 2010 ++++ texmaker.cpp Fri Jul 30 21:06:38 2010 +@@ -2621,7 +2621,7 @@ makeidx_package=config->value( "Quick/MakeIndex",false + author=config->value("Quick/Author","").toString(); + + #if defined( Q_WS_X11 ) +-QString dicDir=PREFIX"/share/texmaker/"; ++QString dicDir=PREFIX"/share/hunspell/"; + #endif + #if defined( Q_WS_MACX ) + QString dicDir=QCoreApplication::applicationDirPath() + "/../Resources/"; +@@ -2631,7 +2631,7 @@ QString dicDir=QCoreApplication::applicationDirPath() + #endif + QString defaultDic=dicDir+QString(QLocale::system().name())+".dic"; + QFileInfo fi(defaultDic); +-if (!fi.exists() || !fi.isReadable()) defaultDic=dicDir+"en_GB.dic"; ++if (!fi.exists() || !fi.isReadable()) defaultDic=dicDir+"default.dic"; + spell_dic=config->value("Spell/Dic",defaultDic).toString(); + + spell_ignored_words=config->value("Spell/Words","").toString(); Index: patches/patch-texmaker_h =================================================================== RCS file: patches/patch-texmaker_h diff -N patches/patch-texmaker_h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-texmaker_h 26 Oct 2010 13:33:34 -0000 @@ -0,0 +1,12 @@ +$OpenBSD$ +--- texmaker.h.orig Thu Jul 22 23:18:06 2010 ++++ texmaker.h Fri Jul 30 21:09:54 2010 +@@ -43,7 +43,7 @@ + #include "logeditor.h" + #include "gotolinedialog.h" + #include "replacedialog.h" +-#include "hunspell/hunspell.hxx" ++#include <hunspell.hxx> + #include "browser.h" + #include "pdfviewer.h" + Index: patches/patch-texmaker_pro =================================================================== RCS file: patches/patch-texmaker_pro diff -N patches/patch-texmaker_pro --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-texmaker_pro 26 Oct 2010 13:33:34 -0000 @@ -0,0 +1,81 @@ +$OpenBSD$ +--- texmaker.pro.orig Thu Jul 29 21:40:36 2010 ++++ texmaker.pro Fri Jul 30 21:12:41 2010 +@@ -4,7 +4,8 @@ TARGET = texmaker + QT += network \ + xml \ + webkit +-CONFIG += qt warn_off release ++CONFIG += qt warn_off release link_pkgconfig ++PKGCONFIG = hunspell poppler-qt4 + TEXMAKERVERSION=2.0 + DEFINES += TEXMAKERVERSION=\\\"$${TEXMAKERVERSION}\\\" + ############################### +@@ -48,25 +49,6 @@ HEADERS += texmaker.h \ + pdfdocumentwidget.h \ + pdfscrollarea.h \ + userquickdialog.h \ +- hunspell/affentry.hxx \ +- hunspell/affixmgr.hxx \ +- hunspell/atypes.hxx \ +- hunspell/baseaffix.hxx \ +- hunspell/csutil.hxx \ +- hunspell/dictmgr.hxx \ +- hunspell/hashmgr.hxx \ +- hunspell/htypes.hxx \ +- hunspell/hunspell.hxx \ +- hunspell/hunspell.h \ +- hunspell/langnum.hxx \ +- hunspell/license.hunspell \ +- hunspell/phonet.hxx \ +- hunspell/suggestmgr.hxx \ +- hunspell/license.myspell \ +- hunspell/filemgr.hxx \ +- hunspell/hunzip.hxx \ +- hunspell/replist.hxx \ +- hunspell/w_char.hxx \ + singleapp/qtlocalpeer.h \ + singleapp/qtlockedfile.h \ + singleapp/qtsingleapplication.h \ +@@ -111,18 +93,6 @@ SOURCES += main.cpp \ + pdfdocumentwidget.cpp \ + pdfscrollarea.cpp \ + userquickdialog.cpp \ +- hunspell/affentry.cxx \ +- hunspell/affixmgr.cxx \ +- hunspell/csutil.cxx \ +- hunspell/dictmgr.cxx \ +- hunspell/hashmgr.cxx \ +- hunspell/hunspell.cxx \ +- hunspell/phonet.cxx \ +- hunspell/suggestmgr.cxx \ +- hunspell/utf_info.cxx \ +- hunspell/filemgr.cxx \ +- hunspell/replist.cxx \ +- hunspell/hunzip.cxx \ + singleapp/qtlocalpeer.cpp \ + singleapp/qtlockedfile.cpp \ + singleapp/qtsingleapplication.cpp \ +@@ -248,21 +218,7 @@ utilities.files = doc/doc1.png \ + locale/texmaker_ru.qm \ + locale/texmaker_zh_CN.qm \ + locale/texmaker_zh_TW.qm \ +- locale/texmaker_cs.qm \ +- dictionaries/de_DE.aff \ +- dictionaries/de_DE.dic \ +- dictionaries/en_GB.aff \ +- dictionaries/en_GB.dic \ +- dictionaries/es_ES.aff \ +- dictionaries/es_ES.dic \ +- dictionaries/fr_FR.aff \ +- dictionaries/fr_FR.dic \ +- dictionaries/it_IT.aff \ +- dictionaries/it_IT.dic \ +- dictionaries/it_IT_README.txt \ +- dictionaries/README_de_DE_frami.txt \ +- dictionaries/README_DIC_fr_FR.txt \ +- dictionaries/README_es_ES.txt ++ locale/texmaker_cs.qm + INSTALLS += utilities + desktop.path = $${DESKTOPDIR} + desktop.files = utilities/texmaker.desktop Index: pkg/PLIST =================================================================== RCS file: /cvs/ports/editors/texmaker/pkg/PLIST,v retrieving revision 1.1.1.1 diff -u -p -r1.1.1.1 PLIST --- pkg/PLIST 9 Oct 2004 14:43:03 -0000 1.1.1.1 +++ pkg/PLIST 26 Oct 2010 13:33:34 -0000 @@ -1,8 +1,15 @@ @comment $OpenBSD: PLIST,v 1.1.1.1 2004/10/09 14:43:03 naddy Exp $ -bin/texmaker +...@bin bin/texmaker +share/applications/texmaker.desktop +share/pixmaps/ +share/pixmaps/texmaker.png share/texmaker/ -share/texmaker/blank.gif +share/texmaker/AUTHORS +share/texmaker/CHANGELOG.txt +share/texmaker/COPYING +share/texmaker/blank.png share/texmaker/doc1.png +share/texmaker/doc10.png share/texmaker/doc11.png share/texmaker/doc12.png share/texmaker/doc13.png @@ -10,23 +17,57 @@ share/texmaker/doc14.png share/texmaker/doc15.png share/texmaker/doc16.png share/texmaker/doc17.png +share/texmaker/doc18.png +share/texmaker/doc19.png share/texmaker/doc2.png +share/texmaker/doc20.png +share/texmaker/doc21.png +share/texmaker/doc22.png share/texmaker/doc3.png share/texmaker/doc4.png share/texmaker/doc5.png share/texmaker/doc6.png +share/texmaker/doc6bis.png share/texmaker/doc7.png share/texmaker/doc8.png +share/texmaker/doc9.png share/texmaker/latexhelp.html share/texmaker/next.gif share/texmaker/next_d.gif share/texmaker/prev.gif share/texmaker/prev_d.gif share/texmaker/psheader.txt +share/texmaker/qt_cs.qm +share/texmaker/qt_de.qm +share/texmaker/qt_es.qm +share/texmaker/qt_fr.qm +share/texmaker/qt_pt.qm +share/texmaker/qt_ru.qm +share/texmaker/qt_zh_CN.qm +share/texmaker/qt_zh_TW.qm share/texmaker/style.css +share/texmaker/texmaker.svg +share/texmaker/texmaker128x128.png share/texmaker/texmaker16x16.png +share/texmaker/texmaker22x22.png share/texmaker/texmaker32x32.png share/texmaker/texmaker48x48.png +share/texmaker/texmaker64x64.png +share/texmaker/texmaker_ca.qm +share/texmaker/texmaker_cs.qm +share/texmaker/texmaker_de.qm +share/texmaker/texmaker_es.qm +share/texmaker/texmaker_fa.qm +share/texmaker/texmaker_fr.qm +share/texmaker/texmaker_gl.qm +share/texmaker/texmaker_it.qm +share/texmaker/texmaker_pt_BR.qm +share/texmaker/texmaker_ru.qm +share/texmaker/texmaker_zh_CN.qm +share/texmaker/texmaker_zh_TW.qm share/texmaker/up.gif share/texmaker/up_d.gif -share/texmaker/usermanual.html +share/texmaker/usermanual_en.html +share/texmaker/usermanual_fr.html +...@exec %D/bin/update-desktop-database +...@unexec-delete %D/bin/update-desktop-database