Gentoo Archives: gentoo-dev

From: Dan Armak <danarmak@g.o>
To: gentoo-dev@××××××××××.org
Subject: Re: [gentoo-dev] ebuild for xbatt
Date: Mon, 30 Jul 2001 15:42:02
Message-Id: 0107310043190N.00612@localhost
In Reply to: Re: [gentoo-dev] ebuild for xbatt by "Damon M. Conway"
1 On Sunday 22 July 2001 21:01, you wrote:
2 > >This is incorrect. You need to get all files installed into ${D}, the
3 > >Portage temporary directory, rather than install to the root filesystem
4 > >directly. Look at any of our other ebuilds in the Portage tree for
5 > >examples of how to do this;
6 > >
7 > >basically, you study the Makefile and see if you can override DESTDIR or
8 > >prefix to redirect the install somewhere else.
9 >
10 > Allright, here's an updated ebuild for xbatt.
11 >
12 > Damon
13 >
14 > --
15 > "UNIX was not designed to stop you from doing stupid things, because that
16 > would also stop you from doing clever things." --Doug Gwyn
17 >
18 >
19 > # Copyright 2001 Gentoo Technologies, Inc.
20 > # Distributed under the terms of the GNU General Public License, v2 or
21 > later # Author Damon Conway <damon@×××××.net>
22 >
23 > A=${P}.tar.gz
24 > S=${WORKDIR}/${P}
25 > DESCRIPTION="Notebook battery indicataor for X"
26 > SRC_URI="http://www.clave.gr.jp/~eto/xbatt/${A}"
27 > HOMEPAGE=""
28 >
29 > DEPEND="virtual/x11"
30 >
31 > src_compile() {
32 > try xmkmf
33 > try make
34 > }
35 >
36 > src_install () {
37 > try make DESTDIR=${D} install
38 > }
39 >
40 >
41 > _______________________________________________
42 > gentoo-dev mailing list
43 > gentoo-dev@××××××××××.org
44 > http://cvs.gentoo.org/mailman/listinfo/gentoo-dev
45
46
47 Added to incoming.
48 --
49
50 Dan Armak
51 Gentoo Linux Developer, Desktop Team
52 Matan, Israel

Replies

Subject Author
Re: [gentoo-dev] ebuild for xbatt Mikael Hallendal <micke@×××××××××××.se>