Diff openbabel-2.3.2-r1 with a openbabel-2.4.1

/usr/portage/sci-chemistry/openbabel/openbabel-2.4.1.ebuild 2018-05-07 01:38:00.000000000 +0000
1
# Copyright 1999-2017 Gentoo Foundation
1
# Copyright 1999-2018 Gentoo Foundation
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=5
4
EAPI=6
5 5

  
6 6
WX_GTK_VER="3.0"
7 7

  
......
11 11
HOMEPAGE="http://openbabel.sourceforge.net/"
12 12
SRC_URI="mirror://sourceforge/openbabel/${P}.tar.gz"
13 13

  
14
SLOT="0"
14
# See src/CMakeLists.txt for LIBRARY_VERSION
15
SLOT="0/5.0.0"
15 16
LICENSE="GPL-2"
16 17
KEYWORDS="amd64 ~arm x86 ~amd64-linux ~x86-linux ~ppc-macos"
17 18
IUSE="doc openmp test wxwidgets"
......
26 27
	>=dev-util/cmake-2.4.8
27 28
	doc? ( app-doc/doxygen )"
28 29

  
29
DOCS="AUTHORS ChangeLog NEWS README THANKS doc/*.inc doc/README* doc/*.mol2"
30
DOCS=( AUTHORS NEWS.md README.md THANKS doc/dioxin.{inc,mol2} doc/README.{dioxin.pov,povray} )
30 31

  
31 32
PATCHES=(
32
	"${FILESDIR}"/${P}-test_lib_path.patch
33
	"${FILESDIR}"/${P}-gcc-6_and_7-backport.patch
33
	"${FILESDIR}"/${PN}-2.3.2-gcc-6_and_7-backport.patch
34
	"${FILESDIR}"/${P}-gcc-8.patch
34 35
	)
35 36

  
36 37
pkg_setup() {
......
52 53

  
53 54
src_configure() {
54 55
	use wxwidgets && need-wxwidgets unicode
55
	local mycmakeargs=()
56
	mycmakeargs+=(
56
	local mycmakeargs=(
57 57
		-DOPENBABEL_USE_SYSTEM_INCHI=ON
58
		$(cmake-utils_use_enable openmp OPENMP)
59
		$(cmake-utils_use wxwidgets BUILD_GUI)
58
		-DOPENMP=$(usex openmp)
59
		-DBUILD_GUI=$(usex wxwidgets)
60 60
	)
61 61

  
62 62
	cmake-utils_src_configure
63 63
}
64 64

  
65 65
src_install() {
66
	dohtml doc/{*.html,*.png}
66
	docinto html
67
	dodoc doc/{*.html,*.png}
67 68
	if use doc ; then
68
		insinto /usr/share/doc/${PF}/API/html
69
		doins doc/API/html/*
69
		docinto html/API
70
		dodoc -r doc/API/html/*
70 71
	fi
71 72

  
72 73
	cmake-utils_src_install
73 74
}
74 75

  
75 76
src_test() {
76
	local mycmakeargs=""
77
	mycmakeargs="${mycmakeargs}
77
	local mycmakeargs=(
78 78
		-DOPENBABEL_USE_SYSTEM_INCHI=ON
79 79
		-DPYTHON_EXECUTABLE=false
80
		$(cmake-utils_use_enable openmp OPENMP)
81
		$(cmake-utils_use wxwidgets BUILD_GUI)
82
		$(cmake-utils_use_enable test TESTS)"
80
		-DOPENMP=$(usex openmp)
81
		-DBUILD_GUI=$(usex wxwidgets)
82
		-DTESTS=$(usex test)
83
	)
83 84

  
84 85
	cmake-utils_src_configure
85 86
	cmake-utils_src_compile
Thank you!