sci-chemistry/molsketch: drop 0.8.1

Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/44162
Closes: https://github.com/gentoo/gentoo/pull/44162
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Nicolas PARLANT
2025-10-13 15:49:01 +02:00
committed by Sam James
parent 8df6b5ae0a
commit 619fe16007
4 changed files with 0 additions and 98 deletions

View File

@@ -1,3 +1,2 @@
DIST Molsketch-0.8.1-src.tar.gz 1852967 BLAKE2B 127ab637934a30a8682b4e15c5d07d8135f581e9311d485403e8d504d2b81cf2057e965be2eb2547d8caa0d9137122d053a7dd8e62272baa229bf26c20ee744c SHA512 c92f99276ff56f46a04f59218124ec3db911a8a8615632fe7642c1ab139cf083540da77b3a1c48176af0896bdd6ccadfd4ca5571e095f76fd96cf504ee3245fb
DIST Molsketch-0.8.3-src.tar.gz 1855805 BLAKE2B 6f221c170d8f6c9af6ab5b9db479c9a1052047331455b13c7aaf00b851793ed0db9b6de66954734858a56c5a6bf0009582aa084c612161925315352c2e5401ab SHA512 336266f59ca119972bb3820b366abe57a524016658e715524d48570e2077dc4a211711e4de2df24b3f760a4e4826fff8966af53d2b4aad91f2755471c45cc728
DIST Molsketch-0.8.4-src.tar.gz 1855977 BLAKE2B 4cf2e7ae26da1b15a5feb7843a853557d0e8b1594ea080767a234ba2cc238f837e46651ba4eb5698330c5c56fc39695c5596278033d4287772dd22b6b26ee501 SHA512 14f544c8fc30ee9b11ff056c248890ca33bbc02a19d93142ae0106539cbba73eae04ba3c6506df8a3e6d997ef4a1f75c7a3490467a2023cd32c20e186e8a0188

View File

@@ -1,16 +0,0 @@
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e3cd0fe..64c18a2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -19,7 +19,7 @@ if (CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-exceptions -fno-check-new -fno-common")
- add_definitions(-D_BSD_SOURCE)
+ add_definitions(-D_DEFAULT_SOURCE)
endif (CMAKE_COMPILER_IS_GNUCXX)
# Enable CPack

View File

@@ -1,37 +0,0 @@
https://github.com/hvennekate/Molsketch/pull/17.patch
From b3ecbef4766591dea4f8349c70f14cfb67d7400b Mon Sep 17 00:00:00 2001
From: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
Date: Mon, 28 Apr 2025 19:25:24 +0000
Subject: [PATCH] fix namespace for obabeliface
openbabel has changed namespaces :
https://github.com/openbabel/openbabel/commit/a0ec8c96554d4ee4f9bf80b00165b1ce554c8621
> Molsketch-0.8.1/obabeliface/obabeliface.cpp:199:5: error: use of undeclared identifier 'impl'; did you mean 'OpenBabel::impl'?
> 199 | FOR_ATOMS_OF_MOL(obatom, molecule) {
> | ^
> /usr/include/openbabel3/openbabel/obiter.h:417:49: note: expanded from macro 'FOR_ATOMS_OF_MOL'
> 417 | #define FOR_ATOMS_OF_MOL(a,m) for (auto a : impl::MolGetAtoms(m))
> | ^
> /usr/include/openbabel3/openbabel/obiter.h:401:13: note: 'OpenBabel::impl' declared here
> 401 | namespace impl {
> | ^
Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
---
obabeliface/obabeliface.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/obabeliface/obabeliface.cpp b/obabeliface/obabeliface.cpp
index 029f4e3..fad553a 100644
--- a/obabeliface/obabeliface.cpp
+++ b/obabeliface/obabeliface.cpp
@@ -190,6 +190,7 @@ namespace Molsketch
// TODO should be const, but OpenBabel iterator methods do not support const
bool hasCoordinates(OpenBabel::OBMol &molecule) {
+ using namespace OpenBabel;
FOR_ATOMS_OF_MOL(obatom, molecule) {
if (obatom->GetVector() != OpenBabel::VZero)
return true;

View File

@@ -1,44 +0,0 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake optfeature 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
# bug #955047, https://github.com/hvennekate/Molsketch/pull/17
"${FILESDIR}"/${PN}-0.8.1-obabel_namespace.patch
)
src_configure() {
local mycmakeargs=(
-DMSK_OBABELIFACE="$(usex openbabel)"
-DMSK_QT6=ON
)
cmake_src_configure
}
pkg_postinst() {
xdg_pkg_postinst
use openbabel && optfeature "wikiquery support through openbabel inchi interface" "sci-chemistry/openbabel[inchi]"
}