sys-process/pidof-bsd: Fix build failure on FreeBSD 11.0.
authorYuta Satoh <nigoro.dev@gmail.com>
Sun, 2 Oct 2016 09:18:48 +0000 (18:18 +0900)
committerAlexis Ballier <aballier@gentoo.org>
Mon, 10 Oct 2016 11:06:26 +0000 (13:06 +0200)
sys-process/pidof-bsd/files/pidof-bsd-20050501-fbsd10.patch [deleted file]
sys-process/pidof-bsd/files/pidof-bsd-20050501-fbsd11.patch [new file with mode: 0644]
sys-process/pidof-bsd/pidof-bsd-20050501-r4.ebuild

diff --git a/sys-process/pidof-bsd/files/pidof-bsd-20050501-fbsd10.patch b/sys-process/pidof-bsd/files/pidof-bsd-20050501-fbsd10.patch
deleted file mode 100644 (file)
index 5c7382e..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-share/mk/bsd.compat.mk has been removed from FreeBSD 10.0.
-An old style NOMAN is not supported anymore.
-
-https://bugs.gentoo.org/show_bug.cgi?id=483044
-
-diff --git a/Makefile b/Makefile
-index d2d760b..446bd6f 100644
---- a/Makefile
-+++ b/Makefile
-@@ -2,7 +2,7 @@
- PROG= pidof
- SRCS= pidof.c
--NOMAN=        yes
-+NO_MAN=       yes
- LDADD=        -lkvm
- LINKS=        ${BINDIR}/pidof
diff --git a/sys-process/pidof-bsd/files/pidof-bsd-20050501-fbsd11.patch b/sys-process/pidof-bsd/files/pidof-bsd-20050501-fbsd11.patch
new file mode 100644 (file)
index 0000000..4a1b162
--- /dev/null
@@ -0,0 +1,14 @@
+diff --git a/pidof/Makefile b/pidof/Makefile
+index d2d760b..67d2725 100644
+--- a/pidof/Makefile
++++ b/pidof/Makefile
+@@ -2,8 +2,7 @@
+ PROG= pidof
+ SRCS= pidof.c
+-NOMAN=        yes
++NO_MAN=       yes
+ LDADD=        -lkvm
+-LINKS=        ${BINDIR}/pidof
+ .include <bsd.prog.mk>
index 65fd527c014e8edc68cf8cab283d860b8bf48da6..3f3d74cd3f2b8cc1fcaa4f5736d37ea4a05b31a2 100644 (file)
@@ -2,7 +2,8 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-inherit base bsdmk
+EAPI=5
+inherit bsdmk
 
 DESCRIPTION="pidof(1) utility for *BSD"
 HOMEPAGE="http://people.freebsd.org/~novel/pidof.html"
@@ -21,7 +22,11 @@ S="${WORKDIR}/pidof"
 PATCHES=( "${FILESDIR}/${P}-gfbsd.patch"
        "${FILESDIR}/${P}-firstarg.patch"
        "${FILESDIR}/${P}-pname.patch"
-       "${FILESDIR}/${P}-fbsd10.patch" )
+       "${FILESDIR}/${P}-fbsd11.patch" )
+
+src_prepare() {
+       epatch "${PATCHES[@]}"
+}
 
 src_install() {
        into /