diff options
author | Markos Chandras <hwoarang@gentoo.org> | 2011-05-01 20:22:55 +0000 |
---|---|---|
committer | Markos Chandras <hwoarang@gentoo.org> | 2011-05-01 20:22:55 +0000 |
commit | 5fa92b58eb47f08e85ad6d35c124d2b4b6d04d78 (patch) | |
tree | 6707af3567ebfd11ad2e1aaa1c7a6e72e14e1fc1 /app-cdr/gaffitter | |
parent | Added SVN snapshot ebuild (diff) | |
download | gentoo-2-5fa92b58eb47f08e85ad6d35c124d2b4b6d04d78.tar.gz gentoo-2-5fa92b58eb47f08e85ad6d35c124d2b4b6d04d78.tar.bz2 gentoo-2-5fa92b58eb47f08e85ad6d35c124d2b4b6d04d78.zip |
Guard script sed command with an if statement
(Portage version: 2.1.9.44/cvs/Linux x86_64)
Diffstat (limited to 'app-cdr/gaffitter')
-rw-r--r-- | app-cdr/gaffitter/ChangeLog | 5 | ||||
-rw-r--r-- | app-cdr/gaffitter/gaffitter-0.6.0-r1.ebuild | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/app-cdr/gaffitter/ChangeLog b/app-cdr/gaffitter/ChangeLog index 011089335e4a..eac73fadd1cc 100644 --- a/app-cdr/gaffitter/ChangeLog +++ b/app-cdr/gaffitter/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for app-cdr/gaffitter # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-cdr/gaffitter/ChangeLog,v 1.5 2011/04/27 22:01:53 hwoarang Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-cdr/gaffitter/ChangeLog,v 1.6 2011/05/01 20:22:55 hwoarang Exp $ + + 01 May 2011; Markos Chandras <hwoarang@gentoo.org> gaffitter-0.6.0-r1.ebuild: + Guard script sed command with an if statement *gaffitter-0.6.0-r1 (27 Apr 2011) diff --git a/app-cdr/gaffitter/gaffitter-0.6.0-r1.ebuild b/app-cdr/gaffitter/gaffitter-0.6.0-r1.ebuild index 70d77af89d84..4299a17ab3a9 100644 --- a/app-cdr/gaffitter/gaffitter-0.6.0-r1.ebuild +++ b/app-cdr/gaffitter/gaffitter-0.6.0-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-cdr/gaffitter/gaffitter-0.6.0-r1.ebuild,v 1.1 2011/04/27 22:01:53 hwoarang Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-cdr/gaffitter/gaffitter-0.6.0-r1.ebuild,v 1.2 2011/05/01 20:22:55 hwoarang Exp $ EAPI="2" @@ -24,7 +24,9 @@ src_prepare() { sed -i -e "/^INCLUDES\ =.*/d" \ -e "s/^CXXFLAGS\ =.*/CXXFLAGS\ =\ ${CXXFLAGS} ${LDFLAGS}/" \ -e "s/^CXX\ =.*/CXX\ =\ $(tc-getCXX)/" src/Makefile || die "sed failed" - sed -i -re "s:--data((cd)|(dvd)):--data:" "${WORKDIR}"/${PN}/${SCRIPTS}/gaff-k3b || die + if use scripts; then + sed -i -re "s:--data((cd)|(dvd)):--data:" "${WORKDIR}"/${PN}/${SCRIPTS}/gaff-k3b || die + fi } src_install() { |