media-libs/nas: EAPI-7, https, drop unused eutils,multilib
authorAndreas Sturmlechner <asturm@gentoo.org>
Wed, 22 Aug 2018 22:17:09 +0000 (00:17 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Wed, 22 Aug 2018 22:23:23 +0000 (00:23 +0200)
Package-Manager: Portage-2.3.48, Repoman-2.3.10

media-libs/nas/files/nas-1.9.2-asneeded.patch
media-libs/nas/nas-1.9.4-r2.ebuild

index 2ac89487a2c8f1279871b7b4f4ae01af47e0b2d6..8c588be136f228beb56079b2ade9207e1710a363 100644 (file)
@@ -1,7 +1,7 @@
 http://bugs.gentoo.org/show_bug.cgi?id=247761
 
---- config/NetAudio.tmpl
-+++ config/NetAudio.tmpl
+--- a/config/NetAudio.tmpl
++++ b/config/NetAudio.tmpl
 @@ -162,7 +162,7 @@
  
    AUDIODEPLIBS = $(DEPAULIB) $(DEPXTOOLLIB) $(DEPXLIB)
index f1d536a4f7b994f06403882d0282a543b6f62204..909424ef8e288fe3064489d1f5f617c735165cc9 100644 (file)
@@ -1,11 +1,12 @@
 # Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
-inherit eutils multilib toolchain-funcs multilib-minimal
+EAPI=7
+
+inherit multilib-minimal toolchain-funcs
 
 DESCRIPTION="Network Audio System"
-HOMEPAGE="http://radscan.com/nas.html"
+HOMEPAGE="https://radscan.com/nas.html"
 SRC_URI="mirror://sourceforge/${PN}/${P}.src.tar.gz"
 
 LICENSE="HPND MIT"
@@ -13,7 +14,8 @@ SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
 IUSE="doc static-libs"
 
-RDEPEND="x11-libs/libICE
+RDEPEND="
+       x11-libs/libICE
        x11-libs/libSM
        x11-libs/libX11
        >=x11-libs/libXau-1.0.7-r1[${MULTILIB_USEDEP}]
@@ -32,10 +34,13 @@ DEPEND="${RDEPEND}
 
 DOCS=( BUILDNOTES FAQ HISTORY README RELEASE TODO )
 
-src_prepare() {
-       epatch "${FILESDIR}"/${PN}-1.9.2-asneeded.patch
-       epatch "${FILESDIR}"/${PN}-1.9.4-remove-abs-fabs.patch
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.9.2-asneeded.patch
+       "${FILESDIR}"/${PN}-1.9.4-remove-abs-fabs.patch
+)
 
+src_prepare() {
+       default
        multilib_copy_sources
 }
 
@@ -99,5 +104,7 @@ multilib_src_install_all() {
        newconfd "${FILESDIR}"/nas.conf.d nas
        newinitd "${FILESDIR}"/nas.init.d nas
 
-       use static-libs || rm -f "${D}"/usr/lib*/libaudio.a
+       if ! use static-libs; then
+               rm -f "${D}"/usr/lib*/libaudio.a || die
+       fi
 }