diff -urN /usr/ports/editors/texworks/Makefile editors/texworks/Makefile --- /usr/ports/editors/texworks/Makefile 2015-05-12 05:23:07.988161000 +0900 +++ editors/texworks/Makefile 2015-05-19 00:00:00.000000000 +0900 @@ -2,104 +2,51 @@ # $FreeBSD: head/editors/texworks/Makefile 386097 2015-05-11 18:34:57Z mat $ PORTNAME= texworks -PORTVERSION= 0.4.5 -DISTVERSIONSUFFIX= -r${VCS_REVISION} -PORTREVISION= 4 +PORTVERSION= 0.4.6 +DISTVERSIONPREFIX= release- CATEGORIES= editors -MASTER_SITES= GOOGLE_CODE +MASTER_SITES= GH MAINTAINER= ports@FreeBSD.org COMMENT= Simple TeX front-end program -LICENSE= GPLv2 - -OPTIONS_DEFINE= DOCS LUA PYTHON +LICENSE= GPLv2 # (or later) BUILD_DEPENDS= hunspell:${PORTSDIR}/textproc/hunspell LIB_DEPENDS= libpoppler-qt4.so:${PORTSDIR}/graphics/poppler-qt4 -USES= pkgconfig qmake -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 -LDFLAGS+= -lz - -VCS_REVISION= 1281 -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} - -DESKTOP_ENTRIES="TexWorks" \ - "Lowering the entry barrier to the TeX world" \ - "TeXworks" \ - "${PORTNAME}" \ - "Utility;Qt;" \ - true +USE_GITHUB= yes +GH_ACCOUNT= TeXworks +GH_PROJECT= texworks + +USES= cmake desktop-file-utils gmake pkgconfig +USE_QT4= corelib dbus gui scripttools xml \ + designer_build moc_build qmake_build rcc_build uic_build +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= * -.include +OPTIONS_DEFINE= DOCS LUA PYTHON -.if ${PORT_OPTIONS:MLUA} -USES+= lua:51 -PLIST_FILES+= lib/texworks/libTWLuaPlugin.so -.endif - -.if ${PORT_OPTIONS:MPYTHON} -USES+= python:3 -PLIST_FILES+= lib/texworks/libTWPythonPlugin.so -.endif +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 post-patch: - @${REINPLACE_CMD} -e '/zlib/d; s|COPYING ||; /manual.path/s|TW_HELPPATH|DOCS_DIR|' \ - ${WRKSRC}/TeXworks.pro - @${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|^|#|; 57,59s|#||; s|python3|python-${PYTHON_VER}|' \ - ${WRKSRC}/plugins-src/TWPythonPlugin/TWPythonPlugin.pro -.if !${PORT_OPTIONS:MDOCS} - @${REINPLACE_CMD} -e '/INSTALLS/s|documentation manual ||' \ - ${WRKSRC}/TeXworks.pro -.endif - -post-configure: -.if ${PORT_OPTIONS:MLUA} - cd ${WRKSRC}/plugins-src/TWLuaPlugin && ${SETENV} ${CONFIGURE_ENV} \ - ${QMAKE} ${QMAKE_ARGS} -.endif -.if ${PORT_OPTIONS:MPYTHON} - cd ${WRKSRC}/plugins-src/TWPythonPlugin && ${SETENV} ${CONFIGURE_ENV} \ - ${QMAKE} ${QMAKE_ARGS} -.endif - -post-build: -.if ${PORT_OPTIONS:MLUA} - cd ${WRKSRC}/plugins-src/TWLuaPlugin && ${MAKE} -.endif -.if ${PORT_OPTIONS:MPYTHON} - cd ${WRKSRC}/plugins-src/TWPythonPlugin && ${MAKE} -.endif - -post-install: - @${MKDIR} ${STAGEDIR}${PREFIX}/lib/texworks -.if ${PORT_OPTIONS:MLUA} - ${MKDIR} ${STAGEDIR}${PREFIX}/lib/texworks - ${INSTALL_DATA} ${WRKSRC}/plugins-src/TWLuaPlugin/libTWLuaPlugin.so ${STAGEDIR}${PREFIX}/lib/texworks -.endif -.if ${PORT_OPTIONS:MPYTHON} - ${INSTALL_DATA} ${WRKSRC}/plugins-src/TWPythonPlugin/libTWPythonPlugin.so ${STAGEDIR}${PREFIX}/lib/texworks -.endif + @${REINPLACE_CMD} -e \ + '/COPYING/d' ${WRKSRC}/src/CMakeLists.txt .include diff -urN /usr/ports/editors/texworks/distinfo editors/texworks/distinfo --- /usr/ports/editors/texworks/distinfo 2014-06-21 17:47:48.000000000 +0900 +++ editors/texworks/distinfo 2015-05-19 00:00:00.000000000 +0900 @@ -1,2 +1,2 @@ -SHA256 (texworks-0.4.5-r1281.tar.gz) = dd30ce417ff8241083b6894395489bc529660a46bcb45b7d82d4c6a3f8e6e2de -SIZE (texworks-0.4.5-r1281.tar.gz) = 5335925 +SHA256 (TeXworks-texworks-release-0.4.6_GH0.tar.gz) = 58650574c1e3234c38cddc3375f8043a83cc65075839030fc7089471af6a3bde +SIZE (TeXworks-texworks-release-0.4.6_GH0.tar.gz) = 11271881 diff -urN /usr/ports/editors/texworks/pkg-descr editors/texworks/pkg-descr --- /usr/ports/editors/texworks/pkg-descr 2014-06-21 17:47:48.000000000 +0900 +++ editors/texworks/pkg-descr 2015-05-19 00: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/