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}
}

Attachment: pgpYNJYQP9xHE.pgp
Description: PGP signature

Reply via email to