* [gentoo-user] Ebuild for eggs.
@ 2005-09-21 1:36 Pupeno
2005-09-21 5:08 ` Nagatoro
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Pupeno @ 2005-09-21 1:36 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1.1: Type: text/plain, Size: 742 bytes --]
Hello,
I am making an ebuild for an egg[1], an egg is an extension to a scheme system
called chicken[2]. Ultimatelly this would be an eclass to make ebuild for all
the eggs.
Chicken comes with a tool called chicken-setup that downloads, unpacks,
compiles and installs an egg.
With a couple of switches I managed to make an ebuild for the mysql egg. But
there are some things that I don't like, like "cp /usr/portage/distfiles/${A}
${S}" and there might be other things that can be improved.
Can you please take a look at it and give me some feedback ?
Thank you.
--
Pupeno <pupeno@pupeno.com> (http://pupeno.com)
[1] http://www.call-with-current-continuation.org/eggs
[2] http://www.call-with-current-continuation.org/
[-- Attachment #1.2: egg-mysql-1.0.ebuild --]
[-- Type: text/plain, Size: 778 bytes --]
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
DESCRIPTION="MySQL bindings for Chicken"
HOMEPAGE="http://www.call-with-current-continuation.org/eggs/mysql.html"
SRC_URI="http://www.call-with-current-continuation.org/eggs/mysql.egg"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND="chicken mysql"
RDEPEND=""
src_unpack() {
mkdir -p ${S}
cp /usr/portage/distfiles/${A} ${S}
}
src_install() {
# Name of the egg.
EGG=${PN:4}
# Get the current chicken repository.
REP=`chicken-setup -repository`
# Ensure that the repository exists on the image dir.
mkdir -p ${D}/${REP}
# Install to the current chicken repository in the image dir.
chicken-setup -repository ${D}/${REP} -dont-ask ${EGG}
}
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Ebuild for eggs.
2005-09-21 1:36 [gentoo-user] Ebuild for eggs Pupeno
@ 2005-09-21 5:08 ` Nagatoro
2005-09-21 8:43 ` Abraham Mar�E P��rez
2005-09-21 9:23 ` Christoph Gysin
2 siblings, 0 replies; 7+ messages in thread
From: Nagatoro @ 2005-09-21 5:08 UTC (permalink / raw
To: gentoo-user
Pupeno wrote:
> I am making an ebuild for an egg[1], an egg is an extension to a scheme system
[....]
> Can you please take a look at it and give me some feedback ?
Not an ebuild guru so I'll point you to a good manual instead :)
http://dev.gentoo.org/~plasmaroo/devmanual/
--
Naga
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Ebuild for eggs.
2005-09-21 1:36 [gentoo-user] Ebuild for eggs Pupeno
2005-09-21 5:08 ` Nagatoro
@ 2005-09-21 8:43 ` Abraham Mar�E P��rez
2005-09-21 9:23 ` Christoph Gysin
2 siblings, 0 replies; 7+ messages in thread
From: Abraham Mar�E P��rez @ 2005-09-21 8:43 UTC (permalink / raw
To: Pupeno, gentoo-user
Hi,
I'm not an expert in ebuilds' issues, but /usr/portage/distfiles
(or whichever else one chooses for his/her own system) is availabe
through the variable DISTDIR (or is it DISTFILES? can't remember which
one exactly is and don't have gentoo available here). Hence, that
"/usr/portage/distfiles/${A}" can be modified to "${DISDIR}/${A}",
that is more readable and portable.
HTH,
Abraham
> Hello,
> I am making an ebuild for an egg[1], an egg is an extension to a
scheme system
> called chicken[2]. Ultimatelly this would be an eclass to make
ebuild for all
> the eggs.
> Chicken comes with a tool called chicken-setup that downloads, unpacks,
> compiles and installs an egg.
> With a couple of switches I managed to make an ebuild for the mysql
egg. But
> there are some things that I don't like, like "cp
/usr/portage/distfiles/${A}
> ${S}" and there might be other things that can be improved.
> Can you please take a look at it and give me some feedback ?
> Thank you.
> --
> Pupeno <pupeno@pupeno.com> (http://pupeno.com)
>
> [1] http://www.call-with-current-continuation.org/eggs
> [2] http://www.call-with-current-continuation.org/
>
--
--
************************************************
Abraham Marin
Estudiante de Ingenieria Informatica en UV
Usuario registrado de Linux #330673
"Elegance is not a dispensable luxury but a matter of
life and death", EDW 1298
************************************************
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Ebuild for eggs.
2005-09-21 1:36 [gentoo-user] Ebuild for eggs Pupeno
2005-09-21 5:08 ` Nagatoro
2005-09-21 8:43 ` Abraham Mar�E P��rez
@ 2005-09-21 9:23 ` Christoph Gysin
2005-09-21 9:33 ` Christoph Gysin
2005-09-27 9:28 ` Abraham Mar�n Pérez
2 siblings, 2 replies; 7+ messages in thread
From: Christoph Gysin @ 2005-09-21 9:23 UTC (permalink / raw
To: gentoo-user
Pupeno wrote:
> DEPEND="chicken mysql"
should be:
DEPEND="dev-scheme/chicken
dev-db/mysql"
> RDEPEND=""
Not sure, but I've often saw this:
RDEPEND="${DEPEND}"
> src_unpack() {
> mkdir -p ${S}
> cp /usr/portage/distfiles/${A} ${S}
> }
mkdir isn't nessessary IIRC.
You also shouldn't have to copy the egg. Does it get modified during
chicken-setup? If not, you can leave out the whole src_unpack().
The rest seems OK to me...
Christoph
--
echo mailto: NOSPAM !#$.'<*>'|sed 's. ..'|tr "<*> !#:2" org@fr33z3
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Ebuild for eggs.
2005-09-21 9:23 ` Christoph Gysin
@ 2005-09-21 9:33 ` Christoph Gysin
2005-09-21 16:24 ` Pupeno
2005-09-27 9:28 ` Abraham Mar�n Pérez
1 sibling, 1 reply; 7+ messages in thread
From: Christoph Gysin @ 2005-09-21 9:33 UTC (permalink / raw
To: gentoo-user
Christoph Gysin wrote:
> You also shouldn't have to copy the egg. Does it get modified during
> chicken-setup? If not, you can leave out the whole src_unpack().
Of course, you'll need to specify the path to the egg in chicken-setup.
Christoph
--
echo mailto: NOSPAM !#$.'<*>'|sed 's. ..'|tr "<*> !#:2" org@fr33z3
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Ebuild for eggs.
2005-09-21 9:33 ` Christoph Gysin
@ 2005-09-21 16:24 ` Pupeno
0 siblings, 0 replies; 7+ messages in thread
From: Pupeno @ 2005-09-21 16:24 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 631 bytes --]
On Wednesday 21 September 2005 06:33, Christoph Gysin wrote:
> Christoph Gysin wrote:
> > You also shouldn't have to copy the egg. Does it get modified during
> > chicken-setup? If not, you can leave out the whole src_unpack().
>
> Of course, you'll need to specify the path to the egg in chicken-setup.
That can be done, that is why I copied on the first place, and at
src_unpack(), ${S} doesn't exist yet.
If the egg is not in the directory where I run chicken-setup, then it gets
downloaded (I don't think that is a good behaviour for an ebuild).
Thank you.
--
Pupeno <pupeno@pupeno.com> (http://pupeno.com)
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Ebuild for eggs.
2005-09-21 9:23 ` Christoph Gysin
2005-09-21 9:33 ` Christoph Gysin
@ 2005-09-27 9:28 ` Abraham Mar�n Pérez
1 sibling, 0 replies; 7+ messages in thread
From: Abraham Mar�n Pérez @ 2005-09-27 9:28 UTC (permalink / raw
To: Christoph Gysin, gentoo-user
> > RDEPEND=""
>
> Not sure, but I've often saw this:
>
> RDEPEND="${DEPEND}"
>
That depends on the application. DEPEND is a list of package
dependencies during compilation, while RDEPEND indicates package
dependencies while running. Hence, in those applications where
dependencies are the same at both run time and compilation time you'll see
RDEPEND="${DEPEND}"
however, if the application to be merged depend on those packages only
during compilation and there's no dependency at run time, the line
RDEPEND=""
is the right option.
HTH,
Abraham
--
--
************************************************
Abraham Marín Pérez
Estudiante de Ingeniería Informática en la UV
Usuario registrado de Linux #330673
"Elegance is not a dispensable luxury but a matter of
life and death", EDW 1298
************************************************
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-09-27 9:33 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-21 1:36 [gentoo-user] Ebuild for eggs Pupeno
2005-09-21 5:08 ` Nagatoro
2005-09-21 8:43 ` Abraham Mar�E P��rez
2005-09-21 9:23 ` Christoph Gysin
2005-09-21 9:33 ` Christoph Gysin
2005-09-21 16:24 ` Pupeno
2005-09-27 9:28 ` Abraham Mar�n Pérez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox