Gentoo Archives: gentoo-commits

From: Ian Whyman <thev00d00@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libupnp/
Date: Sun, 17 Nov 2019 18:14:51
Message-Id: 1574014483.5c5dbed26f4de217f8c2ae42aff0639aecdcd861.thev00d00@gentoo
1 commit: 5c5dbed26f4de217f8c2ae42aff0639aecdcd861
2 Author: Ian Whyman <thev00d00 <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 17 18:14:23 2019 +0000
4 Commit: Ian Whyman <thev00d00 <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 17 18:14:43 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c5dbed2
7
8 net-libs/libupnp: Version bump 1.10
9
10 First steps towards removing the now unneeded 1.8 slotting
11
12 Package-Manager: Portage-2.3.79, Repoman-2.3.18
13 Signed-off-by: Ian Whyman <thev00d00 <AT> gentoo.org>
14
15 net-libs/libupnp/Manifest | 1 +
16 net-libs/libupnp/libupnp-1.10.0-r100.ebuild | 47 +++++++++++++++++++
17 net-libs/libupnp/libupnp-1.10.0.ebuild | 70 +++++++++++++++++++++++++++++
18 3 files changed, 118 insertions(+)
19
20 diff --git a/net-libs/libupnp/Manifest b/net-libs/libupnp/Manifest
21 index a65c18d588b..8f88afcf922 100644
22 --- a/net-libs/libupnp/Manifest
23 +++ b/net-libs/libupnp/Manifest
24 @@ -1,3 +1,4 @@
25 +DIST libupnp-1.10.0.tar.gz 786215 BLAKE2B b652251fe4f91179b855d5231466e026ce4a232a7b6196a3a1f01fb7163b0cf953a1cffeb4330c9734f001014cda2a0a1c3ac2d3600bcd78ad8eeb42b062ea61 SHA512 d42a42ace366a781ff29db4b91d1b0dc27138c60028629dae1608335085fbab0e22bcfa5744a8e6890d948f86b642945721226204a09f8ba3c9a49e1a5b6b2b5
26 DIST libupnp-1.6.21.tar.bz2 1245353 BLAKE2B ca9ff07f88cfc77c3e3f7250ec1de6fb8c1ad3a918f556a7d37a6e994b67d825608edd3fd788a5b5979de72e3b25288225af3b5b8c58f54395682eef50bfc2d2 SHA512 65a2989497b941dfa1f7ac09fe44267de4a5231af25a304f0f6e754c7cbb578bdcb3c500188b5ebfbff9f579099db7501817d45e1724ef8e384d6d918bcdcdeb
27 DIST libupnp-1.6.25.tar.bz2 722731 BLAKE2B 7f1850a235683ecd19bc377cd5c80c9d7ee8f0ded123dfc00d29551d2fd97fb873ce4c30ce0d26d562c57470c266a573c37fed4c0db159c65c56c673271adf92 SHA512 c1426c2f855f34a56b96761602a35989867918b556ecf9784c9ce9580f6c6083950004909831bad331f3a4dfb70ef1bd287e026c71bbfde2613f77fe05ab9e1f
28 DIST libupnp-1.8.4.tar.gz 783896 BLAKE2B 483ae5344b0677441a02d4666476090e00d0f7b7798e24a7dbe7ea10cd68f02644851ba17cff06033714dc9f2ddf7d9c5588e5a54693f14ad1a9782a7751480d SHA512 6d96dc0dcf187a425f3b60f4e750102331bd0a5bd452007e345eeacb63e9287ac213574c8071294809283ff8d8795433706ed2a14bae3d451605bf7a75e5a5bb
29
30 diff --git a/net-libs/libupnp/libupnp-1.10.0-r100.ebuild b/net-libs/libupnp/libupnp-1.10.0-r100.ebuild
31 new file mode 100644
32 index 00000000000..5d4c9a581d9
33 --- /dev/null
34 +++ b/net-libs/libupnp/libupnp-1.10.0-r100.ebuild
35 @@ -0,0 +1,47 @@
36 +# Copyright 1999-2019 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=6
40 +
41 +inherit eutils flag-o-matic autotools vcs-snapshot
42 +
43 +DESCRIPTION="An Portable Open Source UPnP Development Kit"
44 +HOMEPAGE="http://pupnp.sourceforge.net/"
45 +SRC_URI="https://github.com/mrjimenez/pupnp/archive/release-${PV}.tar.gz -> ${P}.tar.gz"
46 +
47 +LICENSE="BSD"
48 +SLOT="0"
49 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
50 +IUSE="blocking-tcp debug doc ipv6 +reuseaddr samples static-libs"
51 +
52 +DOCS="ChangeLog"
53 +
54 +PATCHES=(
55 + "${FILESDIR}"/${PN}-1.6.21-cflags.patch
56 +)
57 +
58 +src_prepare() {
59 + default
60 +
61 + # fix tests
62 + chmod +x ixml/test/test_document.sh || die
63 +
64 + eautoreconf
65 +}
66 +
67 +src_configure() {
68 + use x86-fbsd && append-flags -O1
69 + # w/o docdir to avoid sandbox violations
70 + econf $(use_enable debug) \
71 + $(use_enable blocking-tcp blocking-tcp-connections) \
72 + $(use_enable ipv6) \
73 + $(use_enable reuseaddr) \
74 + $(use_enable static-libs static) \
75 + $(use_enable samples)
76 +}
77 +
78 +src_install () {
79 + default
80 +
81 + use static-libs || prune_libtool_files
82 +}
83
84 diff --git a/net-libs/libupnp/libupnp-1.10.0.ebuild b/net-libs/libupnp/libupnp-1.10.0.ebuild
85 new file mode 100644
86 index 00000000000..2d629febf65
87 --- /dev/null
88 +++ b/net-libs/libupnp/libupnp-1.10.0.ebuild
89 @@ -0,0 +1,70 @@
90 +# Copyright 1999-2019 Gentoo Authors
91 +# Distributed under the terms of the GNU General Public License v2
92 +
93 +EAPI=6
94 +
95 +inherit eutils flag-o-matic autotools vcs-snapshot
96 +
97 +DESCRIPTION="An Portable Open Source UPnP Development Kit"
98 +HOMEPAGE="http://pupnp.sourceforge.net/"
99 +SRC_URI="https://github.com/mrjimenez/pupnp/archive/release-${PV}.tar.gz -> ${P}.tar.gz"
100 +
101 +LICENSE="BSD"
102 +SLOT="1.8"
103 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
104 +IUSE="blocking-tcp debug doc ipv6 +reuseaddr samples static-libs"
105 +
106 +DOCS="ChangeLog"
107 +
108 +PATCHES=(
109 + "${FILESDIR}"/${PN}-1.6.21-cflags.patch
110 +)
111 +
112 +src_prepare() {
113 + default
114 +
115 + # fix tests
116 + chmod +x ixml/test/test_document.sh || die
117 +
118 + eautoreconf
119 +}
120 +
121 +src_configure() {
122 + use x86-fbsd && append-flags -O1
123 + # w/o docdir to avoid sandbox violations
124 + econf $(use_enable debug) \
125 + $(use_enable blocking-tcp blocking-tcp-connections) \
126 + $(use_enable ipv6) \
127 + $(use_enable reuseaddr) \
128 + $(use_enable static-libs static) \
129 + $(use_enable samples)
130 +}
131 +
132 +src_install () {
133 + default
134 +
135 + use static-libs || prune_libtool_files
136 +
137 + # Slot samples
138 + if $(use samples); then
139 + for bin in combo ctrlpt device ; do
140 + newbin "upnp/sample/.libs/tv_$bin" "tv_$bin-${SLOT}"
141 + done
142 + fi
143 +
144 + # Slot includes
145 + cd "${D}/usr/include" || die
146 + mv upnp "upnp-${SLOT}" || die
147 +
148 + # Slot pkgconfig
149 + cd "${D}/usr/$(get_libdir)/pkgconfig" || die
150 + mv libupnp.pc "libupnp-${SLOT}.pc" || die
151 + sed -i -e "s#/upnp#/upnp-${SLOT}#" \
152 + -e "s#lupnp#lupnp-${SLOT}#" \
153 + -e "s#lixml#lixml-${SLOT}#" "libupnp-${SLOT}.pc" || die
154 +
155 + # Slot symlinks
156 + cd "${D}/usr/$(get_libdir)" || die
157 + mv libupnp.so "libupnp-${SLOT}.so" || die
158 + mv libixml.so "libixml-${SLOT}.so" || die
159 +}