1 |
On Saturday 20 May 2006 15:23, Aron Griffis wrote: |
2 |
> Henrik Brix Andersen wrote: [Sat May 20 2006, 04:50:22AM EDT] |
3 |
> |
4 |
> > On Fri, May 19, 2006 at 10:36:42PM -0400, Aron Griffis wrote: |
5 |
> > > Along these lines, I added my mercurial.eclass to the tree. I use it |
6 |
> > > personally for a couple projects, and figured it might help prevent |
7 |
> > > other people from needing to re-invent the wheel. |
8 |
> > |
9 |
> > Errr... you added a new eclass without posting it to this mailing |
10 |
> > list for review first? |
11 |
> |
12 |
> I've never posted an eclass here for review, and I don't think I've |
13 |
> ever announced one before either, so let's call this progress. ;-) |
14 |
> |
15 |
> If you'd like to review it, I'd appreciate the input. |
16 |
> |
17 |
|
18 |
I am in the process of creating the ebuild v4l-dvb-hg to compile the sources |
19 |
for the development-dvb-driver. |
20 |
|
21 |
I have a few annotations for mercurial.eclass: |
22 |
* The eclass copies the downloaded sources to ${S} rather than to |
23 |
${WORKDIR}/${HG_MODULE_NAME}. |
24 |
So I have to use |
25 |
S=${WORKDIR}/xyz to unpack it there and have S set to a subdirectory of the |
26 |
hg-sources. |
27 |
|
28 |
* the unpack-function keeps the current working directory |
29 |
in /usr/portage/distfiles/hg-src/${HG_MODULE}. |
30 |
That creates problems when applying patches. |
31 |
Could the eclass switch to ${WORKDIR} after unpacking. |
32 |
|
33 |
|
34 |
Now I use this part of code |
35 |
|
36 |
S=${WORKDIR}/v4l-dvb/v4l |
37 |
src_unpack() { |
38 |
S=${WORKDIR}/v4l-dvb mercurial_src_unpack |
39 |
cd ${WORKDIR} |
40 |
epatch ... |
41 |
} |
42 |
|
43 |
Regards |
44 |
Matthias |
45 |
|
46 |
-- |
47 |
Matthias Schwarzott |
48 |
Gentoo Developer |
49 |
http://www.gentoo.org |
50 |
-- |
51 |
gentoo-dev@g.o mailing list |