diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2005-11-22 01:46:02 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2005-11-22 01:46:02 +0000 |
commit | 114824326efb808bc36c254183d8dcf384adda4a (patch) | |
tree | 224cacfad9cda4e26eac657290af2697955f601c /games-action/rune | |
parent | [A[AInitial commit of app-text/an-0.93 (diff) | |
download | historical-114824326efb808bc36c254183d8dcf384adda4a.tar.gz historical-114824326efb808bc36c254183d8dcf384adda4a.tar.bz2 historical-114824326efb808bc36c254183d8dcf384adda4a.zip |
Updated ebuild to support both Linux and Windows media. Tested on Linux. Ebuild submitted by Patrick Zimmermann <patrick@zakweb.de> and closing bug #41732.
Package-Manager: portage-2.0.53_rc7
Diffstat (limited to 'games-action/rune')
-rw-r--r-- | games-action/rune/ChangeLog | 9 | ||||
-rw-r--r-- | games-action/rune/Manifest | 4 | ||||
-rw-r--r-- | games-action/rune/files/digest-rune-1.07-r1 | 1 | ||||
-rw-r--r-- | games-action/rune/rune-1.07-r1.ebuild | 135 |
4 files changed, 147 insertions, 2 deletions
diff --git a/games-action/rune/ChangeLog b/games-action/rune/ChangeLog index 16fefe7a0c71..b02d303d8e59 100644 --- a/games-action/rune/ChangeLog +++ b/games-action/rune/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for games-action/rune # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-action/rune/ChangeLog,v 1.2 2005/10/27 22:39:43 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-action/rune/ChangeLog,v 1.3 2005/11/22 01:46:02 wolf31o2 Exp $ + +*rune-1.07-r1 (22 Nov 2005) + + 22 Nov 2005; Chris Gianelloni <wolf31o2@gentoo.org> +rune-1.07-r1.ebuild: + Updated ebuild to support both Linux and Windows media. Tested on Linux. + Ebuild submitted by Patrick Zimmermann <patrick@zakweb.de> and closing bug + #41732. 27 Oct 2005; Chris Gianelloni <wolf31o2@gentoo.org> rune-1.07.ebuild: Changed HOMEPAGE. diff --git a/games-action/rune/Manifest b/games-action/rune/Manifest index 9abef427556f..3bebba6edb23 100644 --- a/games-action/rune/Manifest +++ b/games-action/rune/Manifest @@ -1,4 +1,6 @@ -MD5 4dd094d4093656c3367a5034bb229d9d ChangeLog 537 +MD5 774a9bd40c41cc2f9d1aac98a7299c33 ChangeLog 805 MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-rune-1.07 0 +MD5 6b6e58eea7d4f35abdc71070d6e97577 files/digest-rune-1.07-r1 67 MD5 76efd745270c0e95649117f0347478dd metadata.xml 2123 +MD5 e1365e4377865bab1089b8d46df8ffcc rune-1.07-r1.ebuild 4255 MD5 76fe49dfbdbbd46a0541975b02c09ead rune-1.07.ebuild 1881 diff --git a/games-action/rune/files/digest-rune-1.07-r1 b/games-action/rune/files/digest-rune-1.07-r1 new file mode 100644 index 000000000000..e7de50513dd4 --- /dev/null +++ b/games-action/rune/files/digest-rune-1.07-r1 @@ -0,0 +1 @@ +MD5 d6c4d876e7ffebf4a0705c25003e7f6c rune-all-0.1.tar.bz2 34715786 diff --git a/games-action/rune/rune-1.07-r1.ebuild b/games-action/rune/rune-1.07-r1.ebuild new file mode 100644 index 000000000000..63d3a3ef7da6 --- /dev/null +++ b/games-action/rune/rune-1.07-r1.ebuild @@ -0,0 +1,135 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-action/rune/rune-1.07-r1.ebuild,v 1.1 2005/11/22 01:46:02 wolf31o2 Exp $ + +inherit eutils games + +DESCRIPTION="Viking hack and slay game" +HOMEPAGE="http://www.runegame.com" +SRC_URI="mirror://gentoo/rune-all-0.1.tar.bz2 + http://dev.gentoo.org/~wolf31o2/sources/dump/rune-all-0.1.tar.bz2" + +LICENSE="LOKI-EULA" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="virtual/x11 + !amd64? ( =media-libs/libsdl-1.2* ) + opengl? ( virtual/opengl ) + amd64? ( app-emulation/emul-linux-x86-xlibs + app-emulation/emul-linux-x86-compat + app-emulation/emul-linux-x86-sdl )" + +DEPEND="" + +S=${WORKDIR} + +GAMES_CHECK_LICENSE="yes" +dir=${GAMES_PREFIX_OPT}/${PN} +Ddir=${D}/${dir} + +pkg_setup() { +export CDROM_SET_NAMES=("Linux Rune CD" "Windows Rune CD") + cdrom_get_cds System/rune.bin:System/Rune.exe + games_pkg_setup +} + +src_unpack() { + dodir "${dir}" + if [[ ${CDROM_SET} -eq 1 ]] + then + # unpack the data files + tar xzf "${CDROM_ROOT}"/data.tar.gz || die "Could not unpack data.tar.gz" + elif [[ ${CDROM_SET} -eq 2 ]] + then + # unpack the runelinuxfiles.tar.gz + unpack ${A} || die "Could not unpack runelinuxfiles.tar.gz" + fi +} + +src_install() { + insinto "${dir}" + exeinto "${dir}" + einfo "Copying files... this may take a while..." + + case ${CDROM_SET} in + 1) + for x in Help Maps Meshes Sounds System Textures Web + do + doins -r $x || die "copying $x" + done + + # copy linux specific files + doins -r "${CDROM_ROOT}"/System \ + || die "Could not copy Linux specific files" + + # the most important things: rune and ucc :) + doexe "${CDROM_ROOT}"/bin/x86/rune \ + || die "Could not install rune executable" + fperms 750 ${dir}/System/{ucc{,-bin},rune-bin} \ + || die "Could not make executables executable" + + # installing documentation/icon + dodoc "${CDROM_ROOT}"/{README,CREDITS} || die "Could not dodoc README.linux" + newicon "${CDROM_ROOT}"/icon.xpm rune.xpm || die "Could not copy pixmap" + ;; + 2) + # copying Maps Sounds and Web + for x in Maps Sounds Web + do + doins -r "${CDROM_ROOT}"/$x || die "copying $x" + done + + # copying the texture files + dodir ${dir}/Textures + for x in $(find "${CDROM_ROOT}"/Textures/ -type f -printf '%f ') + do + echo -ne '\271\325\036\214' | cat - ${CDROM_ROOT}/Textures/$x \ + |sed -e '1 s/\(....\)..../\1/' > ${Ddir}/Textures/$x \ + || die "modifying and copying $x" + done + + doins -r ${S}/System || die "Could not copy Linux specific files" + doins -r ${S}/Help || die "Could not copy Help data" + doins -r ${S}/patch/* || die "Could not copy Patch data" + + insinto ${dir}/System + + # copying system files from the Windows CD + for x in "${CDROM_ROOT}"/System/*.{int,u,url}; do + doins $x || die "copying $x" + done + + # modify the files + mv ${Ddir}/System/OpenGlDrv.int ${Ddir}/System/OpenGLDrv.int \ + || die "Could not modify System file OpenGlDrv.int" + mv ${Ddir}/Textures/bloodFX.utx ${Ddir}/Textures/BloodFX.utx \ + || die "Could not modify Texture file bloodFX.utx" + mv ${Ddir}/Textures/RUNESTONES.UTX ${Ddir}/Textures/RUNESTONES.utx \ + || die "Could not modify Texture file RUNESTONES.UTX" + mv ${Ddir}/Textures/tedd.utx ${Ddir}/Textures/Tedd.utx \ + || die "Could not modify Texture file tedd.utx" + mv ${Ddir}/Textures/UNDERANCIENT.utx ${Ddir}/Textures/UnderAncient.utx \ + || die "Could not modify Texture file UNDERANCIENT.utx" + rm ${Ddir}/System/{Setup.int,SGLDrv.int,MeTaLDrv.int,Manifest.int,D3DDrv.int,Galaxy.int,SoftDrv.int,WinDrv.int,Window.int} || die "Could not delete not needed System files" + + # the most important things: rune and ucc :) + doexe ${S}/bin/x86/rune || die "Could not install rune executable" + fperms 750 ${dir}/System/{ucc,ucc-bin,rune-bin} \ + || die "Could not make executables executable" + + # installing documentation/icon + dodoc "${S}"/{README,CREDITS} || die "Could not dodoc README.linux" + doicon "${S}"/rune.xpm rune.xpm || die "Could not copy pixmap" + ;; + esac + + use amd64 && mv ${Ddir}/System/libSDL-1.2.so.0 \ + ${Ddir}/System/libSDL-1.2.so.0.backup + + games_make_wrapper rune ./rune "${dir}" "${dir}" + make_desktop_entry rune "Rune" rune.xpm "Game;ActionGame" + find ${Ddir} -exec touch '{}' \; + prepgamesdirs +} |