Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libupnp/, net-libs/libupnp/files/
Date: Sun, 03 Oct 2021 13:06:25
Message-Id: 1633266361.05d9a1ee2b98375bc7cc3f0b6979fb643ab60247.conikost@gentoo
1 commit: 05d9a1ee2b98375bc7cc3f0b6979fb643ab60247
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 3 13:06:01 2021 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 3 13:06:01 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05d9a1ee
7
8 net-libs/libupnp: bump to version 1.14.12
9
10 I am also taking ownership, as this package has been dropped to m-n.
11 Both tests, 'test_init' and 'test_url', have been disabled, as they
12 required network and can't run in our network sandbox. Rest will just
13 run fine.
14
15 Closes: https://bugs.gentoo.org/628392
16 Closes: https://bugs.gentoo.org/733750
17 Package-Manager: Portage-3.0.22, Repoman-3.0.3
18 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
19
20 net-libs/libupnp/Manifest | 1 +
21 .../libupnp-1.14.12-disable-network-tests.patch | 15 +++++++
22 net-libs/libupnp/libupnp-1.14.12.ebuild | 50 ++++++++++++++++++++++
23 net-libs/libupnp/metadata.xml | 30 +++++++------
24 4 files changed, 83 insertions(+), 13 deletions(-)
25
26 diff --git a/net-libs/libupnp/Manifest b/net-libs/libupnp/Manifest
27 index f3c0cc8ddcb..a4442cccbb0 100644
28 --- a/net-libs/libupnp/Manifest
29 +++ b/net-libs/libupnp/Manifest
30 @@ -1 +1,2 @@
31 +DIST libupnp-1.14.12.tar.gz 788299 BLAKE2B 721c10f9fa4ffc60743b4ebf8be566ea595931cb1f2a2448d8e3cecfc787abfb855cb16256eaaa10ce6a901cd5e5b3d14672610841b2a718d5dd003ccfd3c2f0 SHA512 aab17aa12f15d110bfab20cbcbae5f54926b6ca7a30bce10b9287cd39919a06a5e9f1493405e1d561c0d58ba46926f87009df891e4e4f37097df1c3c67635ca9
32 DIST libupnp-1.14.7.tar.gz 785084 BLAKE2B 539388737dda0dd037cb50fbc1cca8bcdc43d1d706bdb7da19d1a184cfd61f3d585d9beef2a9c8c33f2cb2640a8479210ad6c358abd7193f304509df574e912c SHA512 92dd80d1bbaa64e6d3909c5bce73d0340fcd3a3c1d247a634bd48ec077ba0ce0b8224d1a670a66f6a8c591e31a54f15526071d62ae5460e85d582d7b6b67c674
33
34 diff --git a/net-libs/libupnp/files/libupnp-1.14.12-disable-network-tests.patch b/net-libs/libupnp/files/libupnp-1.14.12-disable-network-tests.patch
35 new file mode 100644
36 index 00000000000..4c602c02d8d
37 --- /dev/null
38 +++ b/net-libs/libupnp/files/libupnp-1.14.12-disable-network-tests.patch
39 @@ -0,0 +1,15 @@
40 +--- a/upnp/Makefile.am
41 ++++ b/upnp/Makefile.am
42 +@@ -203,10 +203,8 @@
43 +
44 +
45 + # check / distcheck tests
46 +-check_PROGRAMS = test_init test_url test_log test_list
47 +-TESTS = test_init test_url test_log test_list
48 +-test_init_SOURCES = test/test_init.c
49 +-test_url_SOURCES = test/test_url.c
50 ++check_PROGRAMS = test_log test_list
51 ++TESTS = test_log test_list
52 + test_log_SOURCES = test/test_log.c
53 + test_list_SOURCES = test/test_list.c
54 +
55
56 diff --git a/net-libs/libupnp/libupnp-1.14.12.ebuild b/net-libs/libupnp/libupnp-1.14.12.ebuild
57 new file mode 100644
58 index 00000000000..a7af6a46ad6
59 --- /dev/null
60 +++ b/net-libs/libupnp/libupnp-1.14.12.ebuild
61 @@ -0,0 +1,50 @@
62 +# Copyright 1999-2021 Gentoo Authors
63 +# Distributed under the terms of the GNU General Public License v2
64 +
65 +EAPI=8
66 +
67 +inherit autotools
68 +
69 +MY_PN="pupnp"
70 +
71 +DESCRIPTION="An Portable Open Source UPnP Development Kit"
72 +HOMEPAGE="http://pupnp.sourceforge.net/"
73 +SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/release-${PV}.tar.gz -> ${P}.tar.gz"
74 +S="${WORKDIR}/${MY_PN}-release-${PV}"
75 +
76 +LICENSE="BSD"
77 +SLOT="0/17"
78 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux"
79 +IUSE="blocking-tcp debug doc +ipv6 +reuseaddr samples +ssl static-libs tools"
80 +
81 +RDEPEND="ssl? ( dev-libs/openssl:0= )"
82 +DEPEND="${RDEPEND}"
83 +BDEPEND="virtual/pkgconfig"
84 +
85 +PATCHES=( "${FILESDIR}/${PN}-1.14.12-disable-network-tests.patch" )
86 +
87 +src_prepare() {
88 + default
89 + eautoreconf
90 +}
91 +
92 +src_configure() {
93 + local myeconfargs=(
94 + $(use_enable blocking-tcp blocking-tcp-connections)
95 + $(use_enable debug)
96 + $(use_enable ipv6)
97 + $(use_enable reuseaddr)
98 + $(use_enable samples)
99 + $(use_enable ssl open_ssl)
100 + $(use_enable static-libs static)
101 + $(use_enable tools)
102 + )
103 +
104 + econf ${myeconfargs[@]}
105 +}
106 +
107 +src_install() {
108 + default
109 +
110 + find "${D}" -name '*.la' -delete || die
111 +}
112
113 diff --git a/net-libs/libupnp/metadata.xml b/net-libs/libupnp/metadata.xml
114 index 0fb34d993c6..f11aa55da64 100644
115 --- a/net-libs/libupnp/metadata.xml
116 +++ b/net-libs/libupnp/metadata.xml
117 @@ -1,17 +1,21 @@
118 <?xml version="1.0" encoding="UTF-8"?>
119 <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
120 <pkgmetadata>
121 - <!-- maintainer-needed -->
122 - <slots>
123 - <subslots>Reflect ABI of libupnp.so.</subslots>
124 - </slots>
125 - <upstream>
126 - <remote-id type="sourceforge">pupnp</remote-id>
127 - <remote-id type="github">pupnp/pupnp</remote-id>
128 - </upstream>
129 - <use>
130 - <flag name="reuseaddr">Allow clean restarts by binding the socket with SO_REUSEADDR</flag>
131 - <flag name="blocking-tcp">Do not use async socket calls</flag>
132 - <flag name="samples">Install sample applications</flag>
133 - </use>
134 + <maintainer type="person">
135 + <email>conikost@g.o</email>
136 + <name>Conrad Kostecki</name>
137 + </maintainer>
138 + <slots>
139 + <subslots>Reflect ABI of libupnp.so</subslots>
140 + </slots>
141 + <upstream>
142 + <remote-id type="sourceforge">pupnp</remote-id>
143 + <remote-id type="github">pupnp/pupnp</remote-id>
144 + </upstream>
145 + <use>
146 + <flag name="blocking-tcp">Do not use async socket calls</flag>
147 + <flag name="reuseaddr">Allow clean restarts by binding the socket with SO_REUSEADDR</flag>
148 + <flag name="samples">Install sample applications</flag>
149 + <flag name="tools">Install additional tools</flag>
150 + </use>
151 </pkgmetadata>