Diff lhapdf-6.3.0-r2 with a lhapdf-6.5.3-r1

/usr/portage/sci-physics/lhapdf/lhapdf-6.5.3-r1.ebuild 2023-10-09 14:52:35.256368495 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
PYTHON_COMPAT=( python3_{10..11} )
6
PYTHON_COMPAT=( python3_{9..11} )
7 7
DOCS_BUILDER="doxygen"
8 8
DOCS_DEPEND="
9 9
	dev-texlive/texlive-bibtexextra
......
12 12
	dev-texlive/texlive-latex
13 13
	dev-texlive/texlive-latexextra
14 14
"
15
DISTUTILS_USE_PEP517=setuptools
16
DISTUTILS_SINGLE_IMPL=1
17
DISTUTILS_EXT=1
18
inherit distutils-r1 docs autotools
15
inherit python-single-r1 docs
19 16

  
20 17
MY_PV=$(ver_cut 1-3)
21 18
MY_PF=LHAPDF-${MY_PV}
......
24 21
HOMEPAGE="https://lhapdf.hepforge.org/"
25 22
SRC_URI="https://www.hepforge.org/downloads/lhapdf/${MY_PF}.tar.gz"
26 23
S="${WORKDIR}/${MY_PF}"
27
DOCS_DIR="${S}/doc"
28 24

  
29 25
LICENSE="GPL-2"
30 26
SLOT="0"
31
KEYWORDS="amd64 ~x86"
27
KEYWORDS="~amd64"
32 28
IUSE="examples"
33 29
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
34 30

  
35
BDEPEND="
36
	$(python_gen_cond_dep '
37
	     >=dev-python/cython-0.19[${PYTHON_USEDEP}]
38
	')
39
"
40 31
RDEPEND="${PYTHON_DEPS}"
41 32
DEPEND="${RDEPEND}"
42 33

  
43 34
PATCHES=(
44
	"${FILESDIR}"/${P}-egg.patch
35
	"${FILESDIR}"/${PN}-6.5.2-py.patch
45 36
)
46 37

  
47
src_prepare() {
48
	default
49
	# Let cython reproduce this for more recent python versions
50
	rm wrappers/python/lhapdf.cpp || die
51
	eautoreconf
52
}
53

  
54 38
src_configure() {
39
	CONFIG_SHELL="${EPREFIX}/bin/bash" \
55 40
	econf \
56 41
		--disable-static \
57 42
		--enable-python
58

  
59
	cd "${S}"/wrappers/python || die
60
	distutils-r1_src_prepare
61 43
}
62 44

  
63 45
src_compile() {
64 46
	emake all $(use doc && echo doxy)
65

  
66
	cd "${S}"/wrappers/python || die
67
	distutils-r1_src_compile
68 47
}
69 48

  
70 49
src_test() {
......
76 55
	use doc && dodoc -r doc/doxygen/.
77 56
	use examples && dodoc examples/*.cc
78 57

  
79
	cd "${S}"/wrappers/python || die
80
	distutils-r1_src_install
58
	python_optimize
81 59

  
82 60
	find "${ED}" -name '*.la' -delete || die
83 61
}
Thank you!