commit:     19fe16046fa6f252c6bcb50bb876eaef814f88bb
Author:     Christopher Fore <csfore <AT> posteo <DOT> net>
AuthorDate: Wed Oct 16 12:53:02 2024 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Thu Oct 17 07:44:23 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19fe1604

sci-calculators/qalculate-qt: Add optfeature for sci-libs/libqalculate[gnuplot]

Bug: https://bugs.gentoo.org/939748
Signed-off-by: Christopher Fore <csfore <AT> posteo.net>
Closes: https://github.com/gentoo/gentoo/pull/38994
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 sci-calculators/qalculate-qt/qalculate-qt-5.3.0.ebuild | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/sci-calculators/qalculate-qt/qalculate-qt-5.3.0.ebuild 
b/sci-calculators/qalculate-qt/qalculate-qt-5.3.0.ebuild
index 9b69a62f2ae6..aff7118fefda 100644
--- a/sci-calculators/qalculate-qt/qalculate-qt-5.3.0.ebuild
+++ b/sci-calculators/qalculate-qt/qalculate-qt-5.3.0.ebuild
@@ -5,7 +5,7 @@ EAPI=8
 
 # Bump with sci-libs/libqalculate and sci-calculators/qalculate-gtk!
 
-inherit qmake-utils xdg
+inherit optfeature qmake-utils xdg
 
 DESCRIPTION="Qt-based UI for libqalculate"
 HOMEPAGE="https://github.com/Qalculate/qalculate-qt";
@@ -29,3 +29,9 @@ src_configure() {
 src_install() {
        emake INSTALL_ROOT="${ED}" install
 }
+
+pkg_postinst() {
+       xdg_pkg_postinst
+
+       optfeature "gnuplot support" sci-libs/libqalculate[gnuplot]
+}

Reply via email to