View | Details | Raw Unified | Return to bug 200302 | Differences between
and this patch

Collapse All | Expand All

(-)editors/texworks/Makefile (-71 / +24 lines)
Lines 4-99 Link Here
4
PORTNAME=	texworks
4
PORTNAME=	texworks
5
PORTVERSION=	0.4.6
5
PORTVERSION=	0.4.6
6
DISTVERSIONPREFIX=	release-
6
DISTVERSIONPREFIX=	release-
7
PORTREVISION=	1
7
CATEGORIES=	editors
8
CATEGORIES=	editors
8
9
9
MAINTAINER=	hrs@FreeBSD.org
10
MAINTAINER=	hrs@FreeBSD.org
10
COMMENT=	Simple TeX front-end program
11
COMMENT=	Simple TeX front-end program
11
12
12
LICENSE=	GPLv2
13
LICENSE=	GPLv2+
13
14
14
BUILD_DEPENDS=	hunspell:${PORTSDIR}/textproc/hunspell
15
BUILD_DEPENDS=	hunspell:${PORTSDIR}/textproc/hunspell
15
LIB_DEPENDS=	libpoppler-qt4.so:${PORTSDIR}/graphics/poppler-qt4
16
LIB_DEPENDS=	libpoppler-qt4.so:${PORTSDIR}/graphics/poppler-qt4
16
17
17
USES=		pkgconfig qmake
18
USE_GITHUB=	yes
18
USE_GITHUB=	yes
19
GH_ACCOUNT=	TeXworks
19
GH_ACCOUNT=	TeXworks
20
USE_QT4=	gui corelib rcc_build moc_build uic_build \
21
		dbus xml scripttools designer_build
22
QMAKE_ARGS=	INSTALL_PREFIX=${PREFIX} \
23
		DATA_DIR=${DATADIR} \
24
		DOCS_DIR=${DOCSDIR} \
25
		ICON_DIR=${PREFIX}/share/pixmaps \
26
		DESKTOP_DIR=${PREFIX}/share/applications \
27
		MAN_DIR=${PREFIX}/man/man1 \
28
		TW_DICPATH=${LOCALBASE}/share/hunspell \
29
		TW_HELPPATH=${DOCSDIR} \
30
		TW_PLUGINPATH=${PREFIX}/lib/texworks
31
USE_TEX=	synctex
32
20
33
DESKTOP_ENTRIES="TexWorks" \
21
USES=		cmake desktop-file-utils gmake pkgconfig
34
		"Lowering the entry barrier to the TeX world" \
22
USE_QT4=	corelib dbus gui scripttools xml \
35
		"TeXworks" \
23
		designer_build moc_build qmake_build rcc_build uic_build
36
		"${PORTNAME}" \
24
USE_TEX=	synctex
37
		"Utility;Qt;" \
25
CMAKE_ARGS=	-DTeXworks_HELP_DIR:PATH=${DOCSDIR_REL} \
38
		true
26
		-DTeXworks_DIC_DIR:PATH=${LOCALBASE}/share/hunspell \
27
		-DTeXworks_DOCS_DIR:PATH=${DOCSDIR_REL} \
28
		-DTeXworks_MAN_DIR:PATH=man/man1
39
29
30
PORTDOCS=	*
40
PLIST_FILES=	bin/texworks \
31
PLIST_FILES=	bin/texworks \
41
		man/man1/texworks.1.gz \
32
		man/man1/texworks.1.gz \
33
		share/appdata/texworks.appdata.xml \
34
		share/applications/texworks.desktop \
42
		share/pixmaps/TeXworks.png
35
		share/pixmaps/TeXworks.png
43
PLIST_DIRS=	lib/texworks
44
PORTDOCS=	*
45
36
46
OPTIONS_DEFINE=	DOCS LUA PYTHON
37
OPTIONS_DEFINE=		DOCS LUA PYTHON
47
OPTIONS_DEFAULT=DOCS
48
LUA_USES=	lua:51
49
LUA_PLIST_FILES=lib/texworks/libTWLuaPlugin.so
50
PYTHON_USES=	python:3
51
PYTHON_PLIST_FILES=lib/texworks/libTWPythonPlugin.so
52
38
53
post-extract:
39
LUA_USES=		lua:52
54
	cd ${WRKSRC} && ${INSTALL_DATA} GitArchiveInfo.txt src/GitRev.h
40
LUA_CMAKE_ON=		-DWITH_LUA:BOOL=ON
41
LUA_CMAKE_OFF=		-DWITH_LUA:BOOL=OFF
42
LUA_PLIST_FILES=	lib/texworks/libTWLuaPlugin.so
43
PYTHON_USES=		python:3
44
PYTHON_CMAKE_ON=	-DWITH_PYTHON:BOOL=ON
45
PYTHON_CMAKE_OFF=	-DWITH_PYTHON:BOOL=OFF
46
PYTHON_PLIST_FILES=	lib/texworks/libTWPythonPlugin.so
55
47
56
post-patch:
48
post-patch:
57
	@${REINPLACE_CMD} -e 's,/usr/share,${LOCALBASE}/share,' \
49
	@${REINPLACE_CMD} -e \
58
	    ${WRKSRC}/src/TWUtils.cpp
50
		'/COPYING/d' ${WRKSRC}/src/CMakeLists.txt
59
	@${REINPLACE_CMD} -e 's,lua5.1,lua-5.1,' \
60
	    ${WRKSRC}/plugins-src/TWLuaPlugin/TWLuaPlugin.pro
61
	@${REINPLACE_CMD} -e '53,54s,^,#,' \
62
	    -e '57,59s,#,,' \
63
	    -e 's,python3,python-${PYTHON_VER},' \
64
	    ${WRKSRC}/plugins-src/TWPythonPlugin/TWPythonPlugin.pro
