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

Collapse All | Expand All

(-)editors/texworks/Makefile (-76 / +23 lines)
Lines 2-100 Link Here
2
# $FreeBSD: head/editors/texworks/Makefile 412346 2016-04-01 14:00:51Z mat $
2
# $FreeBSD: head/editors/texworks/Makefile 412346 2016-04-01 14:00:51Z mat $
3
3
4
PORTNAME=	texworks
4
PORTNAME=	texworks
5
PORTVERSION=	0.4.6
5
PORTVERSION=	0.6.0
6
PORTREVISION=	1
7
DISTVERSIONPREFIX=	release-
6
DISTVERSIONPREFIX=	release-
8
CATEGORIES=	editors
7
CATEGORIES=	editors
9
8
10
MAINTAINER=	hrs@FreeBSD.org
9
MAINTAINER=	hrs@FreeBSD.org
11
COMMENT=	Simple TeX front-end program
10
COMMENT=	Simple TeX front-end program
12
11
13
LICENSE=	GPLv2
12
LICENSE=	GPLv2+
14
13
15
BUILD_DEPENDS=	hunspell:textproc/hunspell
14
BUILD_DEPENDS=	hunspell:textproc/hunspell
16
LIB_DEPENDS=	libpoppler-qt4.so:graphics/poppler-qt4
15
LIB_DEPENDS=	libpoppler-qt4.so:graphics/poppler-qt4
17
16
18
USES=		pkgconfig qmake
19
USE_GITHUB=	yes
17
USE_GITHUB=	yes
20
GH_ACCOUNT=	TeXworks
18
GH_ACCOUNT=	TeXworks
21
USE_QT4=	gui corelib rcc_build moc_build uic_build \
22
		dbus xml scripttools designer_build
23
QMAKE_ARGS=	INSTALL_PREFIX=${PREFIX} \
24
		DATA_DIR=${DATADIR} \
25
		DOCS_DIR=${DOCSDIR} \
26
		ICON_DIR=${PREFIX}/share/pixmaps \
27
		DESKTOP_DIR=${PREFIX}/share/applications \
28
		MAN_DIR=${PREFIX}/man/man1 \
29
		TW_DICPATH=${LOCALBASE}/share/hunspell \
30
		TW_HELPPATH=${DOCSDIR} \
31
		TW_PLUGINPATH=${PREFIX}/lib/texworks
32
USE_TEX=	synctex
33
19
34
DESKTOP_ENTRIES="TexWorks" \
20
USES=		cmake:outsource desktop-file-utils gmake pkgconfig
35
		"Lowering the entry barrier to the TeX world" \
21
USE_QT4=	corelib dbus gui scripttools xml \
36
		"TeXworks" \
22
		designer_build moc_build qmake_build rcc_build uic_build
37
		"${PORTNAME}" \
23
USE_TEX=	synctex
38
		"Utility;Qt;" \
24
CMAKE_ARGS=	-DTeXworks_HELP_DIR:PATH=${DOCSDIR_REL} \
39
		true
25
		-DTeXworks_DIC_DIR:PATH=${LOCALBASE}/share/hunspell \
26
		-DTeXworks_DOCS_DIR:PATH=${DOCSDIR_REL} \
27
		-DTeXworks_MAN_DIR:PATH=man/man1
40
28
29
PORTDOCS=	*
41
PLIST_FILES=	bin/texworks \
30
PLIST_FILES=	bin/texworks \
42
		man/man1/texworks.1.gz \
31
		man/man1/texworks.1.gz \
32
		share/appdata/texworks.appdata.xml \
33
		share/applications/texworks.desktop \
43
		share/pixmaps/TeXworks.png
34
		share/pixmaps/TeXworks.png
