diff options
author | danfe <danfe@FreeBSD.org> | 2012-12-07 00:55:35 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2012-12-07 00:55:35 +0800 |
commit | 8249d2bccccfe38863bf4638df4aae7a369f2464 (patch) | |
tree | d97523b8b5fcff0bdf0b958f4f1e648c12b03479 /editors | |
parent | 85c356918df089d51fe02a2990de7c273d676522 (diff) | |
download | freebsd-ports-gnome-8249d2bccccfe38863bf4638df4aae7a369f2464.tar.gz freebsd-ports-gnome-8249d2bccccfe38863bf4638df4aae7a369f2464.tar.zst freebsd-ports-gnome-8249d2bccccfe38863bf4638df4aae7a369f2464.zip |
- Cleanup the Makefile, NOPORTDOCS -> PORT_OPTIONS:MDOCS
- Augment port description
Approved by: maintainer (gahr)
Feature safe: yes
Diffstat (limited to 'editors')
-rw-r--r-- | editors/texworks/Makefile | 25 | ||||
-rw-r--r-- | editors/texworks/pkg-descr | 13 |
2 files changed, 26 insertions, 12 deletions
diff --git a/editors/texworks/Makefile b/editors/texworks/Makefile index ce1470854138..be61ac238591 100644 --- a/editors/texworks/Makefile +++ b/editors/texworks/Makefile @@ -1,10 +1,10 @@ -# Created by: Diego DepaolI <trebestie@gmail.com> +# Created by: Diego Depaoli <trebestie@gmail.com> # $FreeBSD$ PORTNAME= texworks PORTVERSION= 0.4.4 CATEGORIES= editors -MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} +MASTER_SITES= GOOGLE_CODE DISTNAME= ${PORTNAME}-${PORTVERSION}-r${VCS_REVISION} MAINTAINER= gahr@FreeBSD.org @@ -16,10 +16,9 @@ BUILD_DEPENDS= hunspell:${PORTSDIR}/textproc/hunspell LIB_DEPENDS= poppler-qt4:${PORTSDIR}/graphics/poppler-qt4 USE_GNOME= pkgconfig -MAKE_JOBS_SAFE= yes USE_QT4= qmake_build gui corelib rcc_build moc_build uic_build \ dbus xml -QMAKE_ARGS+= INSTALL_PREFIX=${PREFIX} \ +QMAKE_ARGS= INSTALL_PREFIX=${PREFIX} \ DATA_DIR=${DATADIR} \ DOCS_DIR=${DOCSDIR} \ ICON_DIR=${PREFIX}/share/pixmaps \ @@ -27,6 +26,7 @@ QMAKE_ARGS+= INSTALL_PREFIX=${PREFIX} \ MAN_DIR=${MAN1PREFIX}/man/man1 \ TW_DICPATH=${LOCALBASE}/hunspell \ TW_HELPPATH=${DOCSDIR} +MAKE_JOBS_SAFE= yes VCS_REVISION= 1004 WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} @@ -34,7 +34,7 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} DESKTOP_ENTRIES="TexWorks" \ "Lowering the entry barrier to the TeX world" \ "TeXworks" \ - "texworks" \ + "${PORTNAME}" \ "Utility;" \ false @@ -43,14 +43,21 @@ PLIST_FILES= bin/texworks \ share/pixmaps/TeXworks.png PORTDOCS= * +OPTIONS_DEFINE= DOCS + +.include <bsd.port.options.mk> + post-patch: @${REINPLACE_CMD} -e '/zlib/d; s|COPYING ||' ${WRKSRC}/TeXworks.pro -.if defined(NOPORTDOCS) - @${REINPLACE_CMD} -e '/INSTALLS/s|documentation manual ||' ${WRKSRC}/TeXworks.pro +.if ! ${PORT_OPTIONS:MDOCS} + @${REINPLACE_CMD} -e '/INSTALLS/s|documentation manual ||' \ + ${WRKSRC}/TeXworks.pro .endif - @${REINPLACE_CMD} -e 's|\/usr\/share|\${LOCALBASE}\/share|g' ${WRKSRC}/src/TWUtils.cpp + @${REINPLACE_CMD} -e 's|/usr/share|${LOCALBASE}/share|' \ + ${WRKSRC}/src/TWUtils.cpp do-configure: - @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${QMAKE} ${QMAKE_ARGS} TeXworks.pro + @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \ + ${QMAKE} ${QMAKE_ARGS} TeXworks.pro .include <bsd.port.mk> diff --git a/editors/texworks/pkg-descr b/editors/texworks/pkg-descr index 3a4d49bf5c3c..b7937d9ab1d7 100644 --- a/editors/texworks/pkg-descr +++ b/editors/texworks/pkg-descr @@ -1,4 +1,11 @@ -The TeXworkS project is an effort to build a simple -TeX like TeXShop for Mac OS X. +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. -WWW: http://www.tug.org/texworks/ +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. + +WWW: http://www.tug.org/texworks/ |