65
66
post-patch-DOCS-off:
67
	@${REINPLACE_CMD} -e '/INSTALLS/s,documentation manual ,,' \
68
	    ${WRKSRC}/TeXworks.pro
69
70
post-configure-LUA-on:
71
	cd ${WRKSRC}/plugins-src/TWLuaPlugin && ${SETENV} ${CONFIGURE_ENV} \
72
	    ${QMAKE} ${QMAKE_ARGS}
73
74
post-configure-PYTHON-on:
75
	cd ${WRKSRC}/plugins-src/TWPythonPlugin && ${SETENV} ${CONFIGURE_ENV} \
76
	    ${QMAKE} ${QMAKE_ARGS}
77
78
post-build-LUA-on:
79
	cd ${WRKSRC}/plugins-src/TWLuaPlugin && ${MAKE}
80
81
post-build-PYTHON-on:
82
	cd ${WRKSRC}/plugins-src/TWPythonPlugin && ${MAKE}
83
84
post-install:
85
	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/texworks
86
87
post-install-LUA-on:
88
	${MKDIR} ${STAGEDIR}${PREFIX}/lib/texworks
89
	cd ${WRKSRC}/plugins-src/TWLuaPlugin && \
90
	    ${INSTALL_DATA} libTWLuaPlugin.so \
91
		${STAGEDIR}${PREFIX}/lib/texworks
92
93
post-install-PYTHON-on:
94
	${MKDIR} ${STAGEDIR}${PREFIX}/lib/texworks
95
	cd ${WRKSRC}/plugins-src/TWPythonPlugin && \
96
	    ${INSTALL_DATA} libTWPythonPlugin.so \
97
		${STAGEDIR}${PREFIX}/lib/texworks
98
51
99
.include <bsd.port.mk>
52
.include <bsd.port.mk>
(-)editors/texworks/files/patch-TeXworks.pro (-45 lines)
Lines 1-45 Link Here
1
--- TeXworks.pro.orig	2015-04-03 18:05:39 UTC
2
+++ TeXworks.pro
3
@@ -108,7 +108,8 @@ unix:!macx { # on Unix-ish platforms we 
4
 	CONFIG		+= link_pkgconfig
5
 	PKGCONFIG	+= hunspell
6
 	PKGCONFIG	+= poppler-qt4
7
-	PKGCONFIG	+= zlib
8
+	PKGCONFIG	+= synctex
9
+	LIBS		+= -lz
10
 
11
 	# Enclose the path in \\\" (which later gets expanded to \", which in turn
12
 	# gets expanded to " in the c++ code)
13
@@ -180,8 +181,7 @@ HEADERS	+=	src/TWApp.h \
14
 			src/TWVersion.h \
15
 			src/TWTextCodecs.h \
16
 			src/SvnRev.h \
17
-			src/synctex_parser.h \
18
-			src/synctex_parser_utils.h \
19
+			src/TWSynchronizer.h \
20
 			src/ClickableLabel.h \
21
 			src/ConfigurableApp.h \
22
 			src/TWSystemCmd.h
23
@@ -225,8 +225,7 @@ SOURCES	+=	src/main.cpp \
24
 			src/ResourcesDialog.cpp \
25
 			src/ScriptManager.cpp \
26
 			src/ConfirmDelete.cpp \
27
-			src/synctex_parser.c \
28
-			src/synctex_parser_utils.c
29
+			src/TWSynchronizer.cpp
30
 
31
 RESOURCES	+=	res/resources.qrc \
32
 				res/resfiles.qrc
33
@@ -259,10 +258,10 @@ unix:!macx { # installation on Unix-ish 
34
 	isEmpty(DESKTOP_DIR):DESKTOP_DIR = $$DATA_DIR/applications
35
 
36
 	target.path = $$BIN_DIR
37
-	documentation.files = COPYING README NEWS
38
+	documentation.files = README NEWS
39
 	documentation.path = $$DOCS_DIR
40
 	manual.files = manual/*
41
-	manual.path = $$TW_HELPPATH
42
+	manual.path = DOCS_DIR
43
 	icon.files = res/images/TeXworks.png
44
 	icon.path = $$ICON_DIR
45
 	man.files = man/texworks.1
(-)editors/texworks/pkg-descr (-8 / +14 lines)
Lines 1-11 Link Here
1
The TeXworks project is an effort to build a simple TeX front-end program
1
TeXworks is an environment for authoring TeX (LaTeX, ConTeXt, etc)
2
(working environment) that will be available for all today's major desktop
2
documents, with a Unicode-based, TeX-aware editor, integrated PDF
3
operating systems.  It is deliberately modeled after Dick Koch's award-
3
viewer, and a clean, simpl e interface accessible to casual and
4
winning TeXShop for Mac OS X.
4
non-technical users.
5
5
6
TeXworks includes an integrated PDF viewer, based on the Poppler library,
6
TeXworks is inspired by Dick Koch's award-winning TeXShop program for
7
and supports source/preview synchronization.  This capability is based on
7
Mac OS X, which has made quality typesetting through TeX accessible to a
8
the "SyncTeX" feature developed by Jerome Laurens, and supported by both
8
wider community of users, without a technical or intimidating face. The
9
the pdfTeX and XeTeX programs in TeX Live, and other current distributions.
9
goal of TeXworks is to deliver a similarly integrated, easy-to-use
10
environment for users on other platforms, especially GNU/Linux and
11
Windows.
12
13
Among other things, TeXworks features an integrated PDF previewer,
14
synchronization between the TeX files and the PDF output, and an
15
extensible scripting interface.
10
16
11
WWW: http://www.tug.org/texworks/
17
WWW: http://www.tug.org/texworks/

Return to bug 200302