net-vpn/networkmanager-sstp: disable libnm-glib usage, fix some deps
authorMart Raudsepp <leio@gentoo.org>
Sun, 26 Apr 2020 10:53:14 +0000 (13:53 +0300)
committerMart Raudsepp <leio@gentoo.org>
Sun, 26 Apr 2020 10:55:45 +0000 (13:55 +0300)
* Ensure libnm-glib and co usage is always disabled
* Fix USE=gtk deps; libnma was missing, even after --without-libnm-glib
* Add missing gdbus-codegen build dep
* Drop dbus-glib dep, long ported to GDBus; dep on needed minimum glib
  as per upstream
* Drop ltprune.eclass usage and unused eutils.eclass inherit
* Other small min dep tweaks per configure.ac

Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Mart Raudsepp <leio@gentoo.org>
net-vpn/networkmanager-sstp/networkmanager-sstp-1.2.0-r1.ebuild [moved from net-vpn/networkmanager-sstp/networkmanager-sstp-1.2.0.ebuild with 80% similarity]

similarity index 80%
rename from net-vpn/networkmanager-sstp/networkmanager-sstp-1.2.0.ebuild
rename to net-vpn/networkmanager-sstp/networkmanager-sstp-1.2.0-r1.ebuild
index cfd469aae6bc68c66b5cea3cc9672e44a42c3b0a..e3d6d9c1d49b2114e4770a160c2daec3d78b1d07 100644 (file)
@@ -3,8 +3,6 @@
 
 EAPI=6
 
-inherit eutils ltprune
-
 MY_PN="NetworkManager-sstp"
 MY_P="${MY_PN}-${PV}"
 
@@ -17,17 +15,20 @@ SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE="gtk"
 
-RDEPEND=">=dev-libs/dbus-glib-0.74
+RDEPEND="
+       >=dev-libs/glib-2.32:2
        net-misc/sstp-client
-       >=net-misc/networkmanager-${PV}
+       >=net-misc/networkmanager-1.1.0
        net-dialup/ppp:=
        gtk? (
-               x11-libs/gtk+:3
+               >=x11-libs/gtk+-3.4:3
+               >=net-libs/libnma-1.1.0
                app-crypt/libsecret
        )
 "
 
 DEPEND="${RDEPEND}
+       dev-util/gdbus-codegen
        virtual/pkgconfig
        sys-devel/gettext
        dev-util/intltool
@@ -42,10 +43,11 @@ src_configure() {
                --disable-static \
                --with-dist-version=Gentoo \
                --with-pppd-plugin-dir="${EPREFIX}/usr/$(get_libdir)/pppd/${PPPD_VERSION}" \
-                $(use_with gtk gnome)
+                $(use_with gtk gnome) \
+                --without-libnm-glib
 }
 
 src_install() {
        default
-       prune_libtool_files
+       find "${ED}" -type f -name '*.la' -delete || die
 }