blob: c0580aff523352e1582f8afa5ecd1841d7f101ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# 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
)
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]"
}
|