Jump to content

Trying to write an ebuild


Recommended Posts

1) I don't understand this question, please elaborate

2) do the CVS download manually and you will see what directory it puts it into :-) (there should be instructions on how to do CVS on the clanbomber webpage-if not i can explain later-at work now, no linux box to test it out on)

Link to comment
Share on other sites

  • Replies 37
  • Created
  • Last Reply

Top Posters In This Topic

1) The cvs instructions on sourceforge (arrived at by using the CVS link on the clanbomber page) say that you need to know a module name in order to perform a checkout

 

As a result of not understanding this - I have not been able to do a manual checkout.

 

Also, whenever I have tried to log in, I have had erratic success - sometimes it seems to work and sometimes I am told that:

 

 

cvs [login aborted]: end of file from server (consult above messages if any)

 

Not sure why this is happening or if it might screw up my ebuild

Link to comment
Share on other sites

oh, that module thingy...i would guess clanbomber ( :?: )

 

as for that cvs login aborted, i used to get that when i was trying to get slicker. i'm not sure what causes it, but i don't think it's something you can fix-i think it's something on sourceforges end.

Link to comment
Share on other sites

hrm....then i dunno, and since i'm rebuilding my box right now (well, it's building while i'm at work) i may not be able to help you find an answer till tomorrow or somethin'....

Link to comment
Share on other sites

Made some progress - I have got it downloading from cvs and going on from there. It's now failing at the configure stage:

creating cache ./config.cache

./configure: line 525: syntax error near unexpected token `config.h'

./configure: line 525: `AM_CONFIG_HEADER(config.h)'

 

 

I suppose this could be because I'm using cvs code - but I'm not sure

 

BTW I really do think ths is actually progress ;-)

Link to comment
Share on other sites

BTW I really do think ths is actually progress ;-)

hmmm....maybe... ;-) i'd send an e-mail off to the clanbomber developer and see if he might be able to help you with that error.

Link to comment
Share on other sites

OK - update, I now have ane build that will download from CVS and attempt to install it. It is presently as follows:

 

# Copyright 1999-2003 Gentoo Technologies, Inc.

# Distributed under the terms of the GNU General Public License v2

# $Header: $ 













DESCRIPTION="Bomberman clone - fantastic game!"

# SRC_URI="http://heanet.dl.sourceforge.net/sourceforge/clanbomber/clanbomber-1.02a.tar.gz"

HOMEPAGE="http://clanbomber.sourceforge.net"

LICENSE="GPL-2"

SLOT="0"

KEYWORDS="~x86"

IUSE=""

ECVS_SERVER="cvs.clanbomber.sourceforge.net:/cvsroot/clanbomber"

ECVS_MODULE="ClanBomber"

ECVS_TOP_DIR="${DISTDIR}/cvs-src/clanbomber" 



inherit cvs





S="${WORKDIR}/${ECVS_MODULE}" 



DEPEND="sys-libs/zlib

app-games/clanlib

media-libs/hermes"







src_compile() {



echo "CVS downloaded - preparing to configure"

cd ${S}



export WANT_AUTOCONF_2_5=1



sh autogen.sh

econf || die

echo "clanbomber configured - about to compile"

# emake || die



make || die



}



src_install () {

echo "Installing Clanbomber..."

# cd ${S}

einstall || die

# make install || die





}

 

Take particular note of src_compile and the possibility of using either make or emake.

 

Now this is the current situation:

 

1) If I run this as it is, the build seems to largely succeed but I get file permission errors (on /dev/dsp) - nothing gets installed

 

2) If I run this ebuild using emake instead of make then the build fails towards the end with errors

 

3) If I cd to the directory containing the unpacked source and run ./autogen.sh && ./configure && make then the build wroks perfectly and I could install it from there.

 

You may be asking

why doesn't he just do number three and install it that way?

 

Simply because I have spent so much time on this that now it WILL be installed via my ebuild :banghead:

 

I'm not going to give up on my first attempt

 

If anyone has any clues at to why I'm getting these results - please let me know

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share


×
×
  • Create New...