Gentoo Archives: gentoo-dev

From: "Damon M. Conway" <damon@×××××××××××.net>
To: gentoo-dev@××××××××××.org
Subject: Re: [gentoo-dev] ebuild for xbatt
Date: Sun, 22 Jul 2001 12:00:52
Message-Id: 200107221801.f6MI1Au50947@chiba.3jane.net
In Reply to: Re: [gentoo-dev] ebuild for xbatt by Daniel Robbins
1 >This is incorrect. You need to get all files installed into ${D}, the
2 >Portage temporary directory, rather than install to the root filesystem
3 >directly. Look at any of our other ebuilds in the Portage tree for
4 >examples of how to do this;
5 >
6 >basically, you study the Makefile and see if you can override DESTDIR or
7 >prefix to redirect the install somewhere else.
8
9 Allright, here's an updated ebuild for xbatt.
10
11 Damon
12
13 --
14 "UNIX was not designed to stop you from doing stupid things, because that
15 would also stop you from doing clever things." --Doug Gwyn
16
17
18 # Copyright 2001 Gentoo Technologies, Inc.
19 # Distributed under the terms of the GNU General Public License, v2 or later
20 # Author Damon Conway <damon@×××××.net>
21
22 A=${P}.tar.gz
23 S=${WORKDIR}/${P}
24 DESCRIPTION="Notebook battery indicataor for X"
25 SRC_URI="http://www.clave.gr.jp/~eto/xbatt/${A}"
26 HOMEPAGE=""
27
28 DEPEND="virtual/x11"
29
30 src_compile() {
31 try xmkmf
32 try make
33 }
34
35 src_install () {
36 try make DESTDIR=${D} install
37 }

Replies

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