added ebuild for etqw-1.4
This commit is contained in:
		
							parent
							
								
									5caa3d7ea2
								
							
						
					
					
						commit
						82a16917fc
					
				
					 2 changed files with 119 additions and 0 deletions
				
			
		
							
								
								
									
										2
									
								
								games-fps/etqw-bin/Manifest
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								games-fps/etqw-bin/Manifest
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,2 @@ | |||
| DIST ETQW-client-1.4-full.x86.run 471070224 RMD160 5aa3405d605db3b62beb537ac6e649b22a41c89b SHA1 7ed0c2c35ebad18ed623e9226333951547859f78 SHA256 b5e28df197c8ff0ad05f920c52baddfa138b19981b134c6cf83034ddc43c3182 | ||||
| EBUILD etqw-bin-1.4.ebuild 3025 RMD160 6a753e1c587cbc50d2c3e617c387c17b8a3eceac SHA1 e39ed0842c49ca18b9947ce6d33a7e107bc32089 SHA256 a305149f34838ee120c56042879e96a536014b709890c2008fb0a524c548b8b6 | ||||
							
								
								
									
										117
									
								
								games-fps/etqw-bin/etqw-bin-1.4.ebuild
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										117
									
								
								games-fps/etqw-bin/etqw-bin-1.4.ebuild
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,117 @@ | |||
| # Copyright 1999-2007 Gentoo Foundation | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
| # $Header: /var/cvsroot/gentoo-x86/games-fps/quake4-bin/quake4-bin-1.4.2.ebuild,v 1.2 2007/08/20 17:23:52 wolf31o2 Exp $ | ||||
| 
 | ||||
| inherit eutils versionator games | ||||
| 
 | ||||
| VER="$(get_version_component_range 1-2)" | ||||
| REV="$(get_version_component_range 3-3)" | ||||
| MY_PV="${VER}-full${REV:+.r${REV}}" | ||||
| MY_BODY="ETQW-client-${MY_PV}.x86" | ||||
| 
 | ||||
| DESCRIPTION="Enemy Territory" | ||||
| HOMEPAGE="http://zerowing.idsoftware.com/linux/etqw/" | ||||
| SRC_URI="ftp://ftp.idsoftware.com/idstuff/etqw/${MY_BODY}.run" | ||||
| 
 | ||||
| #LICENSE="ETQW" | ||||
| SLOT="0" | ||||
| KEYWORDS="amd64 x86" | ||||
| IUSE="alsa cdinstall dedicated opengl" | ||||
| 
 | ||||
| RESTRICT="strip" | ||||
| 
 | ||||
| UIDEPEND="virtual/opengl | ||||
| 	x86? ( | ||||
| 		x11-libs/libXext | ||||
| 		x11-libs/libX11 | ||||
| 		x11-libs/libXau | ||||
| 		x11-libs/libXdmcp | ||||
| 		media-libs/libsdl ) | ||||
| 	amd64? ( | ||||
| 		app-emulation/emul-linux-x86-compat | ||||
| 		app-emulation/emul-linux-x86-sdl | ||||
| 		app-emulation/emul-linux-x86-xlibs | ||||
| 		|| ( | ||||
| 			>=app-emulation/emul-linux-x86-xlibs-7.0 | ||||
| 			x11-drivers/nvidia-drivers | ||||
| 			>=x11-drivers/ati-drivers-8.8.25-r1 ) ) | ||||
| 	alsa? ( >=media-libs/alsa-lib-1.0.6 )" | ||||
| 
 | ||||
| RDEPEND="sys-libs/glibc | ||||
| 	dedicated? ( app-misc/screen !games-server/etqw-ded ) | ||||
| 	amd64? ( app-emulation/emul-linux-x86-baselibs ) | ||||
| 	cdinstall? ( games-fps/etqw-data ) | ||||
| 	opengl? ( ${UIDEPEND} ) | ||||
| 	!dedicated? ( !opengl? ( ${UIDEPEND} ) )" | ||||
| 
 | ||||
| S=${WORKDIR} | ||||
| 
 | ||||
| dir=${GAMES_PREFIX_OPT}/etqw | ||||
| Ddir=${D}/${dir} | ||||
| 
 | ||||
| #GAMES_CHECK_LICENSE="yes" | ||||
| 
 | ||||
| QA_TEXTRELS="${dir:1}/pb/pbag.so | ||||
| 	${dir:1}/pb/pbags.so | ||||
| 	${dir:1}/pb/pbcl.so | ||||
| 	${dir:1}/pb/pbcls.so | ||||
| 	${dir:1}/pb/pbsv.so" | ||||
| QA_EXECSTACK="${dir:1}/etqw.x86 | ||||
| 	${dir:1}/etqwded.x86 | ||||
| 	${dir:1}/libgcc_s.so.1 | ||||
| 	${dir:1}/libjpeg.so.62 | ||||
| 	${dir:1}/libstdc++.so.6 | ||||
| 	${dir:1}/libCgx86.so" | ||||
| 
 | ||||
| src_unpack() { | ||||
| 	# There is a warning which changes the exit code and causes "unzip" to not | ||||
| 	# return an exit code of "0", so there's no || die here.  If anybody wants | ||||
| 	# to take the time to look into this and actually fix it, I'm open to | ||||
| 	# suggestions.  Otherwise, this is staying like this. | ||||
| 	unzip -qq ${DISTDIR}/${A} | ||||
| 	mv data/* . || die | ||||
| 
 | ||||
| } | ||||
| 
 | ||||
| src_install() { | ||||
| 	insinto "${dir}" | ||||
| 	doins -r pb base || die "doins pb base" | ||||
| 
 | ||||
| 	exeinto "${dir}" | ||||
| 	doexe openurl.sh || die "openurl.sh" | ||||
| 	doexe {etqw.x86,libCgx86.so,*.so.?} \ | ||||
| 		|| die "doexe x86 exes/libs" | ||||
| 
 | ||||
| 	insinto "${dir}"/base | ||||
| 	doins base/* || die "doins base" | ||||
| 
 | ||||
| 	if use dedicated ; then | ||||
| 		doexe etqwded.x86 || die "doexe etqwded.x86" | ||||
| 		games_make_wrapper etqw-ded ./etqwded.x86 "${dir}" "${dir}" | ||||
| 	fi | ||||
| 
 | ||||
| 	if use opengl || ! use dedicated ; then | ||||
| 		newicon etqw_icon.png etqw.png || die "doicon" | ||||
| 		games_make_wrapper etqw "./etqw.x86" "${dir}" "${dir}" | ||||
| 		make_desktop_entry etqw "Enemy Territory: Quake Wars" etqw.png | ||||
| 	fi | ||||
| 	prepgamesdirs | ||||
| } | ||||
| 
 | ||||
| pkg_postinst() { | ||||
| 	games_pkg_postinst | ||||
| 
 | ||||
| 	if ! use cdinstall | ||||
| 	then | ||||
| 		elog "You need to copy pak00*.pk4, zpak_english000.pk4 and the megatextures" | ||||
| 		elog "directory from either your installation media or your hard drive" | ||||
| 		elog "to ${dir}/base before running the game." | ||||
| 		echo | ||||
| 	fi | ||||
| 
 | ||||
| 	if use opengl || !use dedicated ; then | ||||
| 		elog "To play the game, run: etqw" | ||||
| 		echo | ||||
| 	fi | ||||
| } | ||||
| 
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue