aboutsummaryrefslogtreecommitdiff
path: root/editors/texworks
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2012-12-06 15:06:39 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2012-12-06 15:06:39 +0000
commita2d15ac732c6365ced0f245e6b6cde6d98f6f165 (patch)
tree24f6da022b11868f7095cf6f7f65201e8ad09569 /editors/texworks
parent7e06c048aab2cd22780f9d77aa5a7f2dcfad5947 (diff)
Notes
Diffstat (limited to 'editors/texworks')
-rw-r--r--editors/texworks/Makefile38
-rw-r--r--editors/texworks/distinfo4
2 files changed, 28 insertions, 14 deletions
diff --git a/editors/texworks/Makefile b/editors/texworks/Makefile
index 0cdff0da76ac..ce1470854138 100644
--- a/editors/texworks/Makefile
+++ b/editors/texworks/Makefile
@@ -2,41 +2,55 @@
# $FreeBSD$
PORTNAME= texworks
-PORTVERSION= 0.2.2
-PORTREVISION= 6
+PORTVERSION= 0.4.4
CATEGORIES= editors
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
+DISTNAME= ${PORTNAME}-${PORTVERSION}-r${VCS_REVISION}
MAINTAINER= gahr@FreeBSD.org
COMMENT= Simple TeX front-end program
+LICENSE= GPLv2
+
BUILD_DEPENDS= hunspell:${PORTSDIR}/textproc/hunspell
LIB_DEPENDS= poppler-qt4:${PORTSDIR}/graphics/poppler-qt4
-USE_GMAKE= yes
+USE_GNOME= pkgconfig
MAKE_JOBS_SAFE= yes
USE_QT4= qmake_build gui corelib rcc_build moc_build uic_build \
dbus xml
-
-MAKE_ENV+= QTDIR=${QT_PREFIX}
+QMAKE_ARGS+= INSTALL_PREFIX=${PREFIX} \
+ DATA_DIR=${DATADIR} \
+ DOCS_DIR=${DOCSDIR} \
+ ICON_DIR=${PREFIX}/share/pixmaps \
+ DESKTOP_DIR=${PREFIX}/share/applications \
+ MAN_DIR=${MAN1PREFIX}/man/man1 \
+ TW_DICPATH=${LOCALBASE}/hunspell \
+ TW_HELPPATH=${DOCSDIR}
+
+VCS_REVISION= 1004
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
DESKTOP_ENTRIES="TexWorks" \
"Lowering the entry barrier to the TeX world" \
- "TeXworks.png" \
+ "TeXworks" \
"texworks" \
- "Application;Utility;" \
+ "Utility;" \
false
+
+MAN1= texworks.1
PLIST_FILES= bin/texworks \
share/pixmaps/TeXworks.png
+PORTDOCS= *
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
+.endif
@${REINPLACE_CMD} -e 's|\/usr\/share|\${LOCALBASE}\/share|g' ${WRKSRC}/src/TWUtils.cpp
do-configure:
- @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${QMAKE} TeXworks.pro
-
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/texworks ${PREFIX}/bin/
- ${INSTALL_DATA} ${WRKSRC}/res/images/TeXworks.png ${PREFIX}/share/pixmaps/TeXworks.png
+ @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${QMAKE} ${QMAKE_ARGS} TeXworks.pro
.include <bsd.port.mk>
diff --git a/editors/texworks/distinfo b/editors/texworks/distinfo
index da9f989f4313..4355fc7947f9 100644
--- a/editors/texworks/distinfo
+++ b/editors/texworks/distinfo
@@ -1,2 +1,2 @@
-SHA256 (texworks-0.2.2.tar.gz) = 3f93d8c0a1be9eb2033a1ece1366144b73bff191c38b84126325a208d4acdf59
-SIZE (texworks-0.2.2.tar.gz) = 1899996
+SHA256 (texworks-0.4.4-r1004.tar.gz) = 5a51867cb88dd1496c88664b484d9b8b6e267e68bec967a8a0b45d3c77bff5b4
+SIZE (texworks-0.4.4-r1004.tar.gz) = 5305883