diff -urN /usr/ports/editors/texworks/Makefile editors/texworks/Makefile --- /usr/ports/editors/texworks/Makefile 2016-04-01 23:18:44.050474000 +0900 +++ editors/texworks/Makefile 2016-04-12 18:00:00.000000000 +0900 @@ -2,99 +2,46 @@ # $FreeBSD: head/editors/texworks/Makefile 412346 2016-04-01 14:00:51Z mat $ PORTNAME= texworks -PORTVERSION= 0.4.6 -PORTREVISION= 1 +PORTVERSION= 0.6.0 DISTVERSIONPREFIX= release- CATEGORIES= editors MAINTAINER= hrs@FreeBSD.org COMMENT= Simple TeX front-end program -LICENSE= GPLv2 +LICENSE= GPLv2+ BUILD_DEPENDS= hunspell:textproc/hunspell LIB_DEPENDS= libpoppler-qt4.so:graphics/poppler-qt4 -USES= pkgconfig qmake USE_GITHUB= yes GH_ACCOUNT= TeXworks -USE_QT4= gui corelib rcc_build moc_build uic_build \ - dbus xml scripttools designer_build -QMAKE_ARGS= INSTALL_PREFIX=${PREFIX} \ - DATA_DIR=${DATADIR} \ - DOCS_DIR=${DOCSDIR} \ - ICON_DIR=${PREFIX}/share/pixmaps \ - DESKTOP_DIR=${PREFIX}/share/applications \ - MAN_DIR=${PREFIX}/man/man1 \ - TW_DICPATH=${LOCALBASE}/share/hunspell \ - TW_HELPPATH=${DOCSDIR} \ - TW_PLUGINPATH=${PREFIX}/lib/texworks -USE_TEX= synctex -DESKTOP_ENTRIES="TexWorks" \ - "Lowering the entry barrier to the TeX world" \ - "TeXworks" \ - "${PORTNAME}" \ - "Utility;Qt;" \ - true +USES= cmake:outsource desktop-file-utils gmake pkgconfig +USE_QT4= corelib dbus gui scripttools xml \ + designer_build moc_build qmake_build rcc_build uic_build +USE_TEX= synctex +CMAKE_ARGS= -DTeXworks_HELP_DIR:PATH=${DOCSDIR_REL} \ + -DTeXworks_DIC_DIR:PATH=${LOCALBASE}/share/hunspell \ + -DTeXworks_DOCS_DIR:PATH=${DOCSDIR_REL} \ + -DTeXworks_MAN_DIR:PATH=man/man1 +PORTDOCS= * PLIST_FILES= bin/texworks \ man/man1/texworks.1.gz \ + share/appdata/texworks.appdata.xml \ + share/applications/texworks.desktop \ share/pixmaps/TeXworks.png -PLIST_DIRS= lib/texworks -PORTDOCS= * -OPTIONS_DEFINE= DOCS LUA PYTHON -OPTIONS_DEFAULT=DOCS -LUA_USES= lua:51 -LUA_PLIST_FILES=lib/texworks/libTWLuaPlugin.so -PYTHON_USES= python:3 -PYTHON_PLIST_FILES=lib/texworks/libTWPythonPlugin.so - -post-extract: - cd ${WRKSRC} && ${INSTALL_DATA} GitArchiveInfo.txt src/GitRev.h - -post-patch: - @${REINPLACE_CMD} -e 's,/usr/share,${LOCALBASE}/share,' \ - ${WRKSRC}/src/TWUtils.cpp - @${REINPLACE_CMD} -e 's,lua5.1,lua-5.1,' \ - ${WRKSRC}/plugins-src/TWLuaPlugin/TWLuaPlugin.pro - @${REINPLACE_CMD} -e '53,54s,^,#,' \ - -e '57,59s,#,,' \ - -e 's,python3,python-${PYTHON_VER},' \ - ${WRKSRC}/plugins-src/TWPythonPlugin/TWPythonPlugin.pro - -post-patch-DOCS-off: - @${REINPLACE_CMD} -e '/INSTALLS/s,documentation manual ,,' \ - ${WRKSRC}/TeXworks.pro - -post-configure-LUA-on: - cd ${WRKSRC}/plugins-src/TWLuaPlugin && ${SETENV} ${CONFIGURE_ENV} \ - ${QMAKE} ${QMAKE_ARGS} - -post-configure-PYTHON-on: - cd ${WRKSRC}/plugins-src/TWPythonPlugin && ${SETENV} ${CONFIGURE_ENV} \ - ${QMAKE} ${QMAKE_ARGS} - -post-build-LUA-on: - cd ${WRKSRC}/plugins-src/TWLuaPlugin && ${MAKE} - -post-build-PYTHON-on: - cd ${WRKSRC}/plugins-src/TWPythonPlugin && ${MAKE} - -post-install: - @${MKDIR} ${STAGEDIR}${PREFIX}/lib/texworks - -post-install-LUA-on: - ${MKDIR} ${STAGEDIR}${PREFIX}/lib/texworks - cd ${WRKSRC}/plugins-src/TWLuaPlugin && \ - ${INSTALL_DATA} libTWLuaPlugin.so \ - ${STAGEDIR}${PREFIX}/lib/texworks - -post-install-PYTHON-on: - ${MKDIR} ${STAGEDIR}${PREFIX}/lib/texworks - cd ${WRKSRC}/plugins-src/TWPythonPlugin && \ - ${INSTALL_DATA} libTWPythonPlugin.so \ - ${STAGEDIR}${PREFIX}/lib/texworks +OPTIONS_DEFINE= DOCS LUA PYTHON + +LUA_USES= lua:52 +LUA_CMAKE_ON= -DWITH_LUA:BOOL=ON +LUA_CMAKE_OFF= -DWITH_LUA:BOOL=OFF +LUA_PLIST_FILES= lib/texworks/libTWLuaPlugin.so +PYTHON_USES= python:3 +PYTHON_CMAKE_ON= -DWITH_PYTHON:BOOL=ON +PYTHON_CMAKE_OFF= -DWITH_PYTHON:BOOL=OFF +PYTHON_PLIST_FILES= lib/texworks/libTWPythonPlugin.so .include diff -urN /usr/ports/editors/texworks/distinfo editors/texworks/distinfo --- /usr/ports/editors/texworks/distinfo 2015-12-08 19:51:17.881682000 +0900 +++ editors/texworks/distinfo 2016-04-12 18:00:00.000000000 +0900 @@ -1,2 +1,2 @@ -SHA256 (TeXworks-texworks-release-0.4.6_GH0.tar.gz) = 58650574c1e3234c38cddc3375f8043a83cc65075839030fc7089471af6a3bde -SIZE (TeXworks-texworks-release-0.4.6_GH0.tar.gz) = 11271881 +SHA256 (TeXworks-texworks-release-0.6.0_GH0.tar.gz) = abb0dd76fe8870d0caa83f8f98743b44b6d5ce6e4df406e47eb6d0ffc2559f7b +SIZE (TeXworks-texworks-release-0.6.0_GH0.tar.gz) = 11307312 diff -urN /usr/ports/editors/texworks/files/patch-TeXworks.pro editors/texworks/files/patch-TeXworks.pro --- /usr/ports/editors/texworks/files/patch-TeXworks.pro 2015-08-24 03:50:04.784856000 +0900 +++ editors/texworks/files/patch-TeXworks.pro 1970-01-01 09:00:00.000000000 +0900 @@ -1,45 +0,0 @@ ---- TeXworks.pro.orig 2015-04-03 18:05:39 UTC -+++ TeXworks.pro -@@ -108,7 +108,8 @@ unix:!macx { # on Unix-ish platforms we - CONFIG += link_pkgconfig - PKGCONFIG += hunspell - PKGCONFIG += poppler-qt4 -- PKGCONFIG += zlib -+ PKGCONFIG += synctex -+ LIBS += -lz - - # Enclose the path in \\\" (which later gets expanded to \", which in turn - # gets expanded to " in the c++ code) -@@ -180,8 +181,7 @@ HEADERS += src/TWApp.h \ - src/TWVersion.h \ - src/TWTextCodecs.h \ - src/SvnRev.h \ -- src/synctex_parser.h \ -- src/synctex_parser_utils.h \ -+ src/TWSynchronizer.h \ - src/ClickableLabel.h \ - src/ConfigurableApp.h \ - src/TWSystemCmd.h -@@ -225,8 +225,7 @@ SOURCES += src/main.cpp \ - src/ResourcesDialog.cpp \ - src/ScriptManager.cpp \ - src/ConfirmDelete.cpp \ -- src/synctex_parser.c \ -- src/synctex_parser_utils.c -+ src/TWSynchronizer.cpp - - RESOURCES += res/resources.qrc \ - res/resfiles.qrc -@@ -259,10 +258,10 @@ unix:!macx { # installation on Unix-ish - isEmpty(DESKTOP_DIR):DESKTOP_DIR = $$DATA_DIR/applications - - target.path = $$BIN_DIR -- documentation.files = COPYING README NEWS -+ documentation.files = README NEWS - documentation.path = $$DOCS_DIR - manual.files = manual/* -- manual.path = $$TW_HELPPATH -+ manual.path = DOCS_DIR - icon.files = res/images/TeXworks.png - icon.path = $$ICON_DIR - man.files = man/texworks.1 diff -urN /usr/ports/editors/texworks/pkg-descr editors/texworks/pkg-descr --- /usr/ports/editors/texworks/pkg-descr 2015-08-24 03:50:04.783665000 +0900 +++ editors/texworks/pkg-descr 2016-04-12 18:00:00.000000000 +0900 @@ -1,11 +1,17 @@ -The TeXworks project is an effort to build a simple TeX front-end program -(working environment) that will be available for all today's major desktop -operating systems. It is deliberately modeled after Dick Koch's award- -winning TeXShop for Mac OS X. +TeXworks is an environment for authoring TeX (LaTeX, ConTeXt, etc) +documents, with a Unicode-based, TeX-aware editor, integrated PDF +viewer, and a clean, simpl e interface accessible to casual and +non-technical users. -TeXworks includes an integrated PDF viewer, based on the Poppler library, -and supports source/preview synchronization. This capability is based on -the "SyncTeX" feature developed by Jerome Laurens, and supported by both -the pdfTeX and XeTeX programs in TeX Live, and other current distributions. +TeXworks is inspired by Dick Koch's award-winning TeXShop program for +Mac OS X, which has made quality typesetting through TeX accessible to a +wider community of users, without a technical or intimidating face. The +goal of TeXworks is to deliver a similarly integrated, easy-to-use +environment for users on other platforms, especially GNU/Linux and +Windows. + +Among other things, TeXworks features an integrated PDF previewer, +synchronization between the TeX files and the PDF output, and an +extensible scripting interface. WWW: http://www.tug.org/texworks/