mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
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@parhuet.fr> Part-of: https://github.com/gentoo/gentoo/pull/44352 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
e511250227
commit
e7fbb973c9
1
sci-libs/jkqtplotter/Manifest
Normal file
1
sci-libs/jkqtplotter/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST jkqtplotter-5.0.0_pre20251013.tar.gz 94004704 BLAKE2B 99af83e3c2a06874dbaa5c2d39c4f1b88fb76cea1bfd47b5b8daadd437cb96bc92254f5d7c5b0e163aec55eedcc7c175f2fd4b87c1b6ace04a8129f0e4f6707c SHA512 035760a88772236d7411d0ad289e79e0540803a8c2405c5fee94be596925d383d090cc70fde6f17737d669e0ce44fd9399262b0e3a2e630371c78c5361829ee1
|
||||
@@ -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)
|
||||
93
sci-libs/jkqtplotter/jkqtplotter-5.0.0_pre20251013.ebuild
Normal file
93
sci-libs/jkqtplotter/jkqtplotter-5.0.0_pre20251013.ebuild
Normal file
@@ -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
|
||||
}
|
||||
11
sci-libs/jkqtplotter/metadata.xml
Normal file
11
sci-libs/jkqtplotter/metadata.xml
Normal file
@@ -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>sci@gentoo.org</email>
|
||||
<name>Gentoo Science Project</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">jkriege2/JKQtPlotter</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user