diff options
Diffstat (limited to 'app-editors/texworks')
-rw-r--r-- | app-editors/texworks/Manifest | 2 | ||||
-rw-r--r-- | app-editors/texworks/files/texworks-0.6.7-vasprintf-clang16-fix.patch | 12 | ||||
-rw-r--r-- | app-editors/texworks/texworks-0.6.7-r1.ebuild | 76 |
3 files changed, 90 insertions, 0 deletions
diff --git a/app-editors/texworks/Manifest b/app-editors/texworks/Manifest index 56fea1be87df..c536376b9eea 100644 --- a/app-editors/texworks/Manifest +++ b/app-editors/texworks/Manifest @@ -1,4 +1,6 @@ AUX texworks-0.6.5-cmake_lua_version.patch 219 BLAKE2B c09494099363fa26e4110c23b0e1c06caf44cb0040578bfa33457741fdc8fe4698a2f4000a6dc6da4cd19dca6039c251cd1b875a27dc41abfea03b5cb79c341a SHA512 66ccbbcf313596c674833b36f222c8aa8bde541dfd58a706814aef3eaeec50247bec954a4f7137dfda31df9cd7b15163200592acb8433ed252d961ebf2b9ea32 +AUX texworks-0.6.7-vasprintf-clang16-fix.patch 511 BLAKE2B 31227e1d0c04b582f6c7fb1652357e98393ca0ecf473e63670565c34a70b069683622b2f6851c0112e11c48979c855ad7dd813763906f198f6116719d8e1563e SHA512 2bd3387d4604e1e3cefc90d1a8cb1bfe187f4c23e8ec3c836e0bcd8d6aa8793f012728ce0f6c2288ebda38a9c6e01c4855bbda57d57438b70e7a82454b576120 DIST texworks-0.6.7.tar.gz 12394465 BLAKE2B 0a2e0531ef0f296cd2be176baed14eb0c21733aeaf3ca3c43e3ff02e48bf68be8953db67f955db0b5a56676b391e2f7700404e9ea52907092d58cbbccaa02adf SHA512 b1c22c1f9bfae2595e77f0c98297cc690f62aac38125bb576d57cc3a0666d779e75af23ccf430a3547215065596b4ea60758233947cda06df8e1a7fc95c46b65 +EBUILD texworks-0.6.7-r1.ebuild 1677 BLAKE2B 337e92702c27bcdbc8bf022c86cc222ec30d8004fc00c57bdcdb9502cc9c90ba199a92da93a2a6b4406dfdaf940df937b873a819a7924a3cc84bde849dc97946 SHA512 8c8d2863515eb2be1a8d162255feebe850d1aebf979c90d23d661ce0d461e8db1fbe4136b842878b2b042670fbcf9e871aaf49bb84684b95d549ef6a7b9d55c7 EBUILD texworks-0.6.7.ebuild 1620 BLAKE2B f2366e1875795b2efda234a2606527cb2abfe377d7c6885ba8415304ce9064acd72f7db10d98f12f3b48d7f775d96627272443f59f5bd681f9767a7856c0874c SHA512 766354454dcc3a0308d5e28a22f707cb0b127595ac5245a23dcd67a134aa7cf34d858348d0b6b0798b2013a03d93bfb1d35ff47cba10ab9470ab2c1b600a4116 MISC metadata.xml 250 BLAKE2B d266280ebce0c2bec87a6bcbf96a5224fec494d29b9fecadb21727558fc06ffc3c7455ecc8d43207b112ce4ebd508497d72bc87fd51f22a2240ed71929ac7ff3 SHA512 e3d6e04858fd59423da72e2d8a7f73b71a8bc743918364272f18d736e318c639e4f2029a4a87797518720cac3e0f5e9639157a12ce6d6d15b4d072a548bbad98 diff --git a/app-editors/texworks/files/texworks-0.6.7-vasprintf-clang16-fix.patch b/app-editors/texworks/files/texworks-0.6.7-vasprintf-clang16-fix.patch new file mode 100644 index 000000000000..ce8e9e2daca0 --- /dev/null +++ b/app-editors/texworks/files/texworks-0.6.7-vasprintf-clang16-fix.patch @@ -0,0 +1,12 @@ +Bug: https://bugs.gentoo.org/882461 +Reverting commit ccf692bb38c43a38f8e9f755dd48451c6f6ad430 +--- a/modules/synctex/CMakeLists.txt ++++ b/modules/synctex/CMakeLists.txt +@@ -26,6 +26,4 @@ endif() + + # SyncTeX uses vasprintf which is not in POSIX; thus gcc prints a warning unless + # _GNU_SOURCE is defined. Other compilers seem to be fine. +-if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") +- target_compile_definitions(SyncTeX PRIVATE _GNU_SOURCE) +-endif() ++target_compile_definitions(SyncTeX PRIVATE _GNU_SOURCE) diff --git a/app-editors/texworks/texworks-0.6.7-r1.ebuild b/app-editors/texworks/texworks-0.6.7-r1.ebuild new file mode 100644 index 000000000000..c8492a170faa --- /dev/null +++ b/app-editors/texworks/texworks-0.6.7-r1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LUA_COMPAT=( lua5-{1..3} ) +PYTHON_COMPAT=( python3_{9..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 + "${FILESDIR}"/${PN}-0.6.7-vasprintf-clang16-fix.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 +} |