Diff libupnp-1.18.5 with a libupnp-22.1.10

/usr/portage/net-libs/libupnp/libupnp-22.1.10.ebuild 2026-11-03 20:01:06.197025742 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
inherit autotools
6
inherit cmake
7 7

  
8 8
MY_PN="pupnp"
9 9

  
......
13 13
S="${WORKDIR}/${MY_PN}-release-${PV}"
14 14

  
15 15
LICENSE="BSD"
16
SLOT="0/20"
17
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~sparc x86"
16
SLOT="0/22"
17
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
18 18
IUSE="blocking-tcp debug doc +reuseaddr samples +ssl static-libs"
19 19

  
20 20
RDEPEND="ssl? ( dev-libs/openssl:0= )"
21 21
DEPEND="${RDEPEND}"
22 22
BDEPEND="virtual/pkgconfig"
23 23

  
24
PATCHES=( "${FILESDIR}/${PN}-1.14.31-disable-network-tests.patch" )
25

  
26
src_prepare() {
27
	default
28
	eautoreconf
29
}
24
PATCHES=( "${FILESDIR}/${PN}-22.0.10-disable-network-tests.patch" )
30 25

  
31 26
src_configure() {
32
	local myeconfargs=(
33
		$(use_enable blocking-tcp blocking-tcp-connections)
34
		$(use_enable debug)
35
		--enable-ipv6
36
		$(use_enable reuseaddr)
37
		$(use_enable samples)
38
		$(use_enable ssl open_ssl)
39
		$(use_enable static-libs static)
27
	local mycmakeargs=(
28
		-DUPNP_BUILD_SAMPLES="$(usex samples ON OFF)"
29
		-DUPNP_BUILD_STATIC="$(usex static-libs ON OFF)"
30
		-DUPNP_ENABLE_BLOCKING_TCP_CONNECTIONS="$(usex blocking-tcp ON OFF)"
31
		-DUPNP_ENABLE_DEBUG="$(usex debug ON OFF)"
32
		-DUPNP_ENABLE_IPV6="ON"
33
		-DUPNP_ENABLE_OPEN_SSL="$(usex ssl ON OFF)"
34
		-DUPNP_MINISERVER_REUSEADDR="$(usex reuseaddr ON OFF)"
40 35
	)
41 36

  
42
	econf ${myeconfargs[@]}
37
	cmake_src_configure
43 38
}
44 39

  
45 40
src_install() {
46
	default
47

  
48
	find "${D}" -name '*.la' -delete || die
41
	cmake_src_install
42
	use doc && dodoc docs/UPnP_Programming_Guide.pdf
43
	find "${ED}" -name '*.la' -delete || die
49 44
}
Thank you!