net-libs/miniupnpc-1.9.20151008: reduce SONAME
authorMichał Górny <mgorny@gentoo.org>
Fri, 16 Oct 2015 11:55:45 +0000 (13:55 +0200)
committerMichał Górny <mgorny@gentoo.org>
Fri, 16 Oct 2015 11:55:45 +0000 (13:55 +0200)
Reduce the installed library SONAME since upstream bumped it
unnecessarily when performing backwards-compatible API change. At least
once we're saved from rebuilding every reverse dependency.

Package-Manager: portage-2.2.23

net-libs/miniupnpc/miniupnpc-1.9.20151008.ebuild

index b1a0589a45b968c2e802775bc8c0bb71927daea0..7cc7e66c31c9740d570b005a402ff5d5ea18a794 100644 (file)
@@ -11,7 +11,7 @@ HOMEPAGE="http://miniupnp.free.fr/"
 SRC_URI="http://miniupnp.free.fr/files/${P}.tar.gz"
 
 LICENSE="BSD"
-SLOT="0/15"
+SLOT="0/14"
 KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
 IUSE="ipv6 kernel_linux static-libs"
 
@@ -22,7 +22,10 @@ src_prepare() {
        epatch_user
 
        # These bins are not installed, upnpc-static requires building static lib
-       sed -i -e '/EXECUTABLES =/s/ upnpc-static listdevices//' Makefile || die
+       # Reduce APIVERSION used to build SONAME since last API change was
+       # backwards compatible to surprise of all the universe.
+       sed -i -e '/EXECUTABLES =/s/ upnpc-static listdevices//' \
+               -e '/APIVERSION/s:15:14:' Makefile || die
 
        if ! use static-libs; then
                sed -i \