* [gentoo-dev] ebuild for xbatt
@ 2001-07-21 17:32 Damon M. Conway
2001-07-21 17:50 ` Daniel Robbins
0 siblings, 1 reply; 6+ messages in thread
From: Damon M. Conway @ 2001-07-21 17:32 UTC (permalink / raw
To: gentoo-dev
Here is an ebuild for xbatt. It's a laptop battery status display for X.
I tested it on my system. This is my first ebuild, so any comments are
appreciated.
MD5 4ad4d31cd70182ffdad31e0cc885c433 xbatt-1.2.1.tar.gz
Damon
--
"UNIX was not designed to stop you from doing stupid things, because that
would also stop you from doing clever things." --Doug Gwyn
# Copyright 2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Damon Conway <damon@3jane.net>
A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="Notebook battery indicataor for X"
SRC_URI="http://www.clave.gr.jp/~eto/xbatt/${A}"
HOMEPAGE=""
DEPEND="virtual/x11"
src_compile() {
try xmkmf
try make
}
src_install () {
try make install
}
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-dev] ebuild for xbatt
2001-07-21 17:32 [gentoo-dev] ebuild for xbatt Damon M. Conway
@ 2001-07-21 17:50 ` Daniel Robbins
2001-07-22 12:01 ` Damon M. Conway
0 siblings, 1 reply; 6+ messages in thread
From: Daniel Robbins @ 2001-07-21 17:50 UTC (permalink / raw
To: gentoo-dev
On Sat, Jul 21, 2001 at 06:31:23PM -0500, Damon M. Conway wrote:
> Here is an ebuild for xbatt. It's a laptop battery status display for X.
> I tested it on my system. This is my first ebuild, so any comments are
> appreciated.
> src_install () {
>
> try make install
>
> }
This is incorrect. You need to get all files installed into ${D}, the Portage
temporary directory, rather than install to the root filesystem directly. Look
at any of our other ebuilds in the Portage tree for examples of how to do this;
basically, you study the Makefile and see if you can override DESTDIR or prefix
to redirect the install somewhere else.
Best Regards,
--
Daniel Robbins <drobbins@gentoo.org>
President/CEO http://www.gentoo.org
Gentoo Technologies, Inc.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-dev] ebuild for xbatt
2001-07-21 17:50 ` Daniel Robbins
@ 2001-07-22 12:01 ` Damon M. Conway
2001-07-30 15:43 ` Dan Armak
0 siblings, 1 reply; 6+ messages in thread
From: Damon M. Conway @ 2001-07-22 12:01 UTC (permalink / raw
To: gentoo-dev
>This is incorrect. You need to get all files installed into ${D}, the
>Portage temporary directory, rather than install to the root filesystem
>directly. Look at any of our other ebuilds in the Portage tree for
>examples of how to do this;
>
>basically, you study the Makefile and see if you can override DESTDIR or
>prefix to redirect the install somewhere else.
Allright, here's an updated ebuild for xbatt.
Damon
--
"UNIX was not designed to stop you from doing stupid things, because that
would also stop you from doing clever things." --Doug Gwyn
# Copyright 2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Damon Conway <damon@3jane.net>
A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="Notebook battery indicataor for X"
SRC_URI="http://www.clave.gr.jp/~eto/xbatt/${A}"
HOMEPAGE=""
DEPEND="virtual/x11"
src_compile() {
try xmkmf
try make
}
src_install () {
try make DESTDIR=${D} install
}
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-dev] ebuild for xbatt
2001-07-22 12:01 ` Damon M. Conway
@ 2001-07-30 15:43 ` Dan Armak
2001-07-31 5:43 ` Mikael Hallendal
0 siblings, 1 reply; 6+ messages in thread
From: Dan Armak @ 2001-07-30 15:43 UTC (permalink / raw
To: gentoo-dev
On Sunday 22 July 2001 21:01, you wrote:
> >This is incorrect. You need to get all files installed into ${D}, the
> >Portage temporary directory, rather than install to the root filesystem
> >directly. Look at any of our other ebuilds in the Portage tree for
> >examples of how to do this;
> >
> >basically, you study the Makefile and see if you can override DESTDIR or
> >prefix to redirect the install somewhere else.
>
> Allright, here's an updated ebuild for xbatt.
>
> Damon
>
> --
> "UNIX was not designed to stop you from doing stupid things, because that
> would also stop you from doing clever things." --Doug Gwyn
>
>
> # Copyright 2001 Gentoo Technologies, Inc.
> # Distributed under the terms of the GNU General Public License, v2 or
> later # Author Damon Conway <damon@3jane.net>
>
> A=${P}.tar.gz
> S=${WORKDIR}/${P}
> DESCRIPTION="Notebook battery indicataor for X"
> SRC_URI="http://www.clave.gr.jp/~eto/xbatt/${A}"
> HOMEPAGE=""
>
> DEPEND="virtual/x11"
>
> src_compile() {
> try xmkmf
> try make
> }
>
> src_install () {
> try make DESTDIR=${D} install
> }
>
>
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@cvs.gentoo.org
> http://cvs.gentoo.org/mailman/listinfo/gentoo-dev
Added to incoming.
--
Dan Armak
Gentoo Linux Developer, Desktop Team
Matan, Israel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-dev] ebuild for xbatt
2001-07-30 15:43 ` Dan Armak
@ 2001-07-31 5:43 ` Mikael Hallendal
2001-07-31 7:53 ` Dan Armak
0 siblings, 1 reply; 6+ messages in thread
From: Mikael Hallendal @ 2001-07-31 5:43 UTC (permalink / raw
To: gentoo-dev
Dan Armak <danarmak@gentoo.org> writes:
This has been added in CVS. Had to do some changes though.
xmkmf included by some reason that the Makefile should create a
html-version of a non-existing man-page. I got around that by
src_compile () {
try xmkmf
try make xbatt
}
also in src_install () {
dodoc README* COPYRIGHT
}
Regards,
Mikael Hallendal
> On Sunday 22 July 2001 21:01, you wrote:
> > >This is incorrect. You need to get all files installed into ${D},
> > >the Portage temporary directory, rather than install to the root
> > >filesystem directly. Look at any of our other ebuilds in the
> > >Portage tree for examples of how to do this;
> > >
> > >basically, you study the Makefile and see if you can override
> > >DESTDIR or prefix to redirect the install somewhere else.
> > Allright, here's an updated ebuild for xbatt.
> >
> > Damon
> >
> > -- "UNIX was not designed to stop you from doing stupid things,
> >because that would also stop you from doing clever things." --Doug
> >Gwyn
> >
> >
> > # Copyright 2001 Gentoo Technologies, Inc. # Distributed under the
> >terms of the GNU General Public License, v2 or later # Author Damon
> >Conway <damon@3jane.net>
> >
> > A=${P}.tar.gz S=${WORKDIR}/${P} DESCRIPTION="Notebook battery
> >indicataor for X" SRC_URI="http://www.clave.gr.jp/~eto/xbatt/${A}"
> >HOMEPAGE=""
> >
> > DEPEND="virtual/x11"
> >
> > src_compile() { try xmkmf try make
> > }
> > src_install () { try make DESTDIR=${D} install
> > }
> >
> >
> > _______________________________________________ gentoo-dev mailing
> >list gentoo-dev@cvs.gentoo.org
> >http://cvs.gentoo.org/mailman/listinfo/gentoo-dev
>
>
> Added to incoming.
> --
>
> Dan Armak
> Gentoo Linux Developer, Desktop Team
> Matan, Israel
>
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@cvs.gentoo.org
> http://cvs.gentoo.org/mailman/listinfo/gentoo-dev
--
Mikael Hallendal micke@codefactory.se
CodeFactory AB http://www.codefactory.se/
Office: +46 (0)8 587 583 05 Cell: +46 (0)709 718 918
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-dev] ebuild for xbatt
2001-07-31 5:43 ` Mikael Hallendal
@ 2001-07-31 7:53 ` Dan Armak
0 siblings, 0 replies; 6+ messages in thread
From: Dan Armak @ 2001-07-31 7:53 UTC (permalink / raw
To: gentoo-dev
On Tuesday 31 July 2001 14:40, you wrote:
> Dan Armak <danarmak@gentoo.org> writes:
>
> This has been added in CVS. Had to do some changes though.
>
> xmkmf included by some reason that the Makefile should create a
> html-version of a non-existing man-page. I got around that by
>
> src_compile () {
> try xmkmf
> try make xbatt
> }
>
> also in src_install () {
> dodoc README* COPYRIGHT
> }
>
> Regards,
> Mikael Hallendal
hallski, there's a problem with your replies (maybe not just yours, I recall
seeing this somewhere a few times before). The line Dan Armak writes: is at
the top of your post not the bottom and this can be eternally confusing as it
seems I wrote what you did. So please be careful because the last time (when
it wasn't my post that was replied to) I misunderstood who wrote what.
--
Dan Armak
Gentoo Linux Developer, Desktop Team
Matan, Israel
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2001-07-31 13:52 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-21 17:32 [gentoo-dev] ebuild for xbatt Damon M. Conway
2001-07-21 17:50 ` Daniel Robbins
2001-07-22 12:01 ` Damon M. Conway
2001-07-30 15:43 ` Dan Armak
2001-07-31 5:43 ` Mikael Hallendal
2001-07-31 7:53 ` Dan Armak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox