summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conrad@kostecki.com>2019-09-18 20:12:28 +0200
committerJoonas Niilola <juippis@gentoo.org>2019-09-20 18:35:47 +0300
commit50672bd7867a43143e4812c53e12728e3a451d8f (patch)
tree27c58dff25b9b85cada00f7b40ac53e1dfc70b53 /net-misc
parentnet-misc/networkmanager-wireguard: add a snapshot version (diff)
downloadgentoo-50672bd7867a43143e4812c53e12728e3a451d8f.tar.gz
gentoo-50672bd7867a43143e4812c53e12728e3a451d8f.tar.bz2
gentoo-50672bd7867a43143e4812c53e12728e3a451d8f.zip
net-misc/networkmanager-wireguard: bump 9999 to EAPI=7
Also unify with non 9999 ebuild. Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: Conrad Kostecki <conrad@kostecki.com> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/networkmanager-wireguard/networkmanager-wireguard-9999.ebuild60
1 files changed, 33 insertions, 27 deletions
diff --git a/net-misc/networkmanager-wireguard/networkmanager-wireguard-9999.ebuild b/net-misc/networkmanager-wireguard/networkmanager-wireguard-9999.ebuild
index 4b4db34248c..a89b8e99793 100644
--- a/net-misc/networkmanager-wireguard/networkmanager-wireguard-9999.ebuild
+++ b/net-misc/networkmanager-wireguard/networkmanager-wireguard-9999.ebuild
@@ -1,50 +1,56 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
-EGIT_REPO_URI="https://github.com/max-moser/network-manager-wireguard"
-
-GNOME2_EAUTORECONF=yes
-
-inherit gnome2 user git-r3
+inherit autotools git-r3
DESCRIPTION="NetworkManager WireGuard plugin"
HOMEPAGE="https://github.com/max-moser/network-manager-wireguard"
SRC_URI=""
+EGIT_REPO_URI="https://github.com/max-moser/network-manager-wireguard"
LICENSE="GPL-2+"
SLOT="0"
-KEYWORDS=""
-IUSE="gtk test"
+IUSE="+glib +gtk +nls"
RDEPEND="
- >=dev-libs/glib-2.54:2
- >=net-misc/networkmanager-1.7.0:=
+ net-misc/networkmanager
net-vpn/wireguard
+ glib? ( dev-libs/glib )
gtk? (
- >=app-crypt/libsecret-0.18
- >=gnome-extra/nm-applet-1.7.0
- >=x11-libs/gtk+-3.4:3
+ app-crypt/libsecret
+ gnome-extra/nm-applet
+ x11-libs/gtk+:3
)
"
-DEPEND="${RDEPEND}
- sys-devel/gettext
- >=dev-util/intltool-0.35
+
+DEPEND="${RDEPEND}"
+
+BDEPEND="
virtual/pkgconfig
+ nls? (
+ dev-util/intltool
+ sys-devel/gettext
+ )
"
-src_unpack() {
- git-r3_src_unpack
+src_prepare() {
+ default
+
+ eautoreconf
}
src_configure() {
- # --localstatedir=/var needed per bug #536248
- gnome2_src_configure \
- --localstatedir=/var \
- --disable-more-warnings \
- --disable-static \
- --with-dist-version=Gentoo \
- $(use_with gtk gnome) \
- $(use_with gtk libnm-glib)
+ local myeconfargs=(
+ --disable-lto
+ --disable-more-warnings
+ --disable-static
+ $(use_with glib libnm-glib)
+ $(use_with gtk gnome)
+ $(use_enable nls)
+ --with-dist-version="Gentoo"
+ )
+
+ econf "${myeconfargs[@]}"
}