Diff openbabel-2.4.1-r1 with a openbabel-2.4.1-r2

/var/lib/layman/calculate/sci-chemistry/openbabel/openbabel-2.4.1-r2.ebuild 2019-11-29 17:52:22.000000000 +0300
1
# Copyright 1999-2020 Gentoo Authors
1
# Copyright 1999-2018 Gentoo Foundation
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=6
5

  
5 6
WX_GTK_VER="3.0"
6 7

  
7
inherit cmake-utils desktop optfeature toolchain-funcs wxwidgets
8
inherit cmake-utils eutils wxwidgets
8 9

  
9 10
DESCRIPTION="Interconverts file formats used in molecular modeling"
10
HOMEPAGE="http://openbabel.org/wiki/Main_Page"
11
SRC_URI="
12
	mirror://sourceforge/openbabel/${P}.tar.gz
13
	https://openbabel.org/docs/dev/_static/babel130.png -> ${PN}.png
14
"
11
HOMEPAGE="http://openbabel.sourceforge.net/"
12
SRC_URI="mirror://sourceforge/openbabel/${P}.tar.gz"
15 13

  
16 14
# See src/CMakeLists.txt for LIBRARY_VERSION
17 15
SLOT="0/5.0.0"
18 16
LICENSE="GPL-2"
19 17
KEYWORDS="amd64 ~arm x86 ~amd64-linux ~x86-linux ~ppc-macos"
20 18
IUSE="doc openmp test wxwidgets"
21
RESTRICT="!test? ( test )"
22 19

  
23 20
RDEPEND="
24 21
	dev-cpp/eigen:3
25 22
	dev-libs/libxml2:2
26 23
	sci-libs/inchi
27 24
	sys-libs/zlib
28
	wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[X] )
29
"
30
DEPEND="${RDEPEND}"
31
BDEPEND="
25
	wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[X] )"
26
DEPEND="${RDEPEND}
32 27
	>=dev-util/cmake-2.4.8
33
	doc? ( app-doc/doxygen )
34
"
28
	doc? ( app-doc/doxygen )"
35 29

  
36 30
DOCS=( AUTHORS NEWS.md README.md THANKS doc/dioxin.{inc,mol2} doc/README.{dioxin.pov,povray} )
37 31

  
38 32
PATCHES=(
39 33
	"${FILESDIR}"/${PN}-2.3.2-gcc-6_and_7-backport.patch
40
	"${FILESDIR}"/${P}-gcc-8.patch
41
)
34
	"${FILESDIR}"/${P}-gcc-8_and_9.patch
35
	)
42 36

  
43 37
pkg_setup() {
44 38
	if use openmp; then
......
58 52
}
59 53

  
60 54
src_configure() {
61
	use wxwidgets && setup-wxwidgets
55
	use wxwidgets && need-wxwidgets unicode
62 56
	local mycmakeargs=(
63 57
		-DOPENBABEL_USE_SYSTEM_INCHI=ON
64
		-DENABLE_OPENMP=$(usex openmp)
58
		-DOPENMP=$(usex openmp)
65 59
		-DBUILD_GUI=$(usex wxwidgets)
66 60
	)
67 61

  
......
76 70
		dodoc -r doc/API/html/*
77 71
	fi
78 72

  
79
	make_desktop_entry obgui "Open Babel" "${PN}"
80
	doicon "${DISTDIR}/${PN}.png"
81

  
82 73
	cmake-utils_src_install
83 74
}
84 75

  
Thank you!