app-backup/cdbackup: EAPI 6 bump
authorAmy Liffey <amynka@gentoo.org>
Tue, 8 Aug 2017 07:00:54 +0000 (09:00 +0200)
committerAmy Liffey <amynka@gentoo.org>
Tue, 8 Aug 2017 07:01:33 +0000 (09:01 +0200)
Package-Manager: Portage-2.3.6, Repoman-2.3.1

app-backup/cdbackup/cdbackup-0.7.1-r1.ebuild [moved from app-backup/cdbackup/cdbackup-0.7.1.ebuild with 59% similarity]

similarity index 59%
rename from app-backup/cdbackup/cdbackup-0.7.1.ebuild
rename to app-backup/cdbackup/cdbackup-0.7.1-r1.ebuild
index 6b91daebb67d248112c585bf06ffbb8bc4669aa2..7529285d9a601964c2b6724e993d80c560becce9 100644 (file)
@@ -1,6 +1,8 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
+EAPI=6
+
 inherit toolchain-funcs
 
 DESCRIPTION="Allows streaming backup utilities to dump/restore from CD-R(W)s or DVD(+/-RW)s"
@@ -15,19 +17,18 @@ IUSE=""
 RDEPEND=">=app-cdr/cdrtools-1.11.28"
 DEPEND=""
 
-src_unpack() {
-       unpack ${A}
-
+src_prepare() {
        sed -i -e '/cd\(backup\|restore\)/,+1 s:CFLAGS:LDFLAGS:' \
-               "${S}"/Makefile || die "sed Makefile failed"
+                "${S}"/Makefile || die "sed Makefile failed"
+       default
 }
 
 src_compile() {
-       emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)" || die "make failed"
+       emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)"
 }
 
 src_install() {
-       dobin cdbackup cdrestore || die "dobin failed"
-       doman cdbackup.1 cdrestore.1 || die "doman failed"
-       dodoc CHANGES CREDITS README || die "dodoc failed"
+       dobin cdbackup cdrestore
+       doman cdbackup.1 cdrestore.1
+       dodoc CHANGES CREDITS README
 }