summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2008-10-15 11:45:23 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2008-10-15 11:45:23 +0000
commit089003cfa99870cc0104bf2d63b6e3eca8670db2 (patch)
treedba17263e99abffba7046bcc23c62c3b0db61060 /app-backup/cdbackup
parentWorkaround mv error from ruby.eclass. (diff)
downloadgentoo-2-089003cfa99870cc0104bf2d63b6e3eca8670db2.tar.gz
gentoo-2-089003cfa99870cc0104bf2d63b6e3eca8670db2.tar.bz2
gentoo-2-089003cfa99870cc0104bf2d63b6e3eca8670db2.zip
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)
Diffstat (limited to 'app-backup/cdbackup')
-rw-r--r--app-backup/cdbackup/ChangeLog6
-rw-r--r--app-backup/cdbackup/cdbackup-0.7.0.ebuild18
2 files changed, 14 insertions, 10 deletions
diff --git a/app-backup/cdbackup/ChangeLog b/app-backup/cdbackup/ChangeLog
index cd1dc6c3953e..b460902b3aff 100644
--- a/app-backup/cdbackup/ChangeLog
+++ b/app-backup/cdbackup/ChangeLog
@@ -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@gentoo.org> 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@gentoo.org> cdbackup-0.7.0.ebuild:
Fix dependencies, cdrtools is not linked to and needs not to be around for
diff --git a/app-backup/cdbackup/cdbackup-0.7.0.ebuild b/app-backup/cdbackup/cdbackup-0.7.0.ebuild
index a612d5802e64..a6df8f04e6ff 100644
--- a/app-backup/cdbackup/cdbackup-0.7.0.ebuild
+++ b/app-backup/cdbackup/cdbackup-0.7.0.ebuild
@@ -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 @@ RDEPEND=">=app-cdr/cdrtools-1.11.28"
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"
}