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

Collapse All | Expand All

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