Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-backup/cdbackup: cdbackup-0.7.0.ebuild ChangeLog
Date: Wed, 15 Oct 2008 11:45:28
Message-Id: E1Kq4od-0003tb-55@stork.gentoo.org
flameeyes    08/10/15 11:45:23

  Modified:             cdbackup-0.7.0.ebuild ChangeLog
  Log:
  Respect CFLAGS, LDFLAGS and CC properly. Avoid sed on the Makefile to set prefix: use dobin and doman instead. Don't install license file.
  (Portage version: 2.2_rc12/cvs/Linux 2.6.27-gentoo x86_64)

Revision  Changes    Path
1.3                  app-backup/cdbackup/cdbackup-0.7.0.ebuild

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-backup/cdbackup/cdbackup-0.7.0.ebuild?rev=1.3&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-backup/cdbackup/cdbackup-0.7.0.ebuild?rev=1.3&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-backup/cdbackup/cdbackup-0.7.0.ebuild?r1=1.2&r2=1.3

Index: cdbackup-0.7.0.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/app-backup/cdbackup/cdbackup-0.7.0.ebuild,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- cdbackup-0.7.0.ebuild	14 Oct 2008 22:52:25 -0000	1.2
+++ cdbackup-0.7.0.ebuild	15 Oct 2008 11:45:23 -0000	1.3
@@ -1,8 +1,8 @@
 # Copyright 1999-2008 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-backup/cdbackup/cdbackup-0.7.0.ebuild,v 1.2 2008/10/14 22:52:25 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-backup/cdbackup/cdbackup-0.7.0.ebuild,v 1.3 2008/10/15 11:45:23 flameeyes Exp $
 
-inherit eutils
+inherit toolchain-funcs
 
 DESCRIPTION="Allows streaming backup utilities to dump/restore from CD-R(W)s or DVD(+/-RW)s"
 HOMEPAGE="http://www.muempf.de/index.html"
@@ -17,18 +17,18 @@
 DEPEND=""
 
 src_unpack() {
-	unpack ${A} ; cd ${S}
+	unpack ${A}
 
-	sed -i \
-		-e "s:^PREFIX=/usr/local$:PREFIX=\${DESTDIR}/usr:" Makefile \
-			|| die "sed Makefile failed"
+	sed -i -e '/cd\(backup\|restore\)/,+1 s:CFLAGS:LDFLAGS:' \
+		"${S}"/Makefile || die "sed Makefile failed"
 }
 
 src_compile() {
-	make DESTDIR="${D}" || die "make failed"
+	emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)" || die "make failed"
 }
 
 src_install() {
-	make DESTDIR="${D}" install || die "make install failed"
-	dodoc CHANGES CREDITS README LICENSE
+	dobin cdbackup cdrestore || die "dobin failed"
+	doman cdbackup.1 cdrestore.1 || die "doman failed"
+	dodoc CHANGES CREDITS README || die "dodoc failed"
 }



1.3                  app-backup/cdbackup/ChangeLog

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-backup/cdbackup/ChangeLog?rev=1.3&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-backup/cdbackup/ChangeLog?rev=1.3&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-backup/cdbackup/ChangeLog?r1=1.2&r2=1.3

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/app-backup/cdbackup/ChangeLog,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ChangeLog	14 Oct 2008 22:52:25 -0000	1.2
+++ ChangeLog	15 Oct 2008 11:45:23 -0000	1.3
@@ -1,6 +1,10 @@
 # ChangeLog for app-backup/cdbackup
 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-backup/cdbackup/ChangeLog,v 1.2 2008/10/14 22:52:25 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-backup/cdbackup/ChangeLog,v 1.3 2008/10/15 11:45:23 flameeyes Exp $
+
+  15 Oct 2008; Diego Pettenò <flameeyes@g.o> cdbackup-0.7.0.ebuild:
+  Respect CFLAGS, LDFLAGS and CC properly. Avoid sed on the Makefile to set
+  prefix: use dobin and doman instead. Don't install license file.
 
   14 Oct 2008; Diego Pettenò <flameeyes@g.o> cdbackup-0.7.0.ebuild:
   Fix dependencies, cdrtools is not linked to and needs not to be around for