1 |
vapier 12/03/04 05:40:27 |
2 |
|
3 |
Modified: toolchain.eclass |
4 |
Log: |
5 |
initial live git support |
6 |
|
7 |
Revision Changes Path |
8 |
1.523 eclass/toolchain.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?rev=1.523&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?rev=1.523&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?r1=1.522&r2=1.523 |
13 |
|
14 |
Index: toolchain.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v |
17 |
retrieving revision 1.522 |
18 |
retrieving revision 1.523 |
19 |
diff -u -r1.522 -r1.523 |
20 |
--- toolchain.eclass 3 Mar 2012 22:42:47 -0000 1.522 |
21 |
+++ toolchain.eclass 4 Mar 2012 05:40:27 -0000 1.523 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2012 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.522 2012/03/03 22:42:47 vapier Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.523 2012/03/04 05:40:27 vapier Exp $ |
27 |
# |
28 |
# Maintainer: Toolchain Ninjas <toolchain@g.o> |
29 |
|
30 |
@@ -11,6 +11,18 @@ |
31 |
|
32 |
inherit eutils versionator libtool toolchain-funcs flag-o-matic gnuconfig multilib fixheadtails pax-utils |
33 |
|
34 |
+if [[ ${PV} == *9999* ]] ; then |
35 |
+ EGIT_REPO_URI="git://gcc.gnu.org/git/gcc.git" |
36 |
+ # naming style: |
37 |
+ # gcc-9999 -> master |
38 |
+ # gcc-4.7_pre9999 -> 4.7 branch |
39 |
+ if [[ ${PV} == *_pre9999* ]] ; then |
40 |
+ EGIT_BRANCH="${PN}_${PV%_pre9999}_branch" |
41 |
+ EGIT_BRANCH=${EGIT_BRANCH//./_} |
42 |
+ fi |
43 |
+ inherit git-2 |
44 |
+fi |
45 |
+ |
46 |
EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_test pkg_preinst src_install pkg_postinst pkg_prerm pkg_postrm |
47 |
DESCRIPTION="The GNU Compiler Collection" |
48 |
|
49 |
@@ -702,11 +714,13 @@ |
50 |
done |
51 |
} |
52 |
toolchain_src_unpack() { |
53 |
+ [[ ${PV} == *9999* ]] && git-2_src_unpack |
54 |
+ |
55 |
export BRANDING_GCC_PKGVERSION="Gentoo ${GCC_PVR}" |
56 |
|
57 |
[[ -z ${UCLIBC_VER} ]] && [[ ${CTARGET} == *-uclibc* ]] && die "Sorry, this version does not support uClibc" |
58 |
|
59 |
- [[ -z ${GCC_SVN} ]] && gcc_quick_unpack |
60 |
+ gcc_quick_unpack |
61 |
|
62 |
cd "${S}" |
63 |
|
64 |
@@ -1691,7 +1705,7 @@ |
65 |
unpack gcc-${PRERELEASE}.tar.bz2 |
66 |
elif [[ -n ${SNAPSHOT} ]] ; then |
67 |
unpack gcc-${SNAPSHOT}.tar.bz2 |
68 |
- else |
69 |
+ elif [[ ${PV} != *9999* ]] ; then |
70 |
unpack gcc-${GCC_RELEASE_VER}.tar.bz2 |
71 |
# We want branch updates to be against a release tarball |
72 |
if [[ -n ${BRANCH_UPDATE} ]] ; then |