Jump to content
Eternal Lands Official Forums
mihaim

EL 1.1.0 Linux Client

Recommended Posts

you should edit the el.ini file anyway. it has the browser set as if you were on windows.

the server address seems to be wrong too. it is set to: eternal-lands.network-studio.com

Share this post


Link to post
Share on other sites

When I get home. Has Wytter updated the e-build for Gentoo yet?

Actually not today until LATE. Heh.

Edited by Brom

Share this post


Link to post
Share on other sites
When I get home. Has Wytter updated the e-build for Gentoo yet?

196212[/snapback]

There is a post in bugs.gentoo.org for a 1.1 ebuild right now

Share this post


Link to post
Share on other sites
There is a post in bugs.gentoo.org for a 1.1 ebuild right now

196250[/snapback]

 

Ahem ... that was me... :)

 

Nice to see you really care!!! :)

Edited by Asmodis

Share this post


Link to post
Share on other sites
Never meant to imply that it was myself. Just glad to see it there.

 

/loyal gentoo user/

196327[/snapback]

:)

 

And I didn't understand it that way :)

I was just trying to direct some attention on me. :)

 

/another loyal gentoo user/

*smile*

Share this post


Link to post
Share on other sites

Sorry, will not be able to provide a full 1.1.0 ebuild for the next couple of days as I'll be on an intro-trip with my chem class. If anyone is capable, please continue from this:

 

# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-rpg/eternal-lands/eternal-lands-1.1.0.ebuild,v 1.2 2005/06/09 01:08:50 mr_bones_ Exp $

inherit games

