From: | "Mike Frysinger (vapier)" <vapier@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sys-apps/openrc: openrc-9999.ebuild |
Date: | Tue, 25 Mar 2008 12:57:20 |
Message-Id: | E1Je8iL-0001zb-EY@stork.gentoo.org |
1 | vapier 08/03/25 12:57:17 |
2 | |
3 | Modified: openrc-9999.ebuild |
4 | Log: |
5 | set the VERSION to the last git commit |
6 | (Portage version: 2.2_pre5) |
7 | |
8 | Revision Changes Path |
9 | 1.10 sys-apps/openrc/openrc-9999.ebuild |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/openrc/openrc-9999.ebuild?rev=1.10&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/openrc/openrc-9999.ebuild?rev=1.10&content-type=text/plain |
13 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/openrc/openrc-9999.ebuild?r1=1.9&r2=1.10 |
14 | |
15 | Index: openrc-9999.ebuild |
16 | =================================================================== |
17 | RCS file: /var/cvsroot/gentoo-x86/sys-apps/openrc/openrc-9999.ebuild,v |
18 | retrieving revision 1.9 |
19 | retrieving revision 1.10 |
20 | diff -u -r1.9 -r1.10 |
21 | --- openrc-9999.ebuild 25 Mar 2008 12:34:52 -0000 1.9 |
22 | +++ openrc-9999.ebuild 25 Mar 2008 12:57:16 -0000 1.10 |
23 | @@ -1,6 +1,6 @@ |
24 | # Copyright 1999-2008 Gentoo Foundation |
25 | # Distributed under the terms of the GNU General Public License v2 |
26 | -# $Header: /var/cvsroot/gentoo-x86/sys-apps/openrc/openrc-9999.ebuild,v 1.9 2008/03/25 12:34:52 vapier Exp $ |
27 | +# $Header: /var/cvsroot/gentoo-x86/sys-apps/openrc/openrc-9999.ebuild,v 1.10 2008/03/25 12:57:16 vapier Exp $ |
28 | |
29 | inherit eutils flag-o-matic multilib toolchain-funcs |
30 | |
31 | @@ -57,7 +57,18 @@ |
32 | } |
33 | |
34 | src_compile() { |
35 | + # catch people running `ebuild` w/out setup |
36 | + if [[ -z ${MAKE_ARGS} ]] ; then |
37 | + die "Your MAKE_ARGS is empty ... are you running 'ebuild' but forgot to execute 'setup' ?" |
38 | + fi |
39 | + |
40 | + if [[ ${PV} == "9999" ]] ; then |
41 | + local ver="git-$(git --git-dir=${EGIT_STORE_DIR}/${EGIT_PROJECT} rev-parse --verify ${EGIT_BRANCH} | cut -c1-8)" |
42 | + sed -i "/^VERSION[[:space:]]*=/s:=.*:=${ver}:" Makefile |
43 | + fi |
44 | + |
45 | tc-export CC AR RANLIB |
46 | + echo emake ${MAKE_ARGS} |
47 | emake ${MAKE_ARGS} || die |
48 | } |
49 | |
50 | |
51 | |
52 | |
53 | -- |
54 | gentoo-commits@l.g.o mailing list |