Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 130818
Collapse All | Expand All

(-)ut2004-bonuspack-mega-1-r1.ebuild (-26 / +16 lines)
Lines 21-31 Link Here
21
IUSE=""
21
IUSE=""
22
22
23
# Override games-ut2k4mod eclass
23
# Override games-ut2k4mod eclass
24
# File comparison was made with ut2004-3369-r2
25
# Need ut2004-3369-r4, to take ownership of {Manifest.in{i,t},Packages.md5}
24
# Need ut2004-3369-r4, to take ownership of {Manifest.in{i,t},Packages.md5}
25
# This Megapack completely replaces ut2004-bonuspack-ece
26
RDEPEND=">=games-fps/ut2004-3369-r4
26
RDEPEND=">=games-fps/ut2004-3369-r4
27
	>=games-fps/ut2004-data-3186-r2
27
	>=games-fps/ut2004-data-3186-r2"
28
	>=games-fps/ut2004-bonuspack-ece-1-r1"
29
DEPEND="${RDEPEND}"
28
DEPEND="${RDEPEND}"
30
29
31
S=${WORKDIR}/UT2004MegaPack
30
S=${WORKDIR}/UT2004MegaPack
Lines 38-72 Link Here
38
}
37
}
39
38
40
src_install() {
39
src_install() {
41
	# Remove files in Megapack which are already installed
40
	# Make readme filename more specific
42
	rm -r Animations Speech Web
43
44
	rm Help/{ReadMePatch.int.txt,UT2004Logo.bmp}
45
	mv Help/BonusPackReadme.txt Help/${MY_PN}Readme.txt
41
	mv Help/BonusPackReadme.txt Help/${MY_PN}Readme.txt
46
42
47
	rm Maps/ONS-{Adara,IslandHop,Tricky,Urban}.ut2
48
	rm Sounds/{CicadaSnds,DistantBooms,ONSBPSounds}.uax
49
	rm StaticMeshes/{BenMesh02,BenTropicalSM01,HourAdara,ONS-BPJW1,PC_UrbanStatic}.usx
50
51
	# System
52
	rm System/{AL,AS-,B,b,C,D,E,F,G,I,L,O,o,S,s,U,V,W,X,x}*
53
	rm System/{ucc,ut2004}-bin
54
	rm System/{ucc,ut2004}-bin-linux-amd64
55
56
	# Backup files which a future bonuspack may try to overwrite
43
	# Backup files which a future bonuspack may try to overwrite
57
	for n in {Manifest.in{i,t},Packages.md5} ; do
44
	for n in {Manifest.in{i,t},Packages.md5} ; do
58
		cp System/${n} System/${n}-${MY_PN}
45
		cp System/${n} System/${n}-${MY_PN}
59
	done
46
	done
60
47
61
	rm Textures/{AW-2k4XP,BenTex02,BenTropical01,BonusParticles,CicadaTex,Construction_S,HourAdaraTexor,jwfasterfiles,ONSBP_DestroyedVehicles,ONSBPTextures,PC_UrbanTex,UT2004ECEPlayerSkins}.utx
48
	# Remove file collisions with ut2004 and ut2004-data
62
49
	rm Animations/ONSN*
63
	# Install Megapack
50
	rm Help/{R,U}*
64
	for n in {Help,Maps,Music,Sounds,StaticMeshes,System,Textures} ; do
51
	rm -r Speech
65
		# doins is not used because of its unnecessary overhead
52
	rm System/{AL,AS,B,C,D,E,F,G,I,L,ONS-Ar,Onslaught.,OnslaughtBP.k}*
66
		dodir "${dir}"/${n}
53
	rm System/{OnslaughtBP.u,OnslaughtF,S,U,V,W,X,b,o,s,u,xV}*
67
		cp -r "${S}"/${n}/* "${Ddir}"/${n} \
54
	rm Textures/j*
68
			|| die "copying ${n} from ${MY_PN}"
55
	rm -r Web
69
	done
56
70
57
	insinto "${dir}"
58
	doins -r * \
59
		|| die "doins -r failed"
60
	
71
	prepgamesdirs
61
	prepgamesdirs
72
}
62
}

Return to bug 130818