public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [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

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&eacute;rez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox