1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python{3_6,3_7} )
8 inherit python-single-r1 cmake-utils virtualx xdg-utils
10 DESCRIPTION="A simple interface for working with TeX documents"
11 HOMEPAGE="http://tug.org/texworks/"
12 SRC_URI="https://github.com/TeXworks/texworks/archive/release-${PV}.tar.gz -> ${P}.tar.gz"
16 KEYWORDS="~amd64 ~x86"
18 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
20 RDEPEND="app-text/hunspell:=
27 dev-qt/qtscript:5[scripttools]
28 lua? ( dev-lang/lua:0 )
29 python? ( ${PYTHON_DEPS} ) "
33 BDEPEND="virtual/pkgconfig"
35 S=${WORKDIR}/${PN}-release-${PV}
37 RESTRICT="!test? ( test )"
40 python-single-r1_pkg_setup
46 -DPREFER_BUNDLED_SYNCTEX=ON
47 -DWITH_LUA=$(usex lua ON OFF)
48 -DWITH_PYTHON=$(usex python ON OFF)
49 -DTeXworks_PLUGIN_DIR="/usr/$(get_libdir)/texworks"
50 -DTeXworks_DOCS_DIR="/share/doc/${PF}"
52 -DBUILD_SHARED_LIBS=ON
53 -DBUILD_SHARED_PLUGINS=ON
55 cmake-utils_src_configure
59 virtx default_src_test
63 xdg_desktop_database_update
67 xdg_desktop_database_update