diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2004-08-27 20:10:47 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2004-08-27 20:10:47 +0000 |
commit | f4c7e184a8399c12fbb7bf824dc3d611d176532f (patch) | |
tree | f519874fc1574ca51e18603e4ae6be53c2882b59 /games-rpg/eternal-lands | |
parent | Reassigning to webapps (diff) | |
download | historical-f4c7e184a8399c12fbb7bf824dc3d611d176532f.tar.gz historical-f4c7e184a8399c12fbb7bf824dc3d611d176532f.tar.bz2 historical-f4c7e184a8399c12fbb7bf824dc3d611d176532f.zip |
unpack in src_unpack; use games.eclass functions; tidy
Diffstat (limited to 'games-rpg/eternal-lands')
-rw-r--r-- | games-rpg/eternal-lands/ChangeLog | 6 | ||||
-rw-r--r-- | games-rpg/eternal-lands/Manifest | 4 | ||||
-rw-r--r-- | games-rpg/eternal-lands/eternal-lands-1.0.0.ebuild | 57 |
3 files changed, 39 insertions, 28 deletions
diff --git a/games-rpg/eternal-lands/ChangeLog b/games-rpg/eternal-lands/ChangeLog index 634de5d8eb01..bf60b88ddc0b 100644 --- a/games-rpg/eternal-lands/ChangeLog +++ b/games-rpg/eternal-lands/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for games-rpg/eternal-lands # Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-rpg/eternal-lands/ChangeLog,v 1.1 2004/08/27 16:40:01 kanaka Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-rpg/eternal-lands/ChangeLog,v 1.2 2004/08/27 20:10:47 mr_bones_ Exp $ + + 27 Aug 2004; Michael Sterrett <mr_bones_@gentoo.org> + eternal-lands-1.0.0.ebuild: + unpack in src_unpack; use games.eclass functions; tidy *eternal-lands-1.0.0 (17 Aug 2004) diff --git a/games-rpg/eternal-lands/Manifest b/games-rpg/eternal-lands/Manifest index 5b56f3d822d3..1021fdf1bc11 100644 --- a/games-rpg/eternal-lands/Manifest +++ b/games-rpg/eternal-lands/Manifest @@ -1,4 +1,4 @@ -MD5 f4b4ade405a146023661c657c29dff4a eternal-lands-1.0.0.ebuild 2031 -MD5 a8bd201cf7cb9c17dc9887b8d677fedc ChangeLog 361 +MD5 d5b063e103ea17084dd01da254cf54e2 ChangeLog 507 +MD5 b79ce2474148fe484b0652681e0afd1d eternal-lands-1.0.0.ebuild 1932 MD5 f14047c98a46008d55322cc6df542db0 metadata.xml 218 MD5 13332eb34e0c35e33cfd4e40064f1672 files/digest-eternal-lands-1.0.0 113 diff --git a/games-rpg/eternal-lands/eternal-lands-1.0.0.ebuild b/games-rpg/eternal-lands/eternal-lands-1.0.0.ebuild index 21d3146c9598..fc036c74c7d6 100644 --- a/games-rpg/eternal-lands/eternal-lands-1.0.0.ebuild +++ b/games-rpg/eternal-lands/eternal-lands-1.0.0.ebuild @@ -1,13 +1,14 @@ # Copyright 1999-2004 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.0.0.ebuild,v 1.1 2004/08/27 16:40:01 kanaka Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-rpg/eternal-lands/eternal-lands-1.0.0.ebuild,v 1.2 2004/08/27 20:10:47 mr_bones_ Exp $ inherit games -DESCRIPTION="Eternal Lands is an online MMORPG written in C and SDL" +DESCRIPTION="An online MMORPG written in C and SDL" HOMEPAGE="http://www.eternal-lands.com" TMP_PV=${PV%_p*} -SRC_URI="http://el.tfm.ro/el_${TMP_PV//.}.zip ftp://ftp.berlios.de/pub/elc/elc_${PV//.}.tgz" +SRC_URI="http://el.tfm.ro/el_${TMP_PV//.}.zip + ftp://ftp.berlios.de/pub/elc/elc_${PV//.}.tgz" LICENSE="eternal_lands" SLOT="0" @@ -15,51 +16,57 @@ KEYWORDS="~x86" IUSE="" DEPEND="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" - -RDEPEND=${DEPEND} + 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" S="${WORKDIR}/elc" -src_compile() { - cd ${S} +src_unpack() { + unpack ${A} + cd "${S}" sed \ -e "s@CFLAGS=\$(PLATFORM) -Wall -ggdb -pipe@CFLAGS=${CFLAGS}@g" \ -e 's@OPTIONS=@OPTIONS=-DDATA_DIR="\\"${GAMES_DATADIR}/${PN}/\\"" @g' \ - Makefile.linux > Makefile || die "sed failed" - emake || die "emake failed" - cp el.x86.linux.bin ../el.x86.linux.bin || die "copy failed" - cp eternal_lands_license.txt ../LICENSE || die "copy failed" + 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" + el.ini > ../el.ini \ + || die "sed failed" cd .. - cp license.txt EULA || die "copy failed" - if [[ -e Encyclopedia/images/.xvpics ]]; then - rm -r Encyclopedia/images/.xvpics || die "could not clean xvpics" - fi + cp license.txt EULA || die "cp failed" + rm -fr Encyclopedia/images/.xvpics +} + +src_compile() { + emake || die "emake failed" + cp el.x86.linux.bin ../el.x86.linux.bin || die "cp failed" } src_install () { cd "${WORKDIR}" - insinto ${GAMES_DATADIR}/${PN} + insinto "${GAMES_DATADIR}/${PN}" newgamesbin el.x86.linux.bin el - dodoc changes.txt faq.txt readme.txt LICENSE EULA + dodoc changes.txt faq.txt readme.txt EULA doins el.ini *.lst el_icon.png icon.bmp global_filters.txt global_ignores.txt \ || die "Files failed to be installed" cp -R 2dobjects 3dobjects Encyclopedia maps md2 sound textures tiles \ - ${D}/${GAMES_DATADIR}/${PN} || die "copy failed" + "${D}/${GAMES_DATADIR}/${PN}" \ + || die "copy failed" + prepgamesdirs } pkg_postinst() { + games_pkg_postinst + echo einfo "To run the game: el" einfo "Copy ${GAMES_DATADIR}/${PN}/el.ini to ~/.elc/" einfo "to make per-user changes." + echo } |