/[gentoo-x86]/games-action/descent3/descent3-1.4.0b-r1.ebuild
Gentoo

Diff of /games-action/descent3/descent3-1.4.0b-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.9 Revision 1.10
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2006 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/games-action/descent3/descent3-1.4.0b-r1.ebuild,v 1.9 2006/10/13 15:41:19 wolf31o2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/games-action/descent3/descent3-1.4.0b-r1.ebuild,v 1.10 2006/10/24 22:41:03 wolf31o2 Exp $
4 4
5inherit eutils multilib games 5inherit eutils multilib games
6 6
7IUSE="nocd videos" 7IUSE="nocd videos"
8DESCRIPTION="Descent 3 - 3-Dimensional indoor/outdoor spaceship combat" 8DESCRIPTION="Descent 3 - 3-Dimensional indoor/outdoor spaceship combat"
34 34
35pkg_setup() { 35pkg_setup() {
36 games_pkg_setup 36 games_pkg_setup
37 if use videos ; then 37 if use videos ; then
38 ewarn "The installed game takes about 1.2GB of space!" 38 ewarn "The installed game takes about 1.2GB of space!"
39 cdrom_get_cds missions/d3.mn3 movies/level1.mve
40 else
41 cdrom_get_cds missions/d3.mn3
42 fi
43 if use nocd ; then 39 elif use nocd ; then
44 ewarn "The installed game takes about 510MB of space!" 40 ewarn "The installed game takes about 510MB of space!"
45 else 41 else
46 ewarn "The installed game takes about 220MB of space!" 42 ewarn "The installed game takes about 220MB of space!"
47 fi 43 fi
48} 44}
49 45
50src_unpack() { 46src_unpack() {
47 if use videos ; then
48 cdrom_get_cds missions/d3.mn3 movies/level1.mve
49 else
50 cdrom_get_cds missions/d3.mn3
51 fi
51 mkdir -p ${S}/{a,b} 52 mkdir -p ${S}/{a,b}
52 cd ${S}/a 53 cd "${S}"/a
53 unpack_makeself ${PN}-1.4.0a-x86.run 54 unpack_makeself ${PN}-1.4.0a-x86.run
54 cd ${S}/b 55 cd "${S}"/b
55 unpack_makeself ${P}-x86.run 56 unpack_makeself ${P}-x86.run
56} 57}
57 58
58src_install() { 59src_install() {
59 dodir ${dir}
60 einfo "Copying files... this may take a while..." 60 einfo "Copying files... this may take a while..."
61 exeinto ${dir} 61 exeinto "${dir}"
62 doexe ${CDROM_ROOT}/bin/x86/glibc-2.1/{${PN},nettest} \ 62 doexe ${CDROM_ROOT}/bin/x86/glibc-2.1/{${PN},nettest} \
63 || die "copying executables" 63 || die "copying executables"
64 insinto ${dir} 64 insinto "${dir}"
65 doins ${CDROM_ROOT}/{FAQ.txt,README{,.mercenary},d3.hog,icon.{bmp,xpm}} \ 65 doins ${CDROM_ROOT}/{FAQ.txt,README{,.mercenary},d3.hog,icon.{bmp,xpm}} \
66 || die "copying files" 66 || die "copying files"
67 67
68 cd ${Ddir} 68 cd "${Ddir}"
69 # TODO: move this to src_unpack where it belongs
69 tar xzf ${CDROM_ROOT}/data.tar.gz || die "uncompressing data" 70 tar xzf ${CDROM_ROOT}/data.tar.gz || die "uncompressing data"
70 tar xzf ${CDROM_ROOT}/shared.tar.gz || die "uncompressing shared" 71 tar xzf ${CDROM_ROOT}/shared.tar.gz || die "uncompressing shared"
71 72
72 if use nocd; then 73 if use nocd; then
73 doins -r ${CDROM_ROOT}/missions || die "copying missions" 74 doins -r ${CDROM_ROOT}/missions || die "copying missions"
76 if use videos ; then 77 if use videos ; then
77 cdrom_load_next_cd 78 cdrom_load_next_cd
78 doins -r ${CDROM_ROOT}/movies || die "copying movies" 79 doins -r ${CDROM_ROOT}/movies || die "copying movies"
79 fi 80 fi
80 81
81 cd ${S}/a 82 cd "${S}"/a
82 bin/Linux/x86/loki_patch --verify patch.dat 83 bin/Linux/x86/loki_patch --verify patch.dat
83 bin/Linux/x86/loki_patch patch.dat ${Ddir} >& /dev/null || die "patching a" 84 bin/Linux/x86/loki_patch patch.dat "${Ddir}" >& /dev/null || die "patching a"
84 cd ${S}/b 85 cd "${S}"/b
85 bin/Linux/x86/loki_patch --verify patch.dat 86 bin/Linux/x86/loki_patch --verify patch.dat
86 bin/Linux/x86/loki_patch patch.dat ${Ddir} >& /dev/null || die "patching b" 87 bin/Linux/x86/loki_patch patch.dat "${Ddir}" >& /dev/null || die "patching b"
87 88
88 # now, since these files are coming off a cd, the times/sizes/md5sums wont 89 # now, since these files are coming off a cd, the times/sizes/md5sums wont
89 # be different ... that means portage will try to unmerge some files (!) 90 # be different ... that means portage will try to unmerge some files (!)
90 # we run touch on ${D} so as to make sure portage doesnt do any such thing 91 # we run touch on ${D} so as to make sure portage doesnt do any such thing
91 find ${Ddir} -exec touch '{}' \ 92 find "${Ddir}" -exec touch '{}' \
92 93
93 if use amd64 94 if use amd64
94 then 95 then
95 dosym /usr/$(get_libdir)/loki_libsmpeg-0.4.so.0 \ 96 dosym /usr/$(get_libdir)/loki_libsmpeg-0.4.so.0 \
96 ${dir}/libsmpeg-0.4.so.0 || die "failed compatibility symlink" 97 "${dir}"/libsmpeg-0.4.so.0 || die "failed compatibility symlink"
97 fi 98 fi
98 99
99 games_make_wrapper descent3 ./descent3.dynamic "${dir}" "${dir}" 100 games_make_wrapper descent3 ./descent3.dynamic "${dir}" "${dir}"
100 newicon ${CDROM_ROOT}/icon.xpm ${PN}.xpm 101 newicon ${CDROM_ROOT}/icon.xpm ${PN}.xpm
101 102
102 # Fix for 2.6 kernel crash 103 # Fix for 2.6 kernel crash
103 cd ${Ddir} 104 cd "${Ddir}"
104 ln -sf ppics.hog PPics.Hog 105 ln -sf ppics.hog PPics.Hog
105 106
106 prepgamesdirs 107 prepgamesdirs
107 make_desktop_entry ${PN} "Descent 3" ${PN} 108 make_desktop_entry ${PN} "Descent 3" ${PN}
108} 109}

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.20