Gentoo Archives: gentoo-user

From: "Arttu V." <arttuv69@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] ebuild with local source?
Date: Tue, 24 Aug 2010 17:17:32
Message-Id: AANLkTik6YpTgz0f9q7OLfkz+P5A=xi5NaPiqn1TF9tbc@mail.gmail.com
In Reply to: Re: [gentoo-user] ebuild with local source? by Helmut Jarausch
1 On 8/24/10, Helmut Jarausch <jarausch@××××××××××××××××.de> wrote:
2 > On 08/24/10 13:45:05, Robin Atwood wrote:
3 >> On Tuesday 24 August 2010, Helmut Jarausch wrote:
4 >> > Hi,
5 >> >
6 >> > I'd like to create an ebuild (in my local overlay) which refers to
7 >> a
8 >> > local distribution file.
9 >> >
10 >> > I've tried
11 >> >
12 >> > SRC_URI="file::///usr/local/Src/MyPack.tar.bz2"
13 >> >
14 >> > but "file://" doesn't seem to be supported.
15 >> >
16 >> > Is there any alternative?
17 >> >
18 >> > Thanks for a hint,
19 >> > Helmut.
20 >> >
21 >> > (I'm using portage-2.2._rc68)
22 >>
23 >> "ln -s /usr/local/Src/MyPack.tar.bz2 /usr/portage/distfiles" maybe?
24 >>
25 >> HTH
26 >> -Robin
27 >
28 > Hi, but what do I specify for SRC_URI
29 >
30 > I've tried
31 > SRC="MyPack-1.0.7.tar.gz"
32 > SLOT="0"
33 > KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh sparc x86"
34 > IUSE=""
35 > S="$WORKDIR/${P}"
36 > src_unpack() {
37 > unpack "${A}"
38 > }
39 >
40 > But it fails saying "nothing specified for unpack"
41 > And, indeed,
42 > doing
43 > ebuild --debug <PATH_to_EBUILD> unpack
44 > shows that ${A} is the empty string.
45 >
46 > What am I missing?
47 >
48 > Thanks a lot, it drives me nuts,
49 > Helmut.
50
51 Place a RESTRICT="fetch" in the ebuild, and copy the tarball manually
52 to distfiles dir.
53
54 --
55 Arttu V. -- Running Gentoo is like running with scissors

Replies

Subject Author
Re: [gentoo-user] ebuild with local source? Helmut Jarausch <jarausch@××××××××××××××××.de>