Re: [gentoo-user] Ebuild for eggs.

2005-09-27 Thread Abraham Mar�n Peacute;rez
  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



Re: [gentoo-user] Ebuild for eggs.

2005-09-21 Thread Abraham Mar�E P��rez
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 [EMAIL PROTECTED] (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



Re: [gentoo-user] Ebuild for eggs.

2005-09-21 Thread Christoph Gysin

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 [EMAIL PROTECTED]
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Ebuild for eggs.

2005-09-21 Thread Christoph Gysin

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 [EMAIL PROTECTED]
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Ebuild for eggs.

2005-09-21 Thread Pupeno
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 [EMAIL PROTECTED] (http://pupeno.com)


pgpGrM3Tu5bsk.pgp
Description: PGP signature


[gentoo-user] Ebuild for eggs.

2005-09-20 Thread Pupeno
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 [EMAIL PROTECTED] (http://pupeno.com)

[1] http://www.call-with-current-continuation.org/eggs
[2] http://www.call-with-current-continuation.org/
# 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}
}


pgpYNJYQP9xHE.pgp
Description: PGP signature


Re: [gentoo-user] Ebuild for eggs.

2005-09-20 Thread Nagatoro

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