diff options
author | 2022-07-02 13:32:32 +0000 | |
---|---|---|
committer | 2022-07-02 13:34:14 +0000 | |
commit | 5b4976c5a70db0dd37f6e183d63ff0e18bb42b4c (patch) | |
tree | 24340c847a533c0dc6b10ead44241649087a46de /app-editors/texworks/texworks-0.6.7.ebuild | |
parent | dev-python/waitress: Stabilize 2.1.2 ALLARCHES, #855743 (diff) | |
download | gentoo-5b4976c5a70db0dd37f6e183d63ff0e18bb42b4c.tar.gz gentoo-5b4976c5a70db0dd37f6e183d63ff0e18bb42b4c.tar.bz2 gentoo-5b4976c5a70db0dd37f6e183d63ff0e18bb42b4c.zip |
app-editors/texworks: add 0.6.7
Closes: https://bugs.gentoo.org/845450
Closes: https://bugs.gentoo.org/781989
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-editors/texworks/texworks-0.6.7.ebuild')
-rw-r--r-- | app-editors/texworks/texworks-0.6.7.ebuild | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/app-editors/texworks/texworks-0.6.7.ebuild b/app-editors/texworks/texworks-0.6.7.ebuild new file mode 100644 index 000000000000..c0305cb4055c --- /dev/null +++ b/app-editors/texworks/texworks-0.6.7.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LUA_COMPAT=( lua5-{1..3} ) +PYTHON_COMPAT=( python3_{8..11} ) +CMAKE_REMOVE_MODULES_LIST=( FindLua ) +inherit lua-single python-single-r1 cmake virtualx xdg + +DESCRIPTION="A simple interface for working with TeX documents" +HOMEPAGE="http://tug.org/texworks/" +SRC_URI="https://github.com/TeXworks/texworks/archive/release-${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}"/${PN}-release-${PV} + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~riscv ~x86" +IUSE="lua python" +RESTRICT="!test? ( test )" + +REQUIRED_USE=" + lua? ( ${LUA_REQUIRED_USE} ) + python? ( ${PYTHON_REQUIRED_USE} ) +" + +RDEPEND="app-text/hunspell:= + app-text/poppler[qt5] + dev-qt/designer:5 + dev-qt/qtcore:5 + dev-qt/qtconcurrent:5 + dev-qt/qtdeclarative:5 + dev-qt/qtdbus:5 + dev-qt/qtgui:5 + dev-qt/qtscript:5[scripttools] + dev-qt/qtwidgets:5 + sys-libs/zlib + lua? ( ${LUA_DEPS} ) + python? ( ${PYTHON_DEPS} ) " +DEPEND="${RDEPEND}" +BDEPEND="dev-qt/linguist-tools:5 + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-0.6.5-cmake_lua_version.patch +) + +pkg_setup() { + use lua && lua-single_pkg_setup + + python-single-r1_pkg_setup +} + +src_configure() { + local mycmakeargs=( + -Wno-dev + + -DPREFER_BUNDLED_SYNCTEX=ON + -DWITH_LUA=$(usex lua) + -DWITH_PYTHON=$(usex python) + -DWITH_TESTS=$(usex test) + -DTeXworks_PLUGIN_DIR="/usr/$(get_libdir)/texworks" + -DTeXworks_DOCS_DIR="/share/doc/${PF}" + -DQTPDF_VIEWER=ON + -DBUILD_SHARED_PLUGINS=ON + ) + + use lua && mycmakeargs+=( -DLUA_VERSION="$(lua_get_version)" ) + + cmake_src_configure +} + +src_test() { + virtx cmake_src_test +} |