Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79501 - games-rpg/eternal-lands-1.0.1.ebuild (New Package)
Summary: games-rpg/eternal-lands-1.0.1.ebuild (New Package)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-25 11:24 UTC by Bjørn Mogensen
Modified: 2005-01-28 12:18 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
eternal-lands-1.0.1.ebuild (eternal-lands-1.0.1.ebuild,4.69 KB, text/plain)
2005-01-25 11:25 UTC, Bjørn Mogensen
Details
digest-eternal-lands-1.0.1 (digest-eternal-lands-1.0.1,229 bytes, text/plain)
2005-01-25 11:26 UTC, Bjørn Mogensen
Details
eternal-lands-1.0.1.ebuild (2) (eternal-lands-1.0.1.ebuild,4.81 KB, text/plain)
2005-01-25 13:17 UTC, Bjørn Mogensen
Details
A newer browser.lst - compressed (browser.lst.gz,9.60 KB, application/octet-stream)
2005-01-25 13:18 UTC, Bjørn Mogensen
Details
eternal-lands-1.0.1.ebuild (3) (eternal-lands-1.0.1.ebuild,4.79 KB, text/plain)
2005-01-25 14:30 UTC, Bjørn Mogensen
Details
eternal-lands-1.0.1.ebuild (4) (eternal-lands-1.0.1.ebuild,4.78 KB, text/plain)
2005-01-25 19:34 UTC, Bjørn Mogensen
Details
eternal-lands-1.0.1.ebuild (5) (eternal-lands-1.0.1.ebuild,4.11 KB, text/plain)
2005-01-26 13:13 UTC, Bjørn Mogensen
Details
digest-eternal-lands-1.0.1 (2) (digest-eternal-lands-1.0.1,236 bytes, text/plain)
2005-01-26 13:14 UTC, Bjørn Mogensen
Details
eternal-lands-1.0.1.ebuild (6) (eternal-lands-1.0.1.ebuild,4.17 KB, text/plain)
2005-01-26 15:41 UTC, Bjørn Mogensen
Details
eternal-lands-1.0.1.ebuild (7) (eternal-lands-1.0.1.ebuild,4.12 KB, text/plain)
2005-01-26 16:33 UTC, Bjørn Mogensen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bjørn Mogensen 2005-01-25 11:24:04 UTC
Hey,

This is an update for the ebuild for Eternal Lands, which makes it compatible with the new version. Since the server has switched to 1.0.1 (as of 25th of january) and 1.0.0 has been made obsolete (older clients are not able to connect any more) it is a necissary upgrade.
The ebuild has a few new features, which are accessible through the following USE-flags:

music - Downloads and installs the optional music package (~25MB)
mapeditor - Compiles the mapeditor and copies an introduction to this to the documentation folder. It uses gtk-1.2 currently I figured it was best to make it optional - feel free to change this if you wish; but you can easily play Eternal Lands without having the map editor installed - it's just an add-on like the music.
doc - Generates documentation for the client source using Doxygen and copies it to to the documentation folder.

For now, since the mirrors do not have the 1.0.1-sources, you will have to fetch the source from berlios and put it in your ${DISTDIR}:
ftp://ftp.berlios.de/pub/elc/elc_101.tgz
ftp://ftp.berlios.de/pub/elc/mapedit_101.tgz

Eternal Lands is an open source mmorgp written in C using SDL/OpenGL. 
Go to http://www.eternal-lands.com to read more.

Best regards,
Bj
Comment 1 Bjørn Mogensen 2005-01-25 11:24:04 UTC
Hey,

This is an update for the ebuild for Eternal Lands, which makes it compatible with the new version. Since the server has switched to 1.0.1 (as of 25th of january) and 1.0.0 has been made obsolete (older clients are not able to connect any more) it is a necissary upgrade.
The ebuild has a few new features, which are accessible through the following USE-flags:

music - Downloads and installs the optional music package (~25MB)
mapeditor - Compiles the mapeditor and copies an introduction to this to the documentation folder. It uses gtk-1.2 currently I figured it was best to make it optional - feel free to change this if you wish; but you can easily play Eternal Lands without having the map editor installed - it's just an add-on like the music.
doc - Generates documentation for the client source using Doxygen and copies it to to the documentation folder.

For now, since the mirrors do not have the 1.0.1-sources, you will have to fetch the source from berlios and put it in your ${DISTDIR}:
ftp://ftp.berlios.de/pub/elc/elc_101.tgz
ftp://ftp.berlios.de/pub/elc/mapedit_101.tgz

Eternal Lands is an open source mmorgp written in C using SDL/OpenGL. 
Go to http://www.eternal-lands.com to read more.

Best regards,
Bjørn

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 2 Bjørn Mogensen 2005-01-25 11:25:36 UTC
Created attachment 49496 [details]
eternal-lands-1.0.1.ebuild

Initial version of the ebuild for Eternal Lands 1.0.1.
Comment 3 Bjørn Mogensen 2005-01-25 11:26:46 UTC
Created attachment 49497 [details]
digest-eternal-lands-1.0.1

The digest for the Eternal Lands 1.0.1 ebuild
Comment 4 Bjørn Mogensen 2005-01-25 13:17:04 UTC
Created attachment 49507 [details]
eternal-lands-1.0.1.ebuild (2)

Removes a bug where the post_install would lead to the wrong dir for the
documentation. 
Also this ebuild doesn't copy an obsolete knowledge.lst that resided in ./ (an
issue with the .zip)

