Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] ebuild with local source? "Arttu V." <arttuv69@×××××.com>