Diff libdnet-1.14-r2 with a libdnet-1.16.1

/usr/portage/dev-libs/libdnet/libdnet-1.16.1.ebuild 2023-10-09 14:52:29.512368351 +0300
1 1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6
AT_M4DIR="config"
7 6
PYTHON_COMPAT=( python3_{9..10} )
8 7
DISTUTILS_OPTIONAL=1
9 8
inherit autotools distutils-r1
10 9

  
11
DESCRIPTION="simplified, portable interface to several low-level networking routines"
10
DESCRIPTION="Simplified, portable interface to several low-level networking routines"
12 11
HOMEPAGE="https://github.com/ofalk/libdnet"
13 12
SRC_URI="https://github.com/ofalk/${PN}/archive/${P}.tar.gz"
14 13
S="${WORKDIR}/${PN}-${P}"
......
17 16
SLOT="0"
18 17
KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86"
19 18
IUSE="python test"
20
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
21 19
RESTRICT="!test? ( test )"
22 20

  
23
DEPEND="python? ( ${PYTHON_DEPS} )"
21
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
22

  
23
DEPEND="dev-libs/libbsd
24
	python? ( ${PYTHON_DEPS} )"
24 25
RDEPEND="${DEPEND}"
25
BDEPEND="
26
	python? (
27
		dev-python/cython[${PYTHON_USEDEP}]
28
	)
29
"
26
BDEPEND="python? ( dev-python/cython[${PYTHON_USEDEP}] )
27
	test? ( dev-libs/check )"
30 28

  
31 29
DOCS=( README.md THANKS )
32 30

  
33
PATCHES=(
34
	"${FILESDIR}/${PN}-1.14-ndisc.patch"
35
	"${FILESDIR}/${PN}-1.14-strlcpy.patch"
36
)
37

  
38 31
src_prepare() {
39 32
	default
40 33

  
41 34
	sed -i \
42 35
		-e 's/libcheck.a/libcheck.so/g' \
43
		-e 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g' \
44 36
		configure.ac || die
45 37
	sed -i \
46 38
		-e 's|-L$libdir ||g' \
......
49 41
		-e '/^SUBDIRS/s|python||g' \
50 42
		Makefile.am || die
51 43

  
52
	eautoreconf
44
	# Stale e.g. pkg-config macros w/ bashisms
45
	rm aclocal.m4 {config,m4}/libtool.m4 || die
46

  
47
	AT_M4DIR="config" eautoreconf
53 48

  
54 49
	if use python; then
55 50
		cd python || die
......
59 54

  
60 55
src_configure() {
61 56
	econf \
62
		--disable-static \
63
		$(use_with python)
57
		$(use_with python) \
58
		$(use_with test check "${ESYSROOT}/usr")
64 59
}
65 60

  
66 61
src_compile() {
Thank you!