Unfortunately the browser.lst that was found in the CVS directory of the map
editor was old, hence I will upload an updated one. I think that this can go in
${FILESDIR} since it's only 9.7KB when it's gzipped, but you'll have to decide
upon that.
Comment 5 Bjørn Mogensen 2005-01-25 13:18:20 UTC
Created attachment 49508 [details]
A newer browser.lst - compressed

A compressed version of the browser.lst. To go in ${FILESDIR} if possible.
Comment 6 Bjørn Mogensen 2005-01-25 13:23:20 UTC
Comment on attachment 49508 [details]
A newer browser.lst - compressed

Forgot the md5sum:
cac8299f8e3e2f85c929e19d90b69b2e
Comment 7 Mr. Bones. (RETIRED) gentoo-dev 2005-01-25 13:56:49 UTC
gzipped stuff should never go in files/
Comment 8 Bjørn Mogensen 2005-01-25 14:30:20 UTC
Created attachment 49516 [details]
eternal-lands-1.0.1.ebuild (3)

OK, I removed the compressed browser.lst. 
Thanks for the correction, I was not sure on whether it was allowed or not
(there are several ebuilds in the repository that have gzipped files, so it
confused me a bit).

After reviewing the new browser.lst I found that it was not needed with the
current 2d/3d objects - many of the objects included in the new list will only
be used/available in 1.0.2. 
The map editor in this ebuild is now fully up to date and has the same features
as in our windows release.
Comment 9 Bjørn Mogensen 2005-01-25 18:53:53 UTC
One last thing that might be an error in that ebuild:

I was in doubt about the IUSE-flags, and whether or not amd64 should be included in it. Since I am using the amd64 USE-flag to add -DX86_64 when compiling the source it would seem logical that it needs to be defined (since you have to do that with other use flags). 
But is this the way you want it, or should IUSE not include amd64?

IUSE="doc music mapeditor amd64"
Comment 10 Mr. Bones. (RETIRED) gentoo-dev 2005-01-25 19:00:31 UTC
yeah, arch flags never go in IUSE
Comment 11 Bjørn Mogensen 2005-01-25 19:34:53 UTC
Created attachment 49535 [details]
eternal-lands-1.0.1.ebuild (4)

OK, thanks. This ebuild removes amd64 from IUSE.

Tell me if there's anything else in the ebuild that you want changed.
Comment 12 Mr. Bones. (RETIRED) gentoo-dev 2005-01-25 19:54:54 UTC
I'd like to see the music installed by default and turned off with a use flag instead of having to turn it on.

take out the in-line use docs at the top.  take out the messages that get spewed turning pkg_setup (actually, just take out pkg_setup)

remove some of the extra comments you added from the ebuild in portage right now.

fix the date in the header

it probably doesn't rdepend on the doc? () stuff does it?

move the OPTIONS, and S_ variables into a function (top of src_unpack)

error check the newgamesbin calls

use dohtml for the documentation instead of cp

prepgamesdirs should be the last thing in src_install
Comment 13 Bjørn Mogensen 2005-01-26 13:13:44 UTC
Created attachment 49593 [details]
eternal-lands-1.0.1.ebuild (5)

I made the changes you wanted and changed the filename of music.zip to
el_music_101.zip for future updates. The mirror with the music is horribly slow
right now, so hopefully it'll reach the gentoo mirrors soon :)

Any other problems you see with this ebuild?
Comment 14 Bjørn Mogensen 2005-01-26 13:14:57 UTC
Created attachment 49594 [details]
digest-eternal-lands-1.0.1 (2)

Changes the filename of music.zip to el_music_101.zip
Comment 15 Bjørn Mogensen 2005-01-26 15:41:00 UTC
Created attachment 49607 [details]
eternal-lands-1.0.1.ebuild (6)

I was only defining S_CLIENT and S_MAPEDITOR in the unpack function which may
create problems if the src_compile() was called directly. It's now defined in
the src_compile as well.
Comment 16 Mr. Bones. (RETIRED) gentoo-dev 2005-01-26 15:45:18 UTC
no don't do that.  portage will keep track of the variables between function calls.
Comment 17 Bjørn Mogensen 2005-01-26 15:48:22 UTC
OK, I reversed it - the current ebuild is now eternal-lands-1.0.1.ebuild (5).
Comment 18 Mr. Bones. (RETIRED) gentoo-dev 2005-01-26 16:25:05 UTC
doesn't work because of the bad logic wrt mapeditor.

the use mapeditor && ...

needs to look like

if use mapeditor ; then
...
fi
Comment 19 Bjørn Mogensen 2005-01-26 16:33:38 UTC
Created attachment 49617 [details]
eternal-lands-1.0.1.ebuild (7)

Ah, sorry about that, a stupid error on my part.

It is fixed now.
Comment 20 Ben 2005-01-26 18:13:05 UTC
thanks for a quick new ebuild but i cant seem to find el_music_101.zip on berlios, can someone point me to that file. then i will test the ebuild. 
thanks
Comment 21 Bjørn Mogensen 2005-01-26 19:02:58 UTC
It's not on berlios. Why don't you just use the ebuild to fetch it? 

Anyway here it is.
http://el.tfm.ro/el_music_101.zip
Comment 22 Ben 2005-01-27 12:38:11 UTC
thanks, after about 45 minutes the ebuild just timed out fetching the music file
Comment 23 Bjørn Mogensen 2005-01-27 13:13:36 UTC
Yea, the mirror is in Romania, so do not expect too much... That's really also why I made the music an addon in the beginning :)
For now just emerge it with:

games-rpg/eternal-lands nomusic

In your /etc/portage/package.use
Comment 24 Mr. Bones. (RETIRED) gentoo-dev 2005-01-28 12:18:23 UTC
version bumped.  Thanks for the work on the ebuild and the bug report.