Gentoo Archives: gentoo-dev

From: "Marijn Schouten (hkBst)" <hkBst@g.o>
To: "gentoo-dev@l.g.o" <gentoo-dev@l.g.o>
Subject: [gentoo-dev] allowed in SRC_URI?
Date: Fri, 26 Oct 2007 11:23:36
Message-Id: 4721CDC5.3010200@gentoo.org
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Is the following syntax for SRC_URI allowed:
5
6
7 mips? ( mirror://sourceforge/sbcl/${PN}-${BV_MIPS}-$([[$(tc-endian) = big]] &&
8 echo mips || echo mipsel)-linux-binary.tar.bz2 )
9
10
11 It is supposed to be a replacement of:
12
13
14 mips? ( !cobalt? (
15 mirror://sourceforge/sbcl/${PN}-${BV_MIPS}-mips-linux-binary.tar.bz2 ) )
16 mips? ( cobalt? (
17 mirror://sourceforge/sbcl/${PN}-${BV_MIPSEL}-mipsel-linux-binary.tar.bz2 ) )
18
19
20 relevant tc-endian source:
21
22 tc-endian() {
23 local host=$1
24 [[ -z ${host} ]] && host=${CTARGET:-${CHOST}}
25 host=${host%%-*}
26
27 case ${host} in
28 mips*l*) echo little;;
29 mips*) echo big;;
30 *) echo wtf;;
31 esac
32 }
33
34
35 Marijn
36
37 - --
38 Marijn Schouten (hkBst), Gentoo Lisp project
39 <http://www.gentoo.org/proj/en/lisp/>, #gentoo-lisp on FreeNode
40 -----BEGIN PGP SIGNATURE-----
41 Version: GnuPG v2.0.7 (GNU/Linux)
42 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
43
44 iD8DBQFHIc3Fp/VmCx0OL2wRAq83AKCnHTVai8exLca9R50/7G2SHUgbMQCfSOQB
45 EmDPVakhM1vf5/AQXk8xtSk=
46 =B+0g
47 -----END PGP SIGNATURE-----
48 --
49 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] allowed in SRC_URI? "Petteri Räty" <betelgeuse@g.o>