Сравнение openbabel-3.1.1_p20241221-r4 с openbabel-3.2.0

/usr/portage/sci-chemistry/openbabel/openbabel-3.2.0.ebuild 2026-06-10 19:17:07.240324407 +0300
4 4
EAPI=8
5 5

  
6 6
GENTOO_DEPEND_ON_PERL="no"
7
PYTHON_COMPAT=( python3_{11..14} )
7
PYTHON_COMPAT=( python3_{12..15} )
8 8
WX_GTK_VER=3.2-gtk3
9 9

  
10 10
inherit cmake desktop flag-o-matic perl-module python-r1 toolchain-funcs wxwidgets xdg
......
16 16
	inherit git-r3
17 17
	EGIT_REPO_URI="https://github.com/openbabel/${PN}.git"
18 18
else
19
	if [[ "${PV}" == *_p* ]]; then	# eg., openbabel-3.1.1_p20210325
19
	if [[ "${PV}" == *_p* ]]; then
20 20
		# Set to commit hash
21
		OPENBABEL_COMMIT="889c350feb179b43aa43985799910149d4eaa2bc"
21
		OPENBABEL_COMMIT=""
22 22
		SRC_URI="https://github.com/${PN}/${PN}/archive/${OPENBABEL_COMMIT}.tar.gz -> ${P}.tar.gz"
23 23
		S="${WORKDIR}/${PN}-${OPENBABEL_COMMIT}"
24 24
	else
......
26 26
		SRC_URI="https://github.com/${PN}/${PN}/archive/${MY_P}.tar.gz -> ${P}.tar.gz"
27 27
		S="${WORKDIR}/${PN}-${MY_P}"
28 28
	fi
29
	KEYWORDS="amd64 ~arm ~x86"
29
	KEYWORDS="~amd64 ~arm ~x86"
30 30
fi
31 31

  
32 32
LICENSE="GPL-2"
33 33
# See src/CMakeLists.txt for LIBRARY_VERSION
34
SLOT="0/7.0.0"
34
SLOT="0/8.0.0"
35 35
IUSE="cpu_flags_arm_neon cpu_flags_x86_sse2 cpu_flags_x86_sse4_2 doc examples +inchi json minimal openmp perl png python test wxwidgets ${GENTOO_PERL_USESTRING}"
36 36
RESTRICT="!test? ( test )"
37 37
REQUIRED_USE="
......
68 68
"
69 69

  
70 70
PATCHES=(
71
	# Set include dir only for global implementation
72
	"${FILESDIR}"/${PN}-3.1.1_p2024-fix_pybind.patch
73 71
	# prevent installation of examples in /usr/bin
74 72
	"${FILESDIR}"/${PN}-3.1.1_p2024-fix_examples.patch
75
	# cmake4-compat
76
	"${FILESDIR}"/${PN}-3.1.1_p2024-cmake4.patch
73
	# fix headers for InChi
74
	"${FILESDIR}"/${PN}-3.2.0-system_inchi.patch
75
	# filter -O2
76
	"${FILESDIR}"/${PN}-3.2.0-cflags.patch
77 77
)
78 78

  
79 79
pkg_pretend() {
......
88 88
	mkdir -p scripts/${EPYTHON} || die
89 89
	# Appends to scripts/CMakeLists.txt, substituting the correct tags, for
90 90
	# each valid python implementation,
91
	cat "${FILESDIR}"/${PN}-python-r2.cmake | \
91
	cat "${FILESDIR}"/${PN}-python-3.2.cmake | \
92 92
		sed -e "s|@@EPYTHON@@|${EPYTHON}|" \
93 93
			-e "s|@@PYTHON_INCLUDE_DIR@@|$(python_get_includedir)|" \
94 94
			-e "s|@@PYTHON_LIBS@@|$(python_get_LIBS)|" \
......
136 136
		-DWITH_INCHI=$(usex inchi)
137 137
		-DOPTIMIZE_NATIVE=OFF
138 138
		-DPERL_BINDINGS=$(usex perl)
139
		-DPYTHON_BINDINGS=$(usex python)
139
		-DPYTHON_BINDINGS=OFF
140 140
		-DRUN_SWIG=$(use_bindings)
141 141
		-DWITH_COORDGEN=false
142 142
		-DWITH_JSON=$(usex json)
......
152 152
		)
153 153
	fi
154 154

  
155
	if use python; then
156
		mycmakeargs+=(
157
			-DPYTHON_GENTOO_BINDINGS=ON
158
		)
159
	fi
160

  
155 161
	if use test; then
156
		# Help cmake find the python interpreter when dev-lang/python-exec is built
157
		# without native-symlinks support.
162
		# used for unittest
158 163
		python_setup
159 164
		mycmakeargs+=(
160
			-DPYTHON_EXECUTABLE="${PYTHON}"
165
			-DPython_EXECUTABLE="${PYTHON}"
161 166
		)
162 167
	fi
163 168

  
......
170 175
}
171 176

  
172 177
src_test() {
173
	local CMAKE_SKIP_TESTS=(
174
		# https://github.com/openbabel/openbabel/issues/2766
175
		test_align_{4,5}
178
	local CMAKE_SKIP_TESTS=()
179
	! use json && CMAKE_SKIP_TESTS+=(
180
		test_ketformat*
176 181
	)
177 182
	! use wxwidgets && CMAKE_SKIP_TESTS+=(
178 183
		test_tautomer_{22,27}
Спасибо!