sys-process/daemontools: EAPI-7 revbump
authorLars Wendler <polynomial-c@gentoo.org>
Thu, 7 Nov 2019 14:47:19 +0000 (15:47 +0100)
committerLars Wendler <polynomial-c@gentoo.org>
Thu, 7 Nov 2019 17:05:14 +0000 (18:05 +0100)
Closes: https://bugs.gentoo.org/697166
Package-Manager: Portage-2.3.78, Repoman-2.3.17
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
sys-process/daemontools/daemontools-0.76-r8.ebuild [moved from sys-process/daemontools/daemontools-0.76-r7.ebuild with 78% similarity]

similarity index 78%
rename from sys-process/daemontools/daemontools-0.76-r7.ebuild
rename to sys-process/daemontools/daemontools-0.76-r8.ebuild
index 5f2a20bcb1e330b8d3be5d3d9e7d92a766f6d039..98a029774410544235d4c0f672d595511a41d4e7 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=0
+EAPI=7
 
-inherit eutils flag-o-matic qmail
+inherit flag-o-matic qmail
 
 DESCRIPTION="Collection of tools for managing UNIX services"
 HOMEPAGE="http://cr.yp.to/daemontools.html"
@@ -19,14 +19,16 @@ DEPEND=""
 RDEPEND="selinux? ( sec-policy/selinux-daemontools )
        !app-doc/daemontools-man"
 
-S="${WORKDIR}"/admin/${P}/src
+S="${WORKDIR}/admin/${P}/src"
 
-src_unpack() {
-       unpack ${A}
-       cd "${S}"
+PATCHES=(
+       "${FILESDIR}"/${PV}-errno.patch
+       "${FILESDIR}"/${PV}-warnings.patch
+)
+
+src_prepare() {
+       default
 
-       epatch "${FILESDIR}"/${PV}-errno.patch
-       epatch "${FILESDIR}"/${PV}-warnings.patch
        ht_fix_file Makefile print-{cc,ld}.sh
 
        use static && append-ldflags -static
@@ -34,14 +36,14 @@ src_unpack() {
 }
 
 src_compile() {
-       touch home
-       emake || die
+       touch home || die
+       emake
 }
 
 src_install() {
        keepdir /service
 
-       dobin $(<../package/commands) || die
+       dobin $(<../package/commands)
        dodoc CHANGES ../package/README TODO
        doman "${WORKDIR}"/${PN}-man/*.8