aboutsummaryrefslogtreecommitdiff
path: root/editors/texstudio
diff options
context:
space:
mode:
authorFernando ApesteguĂ­a <fernape@FreeBSD.org>2018-06-11 17:25:11 +0000
committerFernando ApesteguĂ­a <fernape@FreeBSD.org>2018-06-11 17:25:11 +0000
commit364c800fc2c05e2fa74dcabb5182c29f2b3e25ad (patch)
tree5e1903e1dc0c19ee7a62cb6f0a9bf22360c332fd /editors/texstudio
parent433ed71913516f5cdf52b9edc75d463e0edcb863 (diff)
downloadports-364c800fc2c05e2fa74dcabb5182c29f2b3e25ad.tar.gz
ports-364c800fc2c05e2fa74dcabb5182c29f2b3e25ad.zip
editors/texstudio: update to 2.12.8
* USE_GITHUB since this release is only in GH and not in SF * Add LICENSE according to project's site (no license file is provided) * Use DISTVERSION instead of PORTVERSION * Flavorize port and make qt5 default (as in the previous version) PR: 227097 Reported by: lebarondemerde@privacychain.ch Approved by: tcberner (mentor), portmgr (mat) Differential Revision: https://reviews.freebsd.org/D15023
Notes
Notes: svn path=/head/; revision=472195
Diffstat (limited to 'editors/texstudio')
-rw-r--r--editors/texstudio/Makefile54
-rw-r--r--editors/texstudio/distinfo6
-rw-r--r--editors/texstudio/pkg-plist3
3 files changed, 34 insertions, 29 deletions
diff --git a/editors/texstudio/Makefile b/editors/texstudio/Makefile
index d42a9b49f26d..cd064ec3fa28 100644
--- a/editors/texstudio/Makefile
+++ b/editors/texstudio/Makefile
@@ -1,52 +1,54 @@
# $FreeBSD$
PORTNAME= texstudio
-PORTVERSION= 2.11.0
-PORTREVISION= 8
+DISTVERSION= 2.12.8
CATEGORIES= editors
-MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/TeXstudio%20${PORTVERSION}
+PKGNAMESUFFIX= -${FLAVOR}
MAINTAINER= abiliojr@gmail.com
COMMENT= Integrated writing environment for LaTeX documents
-LIB_DEPENDS= libhunspell-1.6.so:textproc/hunspell \
- libpoppler.so:graphics/poppler
+LICENSE= GPLv2
BROKEN_aarch64= fails to compile: error: no member named mc_eip in __mcontext
BROKEN_armv6= fails to compile: error: no member named mc_eip in __mcontext
+LIB_DEPENDS= libhunspell-1.6.so:textproc/hunspell \
+ libpoppler.so:graphics/poppler
+
+FLAVORS= qt5 qt4
+FLAVOR?= ${FLAVORS:[1]}
+
+qt4_LIB_DEPENDS= libpoppler-qt4.so:graphics/poppler-qt4 \
+ libquazip.so:archivers/quazip@qt4
+qt5_LIB_DEPENDS= libpoppler-qt5.so:graphics/poppler-qt5 \
+ libquazip5.so:archivers/quazip@qt5
+
USES= desktop-file-utils dos2unix ghostscript:run \
pkgconfig qmake
-DOS2UNIX_FILES= ${PORTNAME}.pro
-_USE_QT4= corelib gui network script svg xml \
+.if ${FLAVOR} == qt4
+USE_QT4= corelib gui network script svg xml \
iconengines_run designer_build moc_build rcc_build uic_build
-_USE_QT5= core gui network script svg widgets xml \
+QMAKE_ARGS= QUAZIP_INCLUDE="${LOCALBASE}/include/quazip" \
+ QUAZIP_LIB="-lquazip"
+.else
+USE_QT5= core gui network script svg widgets xml \
printsupport concurrent uitools buildtools_build
+QMAKE_ARGS= QUAZIP_INCLUDE="${LOCALBASE}/include/quazip5" \
+ QUAZIP_LIB="-lquazip5"
+QTVER_SUFFIX= 5
+.endif
USE_XORG= x11
USE_GL= gl
USE_TEX= latex dvipsk
+USE_GITHUB= yes
+GH_ACCOUNT= ${PORTNAME}-org
-WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION}
-
-OPTIONS_SINGLE= TOOLKIT
-OPTIONS_SINGLE_TOOLKIT= QT4 QT5
-OPTIONS_DEFAULT= QT5
-
-QMAKE_ARGS= USE_SYSTEM_HUNSPELL=true USE_SYSTEM_QUAZIP=true
+DOS2UNIX_FILES= ${PORTNAME}.pro
-TOOLKIT_DESC= Qt toolkit
-QT4_USE= ${_USE_QT4:S/^/QT4=/}
-QT4_LIB_DEPENDS=libpoppler-qt4.so:graphics/poppler-qt4 \
- libquazip.so:archivers/quazip@qt4
-QT4_QMAKE_ON= QUAZIP_INCLUDE="${LOCALBASE}/include/quazip" \
- QUAZIP_LIB="-lquazip"
-QT5_USE= ${_USE_QT5:S/^/QT5=/}
-QT5_LIB_DEPENDS=libpoppler-qt5.so:graphics/poppler-qt5 \
- libquazip5.so:archivers/quazip@qt5
-QT5_QMAKE_ON= QUAZIP_INCLUDE="${LOCALBASE}/include/quazip5" \
- QUAZIP_LIB="-lquazip5"
+QMAKE_ARGS+= USE_SYSTEM_HUNSPELL=true USE_SYSTEM_QUAZIP=true
post-patch:
@${REINPLACE_CMD} -e 's,^\(utilities.path =\).*,\1 ${DATADIR},' \
diff --git a/editors/texstudio/distinfo b/editors/texstudio/distinfo
index cae1b230b7c6..48285746e3cb 100644
--- a/editors/texstudio/distinfo
+++ b/editors/texstudio/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1468240968
-SHA256 (texstudio-2.11.0.tar.gz) = 170e6d68952251e8c64589b0d147cb7692005e135cc6fc14579c6fd593f54307
-SIZE (texstudio-2.11.0.tar.gz) = 26263749
+TIMESTAMP = 1523190835
+SHA256 (texstudio-org-texstudio-2.12.8_GH0.tar.gz) = 3dec30ded3f36bb0591f8ed1b78b86fa23f276f5744925bc91075715c3f58062
+SIZE (texstudio-org-texstudio-2.12.8_GH0.tar.gz) = 26555418
diff --git a/editors/texstudio/pkg-plist b/editors/texstudio/pkg-plist
index 208234c895fd..805aaeef1b47 100644
--- a/editors/texstudio/pkg-plist
+++ b/editors/texstudio/pkg-plist
@@ -118,10 +118,12 @@ share/icons/hicolor/scalable/apps/texstudio.svg
%%DATADIR%%/texstudio32x32.png
%%DATADIR%%/texstudio48x48.png
%%DATADIR%%/texstudio64x64.png
+%%DATADIR%%/texstudio_ar.qm
%%DATADIR%%/texstudio_cs.qm
%%DATADIR%%/texstudio_de.qm
%%DATADIR%%/texstudio_el.qm
%%DATADIR%%/texstudio_es.qm
+%%DATADIR%%/texstudio_fa.qm
%%DATADIR%%/texstudio_fr.qm
%%DATADIR%%/texstudio_hu.qm
%%DATADIR%%/texstudio_it.qm
@@ -130,6 +132,7 @@ share/icons/hicolor/scalable/apps/texstudio.svg
%%DATADIR%%/texstudio_pl.qm
%%DATADIR%%/texstudio_pt_BR.qm
%%DATADIR%%/texstudio_ru_RU.qm
+%%DATADIR%%/texstudio_tr_TR.qm
%%DATADIR%%/texstudio_uk.qm
%%DATADIR%%/texstudio_vi.qm
%%DATADIR%%/texstudio_zh_CN.qm