44
PLIST_DIRS=	lib/texworks
45
PORTDOCS=	*
46
35
47
OPTIONS_DEFINE=	DOCS LUA PYTHON
36
OPTIONS_DEFINE=		DOCS LUA PYTHON
48
OPTIONS_DEFAULT=DOCS
37
49
LUA_USES=	lua:51
38
LUA_USES=		lua:52
50
LUA_PLIST_FILES=lib/texworks/libTWLuaPlugin.so
39
LUA_CMAKE_ON=		-DWITH_LUA:BOOL=ON
51
PYTHON_USES=	python:3
40
LUA_CMAKE_OFF=		-DWITH_LUA:BOOL=OFF
52
PYTHON_PLIST_FILES=lib/texworks/libTWPythonPlugin.so
41
LUA_PLIST_FILES=	lib/texworks/libTWLuaPlugin.so
53
42
PYTHON_USES=		python:3
54
post-extract:
43
PYTHON_CMAKE_ON=	-DWITH_PYTHON:BOOL=ON
55
	cd ${WRKSRC} && ${INSTALL_DATA} GitArchiveInfo.txt src/GitRev.h
44
PYTHON_CMAKE_OFF=	-DWITH_PYTHON:BOOL=OFF
56
45
PYTHON_PLIST_FILES=	lib/texworks/libTWPythonPlugin.so
57
post-patch:
58
	@${REINPLACE_CMD} -e 's,/usr/share,${LOCALBASE}/share,' \
59
	    ${WRKSRC}/src/TWUtils.cpp
60
	@${REINPLACE_CMD} -e 's,lua5.1,lua-5.1,' \
61
	    ${WRKSRC}/plugins-src/TWLuaPlugin/TWLuaPlugin.pro
62
	@${REINPLACE_CMD} -e '53,54s,^,#,' \
63
	    -e '57,59s,#,,' \
64
	    -e 's,python3,python-${PYTHON_VER},' \
65
	    ${WRKSRC}/plugins-src/TWPythonPlugin/TWPythonPlugin.pro
66
67
post-patch-DOCS-off:
68
	@${REINPLACE_CMD} -e '/INSTALLS/s,documentation manual ,,' \
69
	    ${WRKSRC}/TeXworks.pro
70
71
post-configure-LUA-on:
72
	cd ${WRKSRC}/plugins-src/TWLuaPlugin && ${SETENV} ${CONFIGURE_ENV} \
73
	    ${QMAKE} ${QMAKE_ARGS}
74
75
post-configure-PYTHON-on:
76
	cd ${WRKSRC}/plugins-src/TWPythonPlugin && ${SETENV} ${CONFIGURE_ENV} \
77
	    ${QMAKE} ${QMAKE_ARGS}
78
79
post-build-LUA-on:
80
	cd ${WRKSRC}/plugins-src/TWLuaPlugin && ${MAKE}
81
82
post-build-PYTHON-on:
83
	cd ${WRKSRC}/plugins-src/TWPythonPlugin && ${MAKE}
84
85
post-install:
86
	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/texworks
87
88
post-install-LUA-on:
89
	${MKDIR} ${STAGEDIR}${PREFIX}/lib/texworks
90
	cd ${WRKSRC}/plugins-src/TWLuaPlugin && \
91
	    ${INSTALL_DATA} libTWLuaPlugin.so \
92
		${STAGEDIR}${PREFIX}/lib/texworks
93
94
post-install-PYTHON-on:
95
	${MKDIR} ${STAGEDIR}${PREFIX}/lib/texworks
96
	cd ${WRKSRC}/plugins-src/TWPythonPlugin && \
97
	    ${INSTALL_DATA} libTWPythonPlugin.so \
98
		${STAGEDIR}${PREFIX}/lib/texworks
99
46
100
.include <bsd.port.mk>
47
.include <bsd.port.mk>
(-)editors/texworks/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (TeXworks-texworks-release-0.4.6_GH0.tar.gz) = 58650574c1e3234c38cddc3375f8043a83cc65075839030fc7089471af6a3bde
1
SHA256 (TeXworks-texworks-release-0.6.0_GH0.tar.gz) = abb0dd76fe8870d0caa83f8f98743b44b6d5ce6e4df406e47eb6d0ffc2559f7b
2
SIZE (TeXworks-texworks-release-0.4.6_GH0.tar.gz) = 11271881
2
SIZE (TeXworks-texworks-release-0.6.0_GH0.tar.gz) = 11307312
(-)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