commit: e7fbb973c906af39f9ae0d3fb3ab12c06597a1f5 Author: Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr> AuthorDate: Mon Oct 27 13:49:41 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Nov 4 11:16:03 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7fbb973
sci-libs/jkqtplotter: new package, add 5.0.0_pre20251013 required by avogadrolibs for charts instead of vtk Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr> Part-of: https://github.com/gentoo/gentoo/pull/44352 Signed-off-by: Sam James <sam <AT> gentoo.org> sci-libs/jkqtplotter/Manifest | 1 + .../files/jkqtplotter-4.0.3-bump_cmake.patch | 21 +++++ .../jkqtplotter-5.0.0_pre20251013.ebuild | 93 ++++++++++++++++++++++ sci-libs/jkqtplotter/metadata.xml | 11 +++ 4 files changed, 126 insertions(+) diff --git a/sci-libs/jkqtplotter/Manifest b/sci-libs/jkqtplotter/Manifest new file mode 100644 index 000000000000..0c44d05cc8e7 --- /dev/null +++ b/sci-libs/jkqtplotter/Manifest @@ -0,0 +1 @@ +DIST jkqtplotter-5.0.0_pre20251013.tar.gz 94004704 BLAKE2B 99af83e3c2a06874dbaa5c2d39c4f1b88fb76cea1bfd47b5b8daadd437cb96bc92254f5d7c5b0e163aec55eedcc7c175f2fd4b87c1b6ace04a8129f0e4f6707c SHA512 035760a88772236d7411d0ad289e79e0540803a8c2405c5fee94be596925d383d090cc70fde6f17737d669e0ce44fd9399262b0e3a2e630371c78c5361829ee1 diff --git a/sci-libs/jkqtplotter/files/jkqtplotter-4.0.3-bump_cmake.patch b/sci-libs/jkqtplotter/files/jkqtplotter-4.0.3-bump_cmake.patch new file mode 100644 index 000000000000..3ec3518a9743 --- /dev/null +++ b/sci-libs/jkqtplotter/files/jkqtplotter-4.0.3-bump_cmake.patch @@ -0,0 +1,21 @@ +backported patch +https://github.com/jkriege2/JKQtPlotter/commit/6607432af069dac5136648dc02832c50bc9e0e66.patch +bump required cmake version to 3.16 consistently +--- a/cmake/jkqtplotter_common_compilersettings.cmake ++++ b/cmake/jkqtplotter_common_compilersettings.cmake +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.1) ++cmake_minimum_required(VERSION 3.16) + + + if(NOT APPLE) +--- a/cmake/jkqtplotter_common_include.cmake ++++ b/cmake/jkqtplotter_common_include.cmake +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.1) ++cmake_minimum_required(VERSION 3.16) + + include(jkqtplotter_deployqt) +-include(jkqtplotter_deployopencv) +\ No newline at end of file ++include(jkqtplotter_deployopencv) diff --git a/sci-libs/jkqtplotter/jkqtplotter-5.0.0_pre20251013.ebuild b/sci-libs/jkqtplotter/jkqtplotter-5.0.0_pre20251013.ebuild new file mode 100644 index 000000000000..96986680804a --- /dev/null +++ b/sci-libs/jkqtplotter/jkqtplotter-5.0.0_pre20251013.ebuild @@ -0,0 +1,93 @@ +# Copyright 2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +MY_PN="JKQtPlotter" +HASH_COMMIT="d243218119b1632987df26baea0d4bc6ccdee533" +DESCRIPTION="Extensive Qt Plotter framework" +HOMEPAGE="https://jkriege2.github.io/JKQtPlotter/" +if [[ ${PV} == *9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/jkriege2/${MY_PN}.git" +else + SRC_URI="https://github.com/jkriege2/JKQtPlotter/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" + S="${WORKDIR}/${MY_PN}-${HASH_COMMIT}" +fi + +LICENSE="LGPL-2.1+" +SLOT="0/5" +IUSE="doc test" +RESTRICT="!test? ( test )" + +DEPEND=" + dev-qt/qtbase:6[gui,opengl,widgets,xml] + dev-qt/qtsvg:6 +" +RDEPEND=" + ${DEPEND} + dev-texlive/texlive-fontsextra +" +BDEPEND=" + doc? ( + app-text/doxygen + dev-texlive/texlive-latex + media-gfx/graphviz[cairo] + ) +" + +src_configure() { + local mycmakeargs=( + -DCMAKE_SKIP_RPATH=ON + -DJKQtPlotter_BUILD_DECORATE_LIBNAMES_WITH_BUILDTYPE=OFF + -DJKQtPlotter_BUILD_EXAMPLES=OFF + -DJKQtPlotter_BUILD_INCLUDE_FIRAMATH_FONTS=OFF # texlive-fontsextra + -DJKQtPlotter_BUILD_INCLUDE_XITS_FONTS=OFF # texlive-fontsextra + -DJKQtPlotter_BUILD_LIB_JKQTFASTPLOTTER=OFF # deprecated + -DJKQtPlotter_BUILD_LIB_JKQTPLOTTER=ON + -DJKQtPlotter_BUILD_TESTS=$(usex test) + -DJKQtPlotter_BUILD_TOOLS=ON + -DJKQtPlotter_BUILD_WITH_PRECOMPILED_HEADERS=OFF + -DJKQtPlotter_ENABLED_CXX20=ON + -DJKQtPlotter_HAS_NO_PRINTER_SUPPORT=OFF + -DQT_VERSION_MAJOR=6 + ) + + cmake_src_configure +} + +src_compile() { + cmake_src_compile + + if use doc; then + doxygen Doxyfile || die + fi +} + +src_test() { + if use x86; then + local CMAKE_SKIP_TESTS+=( + #JKQTPStringToolsTest.test_jkqtp_floattounitstr + JKQTPStringTools_test + ) + fi + + local -x QT_QPA_PLATFORM=offscreen + LD_LIBRARY_PATH="${BUILD_DIR}/output" cmake_src_test +} + +src_install() { + use doc && local HTML_DOCS=( doc/html/. ) + + cmake_src_install + + rm "${ED}"/usr/share/doc/${PF}/LICENSE || die + + # don't install test binaries + if use test; then + rm "${ED}"/usr/bin/*{benchmark,test}* || die + fi +} diff --git a/sci-libs/jkqtplotter/metadata.xml b/sci-libs/jkqtplotter/metadata.xml new file mode 100644 index 000000000000..cba1c537454f --- /dev/null +++ b/sci-libs/jkqtplotter/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>[email protected]</email> + <name>Gentoo Science Project</name> + </maintainer> + <upstream> + <remote-id type="github">jkriege2/JKQtPlotter</remote-id> + </upstream> +</pkgmetadata>
