gentoo-ebuilds/app-office/texmaker/files/texmaker-6.0.0-unbundle_hunspell_synctex.patch
Nicolas PARLANT 6bec75c6ae
app-office/texmaker: add 6.0.0, qt6
qt6

3rdparty :
* pdfium (replace poppler), can't be unbundled
* qtsingle, not ported to qt6
* encodingprober -> libchardet not in tree
* hunspell, unbundled
* synctex, unbundled with texcore required otherwise

iuse : webengine for internal browser

add optfeature for tools (even ghostscript-gpl) and engines

rm readme.gentoo_create_doc, html_manual is available from the menu

drop amd64-linux and x86-linux

Closes: https://bugs.gentoo.org/926654
Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/41454
Closes: https://github.com/gentoo/gentoo/pull/41454
Signed-off-by: Sam James <sam@gentoo.org>
2025-04-26 02:15:04 +01:00

16 lines
533 B
Diff

Find system libs instead of 3rd libs
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7f32e01..b4afe45 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1462,5 +1462,8 @@ target_link_libraries(${PROJECT_NAME} PRIVATE
)
endif()
-
-
+find_package(PkgConfig REQUIRED)
+pkg_check_modules(hunspell REQUIRED IMPORTED_TARGET hunspell)
+target_link_libraries(${PROJECT_NAME} PRIVATE PkgConfig::hunspell)
+pkg_check_modules(synctex REQUIRED IMPORTED_TARGET synctex)
+target_link_libraries(${PROJECT_NAME} PRIVATE PkgConfig::synctex)