summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Mrozowski <reavertm@gentoo.org>2024-02-24 05:43:16 +0100
committerMaciej Mrozowski <reavertm@gentoo.org>2024-02-24 05:44:51 +0100
commit3dc724c8a5caca3e0cb6d8367509e056572ab86b (patch)
treef6bd4b5649df75ad405703e035418a46615e65dc /media-libs/quarter
parentmedia-libs/SoQt: 1.6.2: update EAPI 7 -> 8, add qt6 USE flag (diff)
downloadgentoo-3dc724c8a5caca3e0cb6d8367509e056572ab86b.tar.gz
gentoo-3dc724c8a5caca3e0cb6d8367509e056572ab86b.tar.bz2
gentoo-3dc724c8a5caca3e0cb6d8367509e056572ab86b.zip
media-libs/quarter: add 1.2.1
Signed-off-by: Maciej Mrozowski <reavertm@gentoo.org>
Diffstat (limited to 'media-libs/quarter')
-rw-r--r--media-libs/quarter/Manifest1
-rw-r--r--media-libs/quarter/files/quarter-1.2.1-cmake.patch25
-rw-r--r--media-libs/quarter/quarter-1.2.1.ebuild85
3 files changed, 111 insertions, 0 deletions
diff --git a/media-libs/quarter/Manifest b/media-libs/quarter/Manifest
index 6030874d214b..b9ee613d254d 100644
--- a/media-libs/quarter/Manifest
+++ b/media-libs/quarter/Manifest
@@ -1 +1,2 @@
DIST quarter-1.1.0-src.tar.gz 724762 BLAKE2B 8f1f0025706c4502ea178c09204e442b9c52148371863a5a49640ba751084cca9ca464398ee171729d85e8fc2f3fe3ea9d5f0492d114d810527601936abbd1e0 SHA512 2b2649132c66c709e3d5df2a99d621fb9cf61424c5376a5ca6a016ee5c7514841f8bbe390d1acc7b94688a86b56304ed12fb98840e11933162ac6ccb3f3d681c
+DIST quarter-1.2.1-src.tar.gz 737236 BLAKE2B 91b332eb36ac1911449b923aabf6913a1901306c258f8e430f0c589774d1ad5991916863f14d6c3d35898a9756f7c68bd30287defe5deb04036f2dce4b8f135f SHA512 454e99ae8f65c9d8e425aaabc02f218357db4e4447a481680f75301d4102864c77da58a48144f2a9211d4de0bd9962b394ad48a832e89674291b94778e5ff96d
diff --git a/media-libs/quarter/files/quarter-1.2.1-cmake.patch b/media-libs/quarter/files/quarter-1.2.1-cmake.patch
new file mode 100644
index 000000000000..761ba4fb5081
--- /dev/null
+++ b/media-libs/quarter/files/quarter-1.2.1-cmake.patch
@@ -0,0 +1,25 @@
+diff -ruN quarter/CMakeLists.txt my/CMakeLists.txt
+--- quarter/CMakeLists.txt 2024-02-05 00:29:17.000000000 +0100
++++ my/CMakeLists.txt 2024-02-24 05:23:51.451634039 +0100
+@@ -96,17 +96,17 @@
+
+ if(QUARTER_USE_QT6)
+ if(QUARTER_BUILD_PLUGIN)
+- find_package(Qt6 COMPONENTS Widgets UiTools OpenGL OpenGLWidgets Designer QUIET)
++ find_package(Qt6 COMPONENTS Widgets UiTools OpenGL OpenGLWidgets Designer REQUIRED)
+ else()
+- find_package(Qt6 COMPONENTS Widgets UiTools OpenGL OpenGLWidgets QUIET)
++ find_package(Qt6 COMPONENTS Widgets UiTools OpenGL OpenGLWidgets REQUIRED)
+ endif()
+ endif()
+
+ if(NOT Qt6_FOUND AND QUARTER_USE_QT5)
+ if(QUARTER_BUILD_PLUGIN)
+- find_package(Qt5 COMPONENTS Widgets UiTools OpenGL Designer QUIET)
++ find_package(Qt5 COMPONENTS Widgets UiTools OpenGL Designer REQUIRED)
+ else()
+- find_package(Qt5 COMPONENTS Widgets UiTools OpenGL QUIET)
++ find_package(Qt5 COMPONENTS Widgets UiTools OpenGL REQUIRED)
+ endif()
+ endif()
+
diff --git a/media-libs/quarter/quarter-1.2.1.ebuild b/media-libs/quarter/quarter-1.2.1.ebuild
new file mode 100644
index 000000000000..fed6f66a6843
--- /dev/null
+++ b/media-libs/quarter/quarter-1.2.1.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake flag-o-matic
+
+MY_P=${P/quarter/Quarter}
+
+HOMEPAGE="https://github.com/coin3d/coin/wiki"
+DESCRIPTION="GUI binding for using Coin/Open Inventor with Qt"
+SRC_URI="https://github.com/coin3d/quarter/releases/download/v${PV}/${P}-src.tar.gz"
+S="${WORKDIR}/quarter"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug designer doc man qt6 qthelp"
+
+REQUIRED_USE="
+ man? ( doc )
+ qthelp? ( doc )
+"
+
+RDEPEND="
+ media-libs/coin
+ virtual/opengl
+ !qt6? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtopengl:5
+ designer? ( dev-qt/designer:5 )
+ )
+ qt6? (
+ dev-qt/qtbase:6[gui,opengl,widgets]
+ dev-qt/qttools:6[widgets]
+ designer? ( dev-qt/qttools:6[designer] )
+ )
+"
+
+DEPEND="${RDEPEND}"
+
+BDEPEND="
+ virtual/pkgconfig
+ doc? (
+ app-text/doxygen[dot]
+ !qt6? (
+ qthelp? ( dev-qt/qthelp:5 )
+ )
+ qt6? (
+ qthelp? ( dev-qt/qttools:6[assistant] )
+ )
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.2.1-cmake.patch
+ "${FILESDIR}"/${PN}-1.1.0-find-qhelpgenerator-binary.patch
+)
+
+DOCS=(AUTHORS NEWS README.md)
+
+src_prepare() {
+ cmake_src_prepare
+ sed -e 's|/lib$|/lib@LIB_SUFFIX@|' \
+ -i Quarter.pc.cmake.in || die
+}
+
+src_configure() {
+ use debug && append-cppflags -DQUARTER_DEBUG=1
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_DOCDIR="${EPREFIX}/usr/share/doc/${PF}"
+ -DQUARTER_BUILD_SHARED_LIBS=ON
+ -DQUARTER_BUILD_PLUGIN=$(usex designer)
+ -DQUARTER_BUILD_EXAMPLES=OFF
+ -DQUARTER_BUILD_DOCUMENTATION=$(usex doc)
+ -DQUARTER_BUILD_INTERNAL_DOCUMENTATION=OFF
+ -DQUARTER_BUILD_DOC_MAN=$(usex man)
+ -DQUARTER_BUILD_DOC_QTHELP=$(usex qthelp)
+ -DQUARTER_BUILD_DOC_CHM=OFF
+ -DQUARTER_USE_QT6=$(usex qt6)
+ )
+ cmake_src_configure
+}