Gentoo Archives: gentoo-dev

From: Daniel <dragonheart@×××××××.au>
To: loyd@××××××××××.net, gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Ebuild determine architecture?
Date: Mon, 05 Jan 2004 23:18:13
Message-Id: 200401060834.47140.dragonheart@tpg.com.au
In Reply to: [gentoo-dev] Ebuild determine architecture? by Loyd Goodbar
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 On Tue, 6 Jan 2004 08:22 am, Loyd Goodbar wrote:
5 > The RPMs I'm working with convert to .tar.gz and install, but the RPMs use
6 > RedHat's naming convention (blah.version.i386.rpm or blah.version.ppc.rpm).
7 > Is there a way in an ebuild to know which architecture (x86/ppc) is being
8 > used so I can determine the correct file name?
9 >
10 > Thanks,
11 > Loyd
12 > --
13 > Mediocrity: It takes a lot less time and most people won't notice
14 > the difference until it's too late. <http://www.despair.com/>
15 > loyd@××××××××××.net ICQ#504581 http://www.blackrobes.net/
16 >
17 >
18 > --
19 > gentoo-dev@g.o mailing list
20
21
22 Use it like a use flag:
23
24
25 /usr/portage/app-misc/dnetc/dnetc-2.9005.483.ebuild:SRC_URI="x86?
26 ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-x86-elf.tar.gz )
27 /usr/portage/app-misc/proxyper/proxyper-333.ebuild:SRC_URI="x86?
28 ( http://http.distributed.net/pub/dcti/${PN}/${PN}${PV}-linux-x86.tar.gz )
29
30
31 find /usr/portage/ -name "*ebuild" | xargs fgrep SRC_URI | fgrep x86 should
32 give you some examples.
33
34 - --
35
36 Daniel Black
37 - --
38 Proudly a Gentoo Linux User.
39 GnuPG/PGP signed and encrypted email preferred
40 http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x32A64DC8
41 -----BEGIN PGP SIGNATURE-----
42 Version: GnuPG v1.2.3 (GNU/Linux)
43
44 iD8DBQE/+e2LTDSbtjKmTcgRAicrAKCKUHU2N0guSVuvq4cdIYfODthRcACg2x0/
45 SJ3xNOETNU3l8arQZxP0eyk=
46 =ovVT
47 -----END PGP SIGNATURE-----
48
49
50 --
51 gentoo-dev@g.o mailing list