Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/recruiters:master commit in: /
Date: Thu, 17 Dec 2015 16:08:50
Message-Id: 1450368514.b3e3ace902ff82df74978e8c5b2ad8168cf3ed9f.jlec@gentoo
1 commit: b3e3ace902ff82df74978e8c5b2ad8168cf3ed9f
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 17 16:07:49 2015 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 17 16:08:34 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/recruiters.git/commit/?id=b3e3ace9
7
8 Add nicety to test.ebuild
9
10 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
11
12 foo.ebuild | 10 ++++++++++
13 1 file changed, 10 insertions(+)
14
15 diff --git a/foo.ebuild b/foo.ebuild
16 index 04b2889..7af7f48 100644
17 --- a/foo.ebuild
18 +++ b/foo.ebuild
19 @@ -18,6 +18,16 @@ src_unpack() {
20 patch -p1 < "${FILESDIR}"/foobar-1.0-Makefile.patch
21 }
22
23 +src_prepare() {
24 + ebegin "Patching"
25 + sed \
26 + -e "82s/read_version()/'${PV}'/" \
27 + -i configure
28 + STATUS=$?
29 + eend ${STATUS}
30 + [[ ${STATUS} -gt 0 ]] && die
31 +}
32 +
33 src_compile() {
34 make ${MAKEOPTS}
35 }