commit:     923c2c30d714f38ab7b8b59e88356a86a5c3bf47
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat Dec  2 15:27:55 2017 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Dec  2 16:14:57 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=923c2c30

sys-apps/audio-entropyd: Port to EAPI 6

Package-Manager: Portage-2.3.16, Repoman-2.3.6

 sys-apps/audio-entropyd/Manifest                   |  2 +-
 .../audio-entropyd/audio-entropyd-2.0.3-r1.ebuild  | 34 +++++++++++++---------
 2 files changed, 22 insertions(+), 14 deletions(-)

diff --git a/sys-apps/audio-entropyd/Manifest b/sys-apps/audio-entropyd/Manifest
index f70abfd2426..6841c181110 100644
--- a/sys-apps/audio-entropyd/Manifest
+++ b/sys-apps/audio-entropyd/Manifest
@@ -1 +1 @@
-DIST audio-entropyd-2.0.3.tgz 16681 SHA256 
6fbaf1c4f77e988f4656cd079309d5eb6bd36cbae89c2ee01324c5690adaf3ff SHA512 
d21c2d547235accdd460bcaf1ff5f5696db2988d385c3c52aad0d651865386409682f8747d1823765f0c0925bf28f38abdfc0b114d239f494c7eb699c5ed3ebf
 WHIRLPOOL 
e653b7cccda00323b5f17a675d72cef1a9adf9915dcd27041e63993073a378d92ab5779d25434ecd48ecbb74b45abc4217e4b629c98ba3885589727ef90edf6d
+DIST audio-entropyd-2.0.3.tgz 16681 BLAKE2B 
36f9d7942f718af8e828ce6598ab8ea35945de1c60959e7bc2314b2440037f8bb661085a4cad12e62627d935797842616e486180945ff283937b499de163f068
 SHA512 
d21c2d547235accdd460bcaf1ff5f5696db2988d385c3c52aad0d651865386409682f8747d1823765f0c0925bf28f38abdfc0b114d239f494c7eb699c5ed3ebf

diff --git a/sys-apps/audio-entropyd/audio-entropyd-2.0.3-r1.ebuild 
b/sys-apps/audio-entropyd/audio-entropyd-2.0.3-r1.ebuild
index 5e5a60fb72c..cab08ef38cf 100644
--- a/sys-apps/audio-entropyd/audio-entropyd-2.0.3-r1.ebuild
+++ b/sys-apps/audio-entropyd/audio-entropyd-2.0.3-r1.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=4
-inherit eutils systemd toolchain-funcs
+EAPI=6
+
+inherit systemd toolchain-funcs
 
 DESCRIPTION="Audio-entropyd generates entropy-data for the /dev/random device"
 HOMEPAGE="http://www.vanheusden.com/aed/";
@@ -13,25 +14,32 @@ SLOT="0"
 KEYWORDS="amd64 ppc ~sparc x86"
 IUSE="selinux"
 
-RDEPEND="selinux? ( sec-policy/selinux-entropyd )
+DEPEND="media-libs/alsa-lib:="
+RDEPEND="${DEPEND}
        media-sound/alsa-utils
-       media-libs/alsa-lib"
+       selinux? ( sec-policy/selinux-entropyd )"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-2.0.1-uclibc.patch
+       "${FILESDIR}"/${PN}-2.0.1-ldflags.patch
+)
 
 src_prepare() {
-       epatch "${FILESDIR}/${PN}-2.0.1-uclibc.patch" \
-               "${FILESDIR}/${PN}-2.0.1-ldflags.patch"
+       default
+
        sed -i -e "s:^OPT_FLAGS=.*:OPT_FLAGS=${CFLAGS}:" \
                -e "/^WARNFLAGS/s: -g::" Makefile || die
 }
 
-src_compile() {
-       emake CC="$(tc-getCC)"
+src_configure() {
+       tc-export CC
 }
 
 src_install() {
        dosbin audio-entropyd
-       dodoc README TODO
-       systemd_dounit "${FILESDIR}/${PN}.service"
-       newinitd "${FILESDIR}/${PN}.init-2" ${PN}
-       newconfd "${FILESDIR}/${PN}.conf-2" ${PN}
+       einstalldocs
+
+       systemd_dounit "${FILESDIR}"/${PN}.service
+       newinitd "${FILESDIR}"/${PN}.init-2 ${PN}
+       newconfd "${FILESDIR}"/${PN}.conf-2 ${PN}
 }

Reply via email to