TMP_PV=${PV%_p*}
DESCRIPTION="An online MMORPG written in C and SDL"
HOMEPAGE="http://www.eternal-lands.com"
SRC_URI="http://el.tfm.ro/el_${TMP_PV//.}-t1.zip
ftp://ftp.berlios.de/pub/elc/elc_${TMP_PV//.}.tgz
mapeditor? ( ftp://ftp.berlios.de/pub/elc/mapedit_${TMP_PV//.}.tgz )
!nomusic? ( http://el.tfm.ro/el_music_${TMP_PV//.}.zip )"

LICENSE="eternal_lands"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc nomusic mapeditor netthread"

RDEPEND="virtual/x11
virtual/opengl
>=media-libs/libsdl-1.2.5
>=media-libs/sdl-net-1.2.5
>media-libs/openal-20020127
media-libs/libvorbis
>=dev-libs/libxml2-2.6.7
=media-libs/cal3d-0.10.0
mapeditor? (>=x11-libs/gtk+-2.4)"

DEPEND="${RDEPEND}
app-arch/unzip
doc? ( >=app-doc/doxygen-1.3.8
 >=media-gfx/graphviz-1.10 )"

src_unpack() {
OPTIONS="OPTIONS=-DDATA_DIR="\\\\\"${GAMES_DATADIR}/${PN}/\\\\\"" -DNEW_CLIENT -DMULTI_CHANNEL -DPNG_SCREENSHOT"
S_CLIENT="${WORKDIR}/elc"
S_MAPEDITOR="${WORKDIR}/map_editor"

unpack ${A}
use amd64 && OPTIONS="${OPTIONS} -DX86_64"
use netthread && OPTIONS="${OPTIONS} -DNETWORK_THREAD"
cd "${S_CLIENT}"
sed \
 -e "s@CFLAGS=\$(PLATFORM) \$(CWARN) -O -ggdb -pipe@CFLAGS=${CFLAGS} @g"\
 -e "s@CXXFLAGS=\$(PLATFORM) \$(CXXWARN) -O -ggdb -pipe@CXXFLAGS=${CXXFLAGS} @g"\
 -e "s@OPTIONS=@${OPTIONS} @g" \
 Makefile.linux > Makefile \
 || die "sed failed"
sed \
 -e 's/#browser/browser/g' \
 -e 's/browser = mozilla/#browser = mozilla/g' \
 -e "s@#data_dir = /usr/local/games/el/@#data_dir = ${GAMES_DATADIR}/${PN}/@g" \
 el.ini > ../el.ini \
 || die "sed failed"
if use mapeditor; then
 cd ${S_MAPEDITOR}
 sed \
 	-e "s@CFLAGS=@CFLAGS=${CFLAGS} @g" \
 	-e "s@OPTIONS=@${OPTIONS} @g" \
 	Makefile.linux > Makefile \
 	|| die "sed failed"
 sed \
 	-e "s@#data_dir = /usr/local/games/el/@#data_dir = ${GAMES_DATADIR}/${PN}/@g" \
 	mapedit.ini > ../mapedit.ini \
 	|| die "sed failed"
 mv browser.lst ../browser.lst
fi
cd ${WORKDIR}
cp license.txt EULA || die "cp failed"
}

src_compile() {
cd ${S_CLIENT}
emake || die "emake failed"
cp el.x86.linux.bin ../el.x86.linux.bin || die "cp failed"
if use doc; then
 emake docs || die "Failed to create documentation, try with USE=-docs"
 mv ./docs/html/ ../client || die "Failed to move documentation directory"
fi
if use mapeditor; then
 cd ${S_MAPEDITOR}
 emake || die "emake failed"
 cp mapedit.x86.linux.bin ../mapedit.x86.linux.bin || die "cp failed"
fi
}

src_install () {
cd "${WORKDIR}"
newgamesbin el.x86.linux.bin el || die "newgamesbin failed"
if use mapeditor; then
 newgamesbin mapedit.x86.linux.bin el-mapedit \
 	|| die "newgamesbin failed"
fi

dodoc ChangeLog EULA
insinto "${GAMES_DATADIR}/${PN}"
doins *.ini entrable.lst harvestable.lst el_icon.png icon.bmp \
 global_filters.txt local_ignores.txt e3dlist.txt \
 || die "doins failed"

if use mapeditor; then
 doins browser.lst || die "doins failed"
fi

cp -R 2dobjects 3dobjects languages maps particles sound textures tiles\
meshes animations actor_defs books skeletons\
 "${D}/${GAMES_DATADIR}/${PN}" \
 || die "copy failed"

ln -s meshes Meshes
ln -s animations Animations
ln -s skeletons Skeletons

if ! use nomusic; then
 cp -R music "${D}/${GAMES_DATADIR}/${PN}" || die "cp failed"
fi

if use doc; then
 dohtml -r "${WORKDIR}/client/"*
fi
if use mapeditor; then
 dohtml "${WORKDIR}/mapeditor.html"
 dohtml -r "${WORKDIR}/mapeditor"
fi
prepgamesdirs
}

pkg_postinst() {
games_pkg_postinst
echo
einfo "To run the game: el"
echo
if use mapeditor; then
 einfo "To use the map editor: el-mapedit"
 einfo "Copy ${GAMES_DATADIR}/${PN}/mapedit.ini to ~/.elc/"
 einfo "to make per-user changes."
 echo
 einfo "To read an introduction to the map editor, read"
 einfo "/usr/share/doc/${PF}/html/mapeditor.html"
 echo
fi
if use doc; then
 einfo "The documentation for the client source can be found"
 einfo "in /usr/share/doc/${PF}/html/index.html"
 echo
fi
}

The elc_110.tgz and mapedit_110.tgz are just a zip of the CVS dirs, which will be uploaded to the berlios ftp.

Share this post


Link to post
Share on other sites

I am a gentoo user, but I am not an expert :) What should I do to run an ebuild? Let me guess and you tell me how to do it correctly.

 

Download the e-build to a safe location.

emerge --unmerge el?

emerge <Path/To/Ebuild>

el?

 

Is that it? I have always been confused on how to use masked packages. Though I have had it explained to me many times. Differing opinions about how to do it.

Share this post


Link to post
Share on other sites

After downloading ebuild from bugs.gentoo.org

Switch to root user

 

1: Make sure you have a PORT_DIR_OVERLAY defined in /etc/make.conf (i have it as /usr/local/portage

2: mkdir /usr/local/portage/games-rpg (if is does not exist)

3: mkdir /usr/local/portage/games-rpg/eternal-lands

4: cp eternal*.ebuild /usr/local/portage/games-rpg/eternal-lands

5: cd /usr/local/portage/games-rpg/eternal-lands

6: ebuild eternal-lands-1.1.0-r1.ebuild digest

7: emerge -av eternal-lands

Edited by Drakos7

Share this post


Link to post
Share on other sites

-av? I assume v is verbose but what is the a option?

 

And, is step 6 needed? or just recommened (I will do it either way)

Share this post


Link to post
Share on other sites
-av? I assume v is verbose but what is the a option?

Doing a man emerge shows this:

OPTIONS

--ask (-a)

Before performing the merge, display what ebuilds and tbz2s will be installed, in the same format as when using --pre-

tend; then ask whether to continue with the merge or abort. Using --ask is more efficient than using --pretend and

then executing the same command without --pretend, as dependencies will only need to be calculated once.

As well as option -v which is verbose - as you assumed. :)

 

And, is step 6 needed? or just recommened (I will do it either way)

Step 6 is the most important...

The ebuild Drakos7 asked you to copy to /usr/local/portage/games-rpg/eternal-lands is the updated ebuild file made by Wytter. You can download attachment 1 (eternal-lands-1.1.0-r1.ebuild) from here http://bugs.gentoo.org/show_bug.cgi?id=106223

 

----------

 

The following steps show what I did.

Note: my howto is not better than the howto by Drakos - its just different!

 

I

Download this file: http://bugs.gentoo.org/attachment.cgi?id=68620 using a browser by right clicking on the link -> save-target-to ...

Of course you may use wget and similar tools too.

 

II

Move the file to /usr/portage/games-rpg/eternal-lands - in my case I typed:

su

cd /usr/portage/games-rpg/eternal-lands/

mv /home/atti/eternal-lands-1.1.0-r1.ebuild .

 

note1: You have to type the space and the dot at the end of the above shown command

note2: /home/atti/ is the directory where I saved the downloaded ebuild file to

note3: I didn't save the file to /usr/local since the old client is not usable anymore so it can be overwritten by this testing version. When the 1.1.0-r1 or succeeding versions will be added to the portage tree the ebuild file we use now will be overwritten or replaced so I am at the safe side anyhow.

 

III

Tell portage to use the new ebuild file:

ebuild eternal-lands-1.1.0-r1.ebuild digest

 

IIII

To see what will be done type:

emerge -pv eternal-lands

 

If emerge does not show [ebuild U] games-rpg/eternal-lands-1.1.0-r1 you have to tell portage to unmask the package. See below.

 

note1: -p means pretend so nothing will be emerget at this point.

note2: -v is verbose which shows you which version is installed and which will be installed as well as the use-flags.

 

here is what I got:

magic ~ # emerge -pv eternal-lands

 

These are the packages that I would merge, in order:

 

Calculating dependencies

!!! All ebuilds that could satisfy "eternal-lands" have been masked.

!!! One of the following masked packages is required to complete your request:

- games-rpg/eternal-lands-1.1.0-r1 (masked by: ~amd64 keyword)

 

For more information, see MASKED PACKAGES section in the emerge man page or

section 2.2 "Software Availability" in the Gentoo Handbook.

then I told portage to accept masked packages and got this

magic ~ # ACCEPT_KEYWORDS="~amd64" emerge -pv eternal-lands

 

These are the packages that I would merge, in order:

 

Calculating dependencies ...done!

[ebuild U ] games-rpg/eternal-lands-1.1.0-r1 [1.0.1] -doc -mapeditor -netthread -nomusic 0 kB

which shows me that I can do an update from version 1.0.1 to 1.1.0-r1

 

V

Tell portage to emerge the new version:

ACCEPT_KEYWORDS="~amd64" emerge -v eternal-lands

I had to unmask by putting ACCEPT_KEYWORDS="~amd64" in front of the emerge command. If you have an x86 machine you have to use "~x86" and so on.

 

Regards

Edited by Asmodis

Share this post


Link to post
Share on other sites

Yes, Excellent. I know someone in my guild who is animate about not using ACCEPT_KEYWORDS = "blah"

Thus I have been hesitant to do it.

Share this post


Link to post
Share on other sites

echo "games-rpg/eternal-lands ~amd64" >> /etc/portage/package.keywords

Share this post


Link to post
Share on other sites
Yes, Excellent. I know someone in my guild who is animate about not using ACCEPT_KEYWORDS = "blah"

Thus I have been hesitant to do it.

The problem using ACCEPT_KEYWORDS is, that it refers to all packages that will be emerged.

If you do an ACCEPT_KEYWORDS="~amd64" emerge gnome portage will not only emerge the testing version of gnome but the testing versions of all its dependencies like xorg and gdm as well. Usually we want to use the stable versions.

 

By doing what Wytter posted in the last statement you make sure that portage emerges the testing version of eternal-lands only.

So I suggest executing the command (as root).

 

Regards

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×