From e871cdc70f3faab0d84cc7ccc192a4bb2516c620 Mon Sep 17 00:00:00 2001 From: Nicolas PARLANT Date: Sun, 9 Mar 2025 07:19:22 +0000 Subject: [PATCH] sci-chemistry/molsketch: add 0.8.1 qt6 update HOMEPAGE no longer doc files by upstream add optionnal openbabel support inchi support through openbabel interface is optional and checked only at runtime Closes: https://bugs.gentoo.org/913683 Signed-off-by: Nicolas PARLANT Closes: https://github.com/gentoo/gentoo/pull/41049 Signed-off-by: Andreas Sturmlechner --- sci-chemistry/molsketch/Manifest | 1 + sci-chemistry/molsketch/metadata.xml | 3 ++ .../molsketch/molsketch-0.8.1.ebuild | 36 +++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 sci-chemistry/molsketch/molsketch-0.8.1.ebuild diff --git a/sci-chemistry/molsketch/Manifest b/sci-chemistry/molsketch/Manifest index 3dd6281fb4723..dfde0c0e89024 100644 --- a/sci-chemistry/molsketch/Manifest +++ b/sci-chemistry/molsketch/Manifest @@ -1 +1,2 @@ DIST Molsketch-0.7.2-src.tar.gz 1907992 BLAKE2B 6bd099d963f352e66f73741273e9dee17f2fb299aec32b053ca39aa731a27f6a73093f98a4dbde2b6a97b85015016d1136fa4ead5f564006991b83072009ee6a SHA512 5e06f177ed4e7e8457215e07b623b1d92fa111f696fd7a106b0a6e8c56cc9c7d953fc33e0c0955c19766599d41a82519db95e12c0c49d3e4d3392311af3cc034 +DIST Molsketch-0.8.1-src.tar.gz 1852967 BLAKE2B 127ab637934a30a8682b4e15c5d07d8135f581e9311d485403e8d504d2b81cf2057e965be2eb2547d8caa0d9137122d053a7dd8e62272baa229bf26c20ee744c SHA512 c92f99276ff56f46a04f59218124ec3db911a8a8615632fe7642c1ab139cf083540da77b3a1c48176af0896bdd6ccadfd4ca5571e095f76fd96cf504ee3245fb diff --git a/sci-chemistry/molsketch/metadata.xml b/sci-chemistry/molsketch/metadata.xml index 3a34d01608a0e..88fb2f8b4485c 100644 --- a/sci-chemistry/molsketch/metadata.xml +++ b/sci-chemistry/molsketch/metadata.xml @@ -10,6 +10,9 @@ molecules quick and easily. Of course you're creation can be exported afterwards in high quality in a number of vector and bitmap formats. + + Interface for sci-chemistry/openbabel to support many file formats. With inchi support at runtime, the wikiquery plugin is enabled. + molsketch hvennekate/Molsketch diff --git a/sci-chemistry/molsketch/molsketch-0.8.1.ebuild b/sci-chemistry/molsketch/molsketch-0.8.1.ebuild new file mode 100644 index 0000000000000..46531a6093805 --- /dev/null +++ b/sci-chemistry/molsketch/molsketch-0.8.1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake xdg + +DESCRIPTION="Drawing tool for 2D molecular structures" +HOMEPAGE="https://molsketch.sourceforge.io/ https://github.com/hvennekate/Molsketch/" +SRC_URI="https://downloads.sourceforge.net/project/${PN}/Molsketch/${P^}-src.tar.gz" +S="${WORKDIR}/${P^}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="openbabel" + +DEPEND=" + dev-qt/qtbase:6[gui,network,widgets] + dev-qt/qtsvg:6 + openbabel? ( >=sci-chemistry/openbabel-3:= ) +" +RDEPEND="${DEPEND}" +BDEPEND="dev-qt/qttools:6[linguist]" + +PATCHES=( + "${FILESDIR}"/${PN}-0.3.0-_DEFAULT_SOURCE.patch +) + +src_configure() { + local mycmakeargs=( + -DMSK_OBABELIFACE="$(usex openbabel)" + -DMSK_QT6=ON + ) + cmake_src_configure +}