diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2020-04-20 17:20:56 +0200 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2020-04-20 17:33:02 +0200 |
commit | edd7976330c46e4074ef909aa3387ebbf9194333 (patch) | |
tree | cea56235e441f9bcd1effa93aceed8caec7f176f /net-vpn | |
parent | net-analyzer/netdata: Cleanup old version (diff) | |
download | gentoo-edd7976330c46e4074ef909aa3387ebbf9194333.tar.gz gentoo-edd7976330c46e4074ef909aa3387ebbf9194333.tar.bz2 gentoo-edd7976330c46e4074ef909aa3387ebbf9194333.zip |
net-vpn/networkmanager-wireguard: change appdata to metainfo
Closes: https://bugs.gentoo.org/718034
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'net-vpn')
2 files changed, 92 insertions, 0 deletions
diff --git a/net-vpn/networkmanager-wireguard/files/networkmanager-wireguard-0_pre20191128-change-appdata-path.patch b/net-vpn/networkmanager-wireguard/files/networkmanager-wireguard-0_pre20191128-change-appdata-path.patch new file mode 100644 index 000000000000..d774613a9176 --- /dev/null +++ b/net-vpn/networkmanager-wireguard/files/networkmanager-wireguard-0_pre20191128-change-appdata-path.patch @@ -0,0 +1,29 @@ +From f02a7863a13ad5da340b35648ae5cefc0789869e Mon Sep 17 00:00:00 2001 +From: Conrad Kostecki <conrad@kostecki.com> +Date: Mon, 20 Apr 2020 17:00:58 +0200 +Subject: [PATCH] Makefile.am: store appdata to /usr/share/metainfo + +The path '/usr/share/appdata' is deprecated and +should be changed to '/usr/share/metainfo'. + +See section: 2.1.2. Filesystem locations +https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html + +Signed-off-by: Conrad Kostecki <conrad@kostecki.com> +--- + Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile.am b/Makefile.am +index 81c6923..53d6f1b 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -266,7 +266,7 @@ uninstall-hook: + rm -f $(DESTDIR)$(sysconfdir)/NetworkManager/VPN/nm-wireguard-service.name + endif + +-appdatadir = $(datadir)/appdata ++appdatadir = $(datadir)/metainfo + appdata_files = $(appdata_in_files:.xml.in=.xml) + if WITH_GNOME + appdata_DATA = $(appdata_files) diff --git a/net-vpn/networkmanager-wireguard/networkmanager-wireguard-0_pre20191128-r5.ebuild b/net-vpn/networkmanager-wireguard/networkmanager-wireguard-0_pre20191128-r5.ebuild new file mode 100644 index 000000000000..9b37b3a8b4cf --- /dev/null +++ b/net-vpn/networkmanager-wireguard/networkmanager-wireguard-0_pre20191128-r5.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +EGIT_COMMIT="0e1124df9e97129c5e0d9996a2c3876ae18f01c4" +MY_PN="${PN/network/network-}" + +DESCRIPTION="NetworkManager WireGuard plugin" +HOMEPAGE="https://github.com/max-moser/network-manager-wireguard" +SRC_URI="https://github.com/max-moser/${MY_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+gtk +nls" + +RDEPEND=" + >=net-misc/networkmanager-1.7.0 + net-vpn/wireguard-tools[wg-quick] + >=dev-libs/glib-2.32:2 + gtk? ( + >=x11-libs/gtk+-3.4:3 + >=net-libs/libnma-1.7.0 + >=app-crypt/libsecret-0.18 + ) +" + +DEPEND="${RDEPEND}" + +BDEPEND=" + virtual/pkgconfig + nls? ( + dev-util/intltool + sys-devel/gettext + ) +" + +S="${WORKDIR}/${MY_PN}-${EGIT_COMMIT}" + +PATCHES="${FILESDIR}/${PN}-0_pre20191128-change-appdata-path.patch" + +src_prepare() { + default + + eautoreconf +} + +src_configure() { + local myeconfargs=( + --disable-lto + --disable-more-warnings + --disable-static + $(use_with gtk gnome) + --without-libnm-glib + $(use_enable nls) + --with-dist-version="Gentoo" + ) + + econf "${myeconfargs[@]}" +} |