I know I should upload this to bugs.gentoo.org, but as we are in the
middle of a thread i thought I'd load it here for anyone interested to
try (and to criticise)

Please be gentle with me, this is my first ebuild.

The ebuild is attached, as is the small startup script. The way it works
and installs is detailed below (although the version is now 1.0.2 rather
than 1.0.0)

You need to have portage overlay enabled, and assuming your overlay is
in /usr/local/portage, you need to make the following directories:

/usr/local/portage/games-roguelike/laby/
and 
/usr/local/portage/games-roguelike/laby/files

the ebuild file goes in the former, the file laby goes in the latter.

You will need to:

ebuild /usr/local/portage/games-roguelike/laby/laby-1.0.2.ebuild digest

and then add laby your list of unstable builds:

echo "games-roguelike/laby  ~x86" >> /etc/portage/package.keywords

It _should_ then emerge fine.

As long as you are in the games group you should be able to just run 

laby

TODO:

1. tidy up ownership and permissions of installed files.
2. make the wrapper script stop artsd and restart it IF it was running
in the first place. (alternatively run the program with artsdsp if arts
is running? - thats probably a better option!)




On Wed, 24 Aug 2005 22:42:16 +0200
Markus Döbele wrote:

> Okay, I just uploaded the new release to sourceforge.
> Its version 1.0.2
> 
> > Right Markus I have written an ebuild that installs the package and it
> > works, although I am not sure if its how a pro would have done it.
> >
> > It downloads the compiled version 1.0.0 from sourceforge (can't test it
> > on 1.0.1 or 1.0.2 until you put them on sourceforge.) Once you have done
> > that, and I have tested it, I'll make it available for others to test.
> >
> > Basically it downloads the compiled tarball and installs the executable
> > (laby) and the support files (sounds.pak, highscores.dat, graphics.pak)
> > to /usr/lib/laby/ It puts a script into /usr/games/bin. The script
> > simple cd's to /usr/lib/laby and them executes laby. (It seems to need
> > to be executed from the same directory the support files are in, makes
> > sense really)
> >
> > Comments on my chosen file locations would be appreciated. They are easy
> > enough to change.
> >
> > It also installs the readme.txt to /usr/share/doc/laby-1.0.0 (this is a
> > gentoo standard location for documentation). If people think I should it
> > can also put readme_waffen.txt and readme_zauber.txt into the same
> > place, but as I don't know german i am unsure if they are really
> > helpful, or just take up space :-)
> >

-- 
Nick Rout <[EMAIL PROTECTED]>

Attachment: laby
Description: Binary data

Attachment: laby-1.0.2.ebuild
Description: Binary data

Reply via email to