texstudio: 2.12.6

( unfortunately, upstream changed the source-archive ..., I already complained about this.)

updated checksum, wkrsrc
+ consolidated build options while at it
This commit is contained in:
Piraty 2017-08-20 13:32:28 +02:00
parent c2a819bd17
commit af9a38c5c4

View file

@ -3,37 +3,22 @@ pkgname=texstudio
version=2.12.6
revision=1
build_style=qmake
wrksrc=${pkgname}${version}
short_desc="Powerful Tex/LaTeX editor based on texmaker"
maintainer="Piraty <piraty1@inbox.ru>"
license="GPL-2"
homepage="http://texstudio.org/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/TeXstudio%20${version}/${pkgname}-${version}.tar.gz"
checksum=135af312ad0718ce5347acd1cbb732b2992e4e74919bf87bc115331865718c85
checksum=cdae8c9f3fa84af2424cfef6d4a3abb2437cc71ecb24c1883e4ecca2f2693da3
configure_args="NO_TESTS=true $(vopt_if phonon PHONON=true) $(vopt_if poppler '' NO_POPPLER_PREVIEW=true)"
hostmakedepends="pkg-config qt5-qmake"
makedepends="qt5-webkit-devel qt5-svg-devel qt5-script-devel qt5-tools-devel"
makedepends="qt5-webkit-devel qt5-svg-devel qt5-script-devel qt5-tools-devel $(vopt_if phonon phonon-qt5-devel) $(vopt_if poppler poppler-qt5-devel)"
depends="qt5-svg"
configure_args="-unix"
configure_args+=" -spec linux-g++"
configure_args+=" NO_TESTS=true"
configure_args+=" CONFIG-=debug CONFIG-=debug_and_release CONFIG+=release"
build_options_default="phonon"
build_options="phonon"
build_options="phonon poppler"
desc_option_phonon="build with phonon support"
if [ "$build_option_phonon" ]; then
configure_args+=" PHONON=true"
makedepends+=" phonon-qt5-devel"
fi
build_options+=" nopoppler"
desc_option_nopoppler="build without poppler (= no internal pdf preview)"
if [ "$build_option_nopoppler" ]; then
configure_args+=" NO_POPPLER_PREVIEW=true"
else
makedepends+=" poppler-qt5-devel"
fi
desc_option_poppler="build with poppler (=internal pdf preview)"
build_options_default="phonon poppler"
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" ${makedepends}"