commit:     6c9d623b817d83875351c916cca8121454e249b6
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 13 09:54:34 2021 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Feb 13 09:54:34 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c9d623b

net-analyzer/slurm: Fix includes

* Port to EAPI 7
* Use patch from Alpine

Bug: https://bugs.gentoo.org/757054
Closes: https://bugs.gentoo.org/713664
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 .../slurm/files/slurm-0.4.3-fix-includes.patch     | 22 ++++++++++++++
 net-analyzer/slurm/slurm-0.4.3.ebuild              | 34 +++++++++-------------
 2 files changed, 36 insertions(+), 20 deletions(-)

diff --git a/net-analyzer/slurm/files/slurm-0.4.3-fix-includes.patch 
b/net-analyzer/slurm/files/slurm-0.4.3-fix-includes.patch
new file mode 100644
index 00000000000..9e933ffc509
--- /dev/null
+++ b/net-analyzer/slurm/files/slurm-0.4.3-fix-includes.patch
@@ -0,0 +1,22 @@
+--- a/os.h
++++ b/os.h
+@@ -177,7 +177,7 @@
+ #elif defined (__linux__)             /* L I N U X */
+ #include <stdio.h>
+ #include <sys/param.h>
+-#include <sys/sysctl.h>
++#include <linux/sysctl.h>
+ #include <stdlib.h>
+ #include <stdarg.h>
+ #include <unistd.h>
+@@ -195,8 +195,8 @@
+ #include <netinet/in.h>
+ #include <net/if.h>
+ #include <arpa/inet.h>
+-#include <net/ppp_defs.h>
+-#include <net/if_ppp.h>
++#include <linux/ppp_defs.h>
++#include <linux/if_ppp.h>
+ #elif defined (__Solaris__)           /* S O L A R I S */
+ #include <stdio.h>
+ #define NO_CURSES_E   1

diff --git a/net-analyzer/slurm/slurm-0.4.3.ebuild 
b/net-analyzer/slurm/slurm-0.4.3.ebuild
index 95641beb1b2..da86bb68d8b 100644
--- a/net-analyzer/slurm/slurm-0.4.3.ebuild
+++ b/net-analyzer/slurm/slurm-0.4.3.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
-inherit cmake-utils
+EAPI=7
+
+inherit cmake
 
 DESCRIPTION="Realtime network interface monitor based on FreeBSD's pppstatus"
 HOMEPAGE="https://github.com/mattthias/slurm";
@@ -12,26 +13,19 @@ LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
 
-RDEPEND="
-       sys-libs/ncurses:*
-"
-DEPEND="
-       ${RDEPEND}
-"
+RDEPEND="sys-libs/ncurses:="
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${PN}-upstream"
+
 PATCHES=(
        "${FILESDIR}"/${PN}-0.3.3-overflow.patch
        "${FILESDIR}"/${P}-tinfo.patch
        "${FILESDIR}"/${P}-version.patch
-)
-DOCS=(
-       AUTHORS
-       ChangeLog
-       FAQ
-       KEYS
-       README
-       THANKS
-       THEMES.txt
-       TODO
+       "${FILESDIR}"/${P}-fix-includes.patch
 )
 
-S=${WORKDIR}/${PN}-upstream
+src_install() {
+       cmake_src_install
+       dodoc KEYS THEMES.txt
+}

Reply via email to