Gentoo Archives: gentoo-dev

From: Mikael Hallendal <micke@×××××××××××.se>
To: gentoo-dev@××××××××××.org
Subject: Re: [gentoo-dev] ebuild for xbatt
Date: Tue, 31 Jul 2001 05:42:10
Message-Id: 874rrt8gxq.fsf@codefactory.se
In Reply to: Re: [gentoo-dev] ebuild for xbatt by Dan Armak
1 Dan Armak <danarmak@g.o> writes:
2
3 This has been added in CVS. Had to do some changes though.
4
5 xmkmf included by some reason that the Makefile should create a
6 html-version of a non-existing man-page. I got around that by
7
8 src_compile () {
9 try xmkmf
10 try make xbatt
11 }
12
13 also in src_install () {
14 dodoc README* COPYRIGHT
15 }
16
17 Regards,
18 Mikael Hallendal
19
20 > On Sunday 22 July 2001 21:01, you wrote:
21 > > >This is incorrect. You need to get all files installed into ${D},
22 > > >the Portage temporary directory, rather than install to the root
23 > > >filesystem directly. Look at any of our other ebuilds in the
24 > > >Portage tree for examples of how to do this;
25 > > >
26 > > >basically, you study the Makefile and see if you can override
27 > > >DESTDIR or prefix to redirect the install somewhere else.
28 > > Allright, here's an updated ebuild for xbatt.
29 > >
30 > > Damon
31 > >
32 > > -- "UNIX was not designed to stop you from doing stupid things,
33 > >because that would also stop you from doing clever things." --Doug
34 > >Gwyn
35 > >
36 > >
37 > > # Copyright 2001 Gentoo Technologies, Inc. # Distributed under the
38 > >terms of the GNU General Public License, v2 or later # Author Damon
39 > >Conway <damon@×××××.net>
40 > >
41 > > A=${P}.tar.gz S=${WORKDIR}/${P} DESCRIPTION="Notebook battery
42 > >indicataor for X" SRC_URI="http://www.clave.gr.jp/~eto/xbatt/${A}"
43 > >HOMEPAGE=""
44 > >
45 > > DEPEND="virtual/x11"
46 > >
47 > > src_compile() { try xmkmf try make
48 > > }
49 > > src_install () { try make DESTDIR=${D} install
50 > > }
51 > >
52 > >
53 > > _______________________________________________ gentoo-dev mailing
54 > >list gentoo-dev@××××××××××.org
55 > >http://cvs.gentoo.org/mailman/listinfo/gentoo-dev
56 >
57 >
58 > Added to incoming.
59 > --
60 >
61 > Dan Armak
62 > Gentoo Linux Developer, Desktop Team
63 > Matan, Israel
64 >
65 > _______________________________________________
66 > gentoo-dev mailing list
67 > gentoo-dev@××××××××××.org
68 > http://cvs.gentoo.org/mailman/listinfo/gentoo-dev
69
70 --
71 Mikael Hallendal                micke@×××××××××××.se
72 CodeFactory AB                  http://www.codefactory.se/
73 Office: +46 (0)8 587 583 05     Cell: +46 (0)709 718 918

Replies

Subject Author
Re: [gentoo-dev] ebuild for xbatt Dan Armak <danarmak@g.o>