summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2007-12-12 06:36:23 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2007-12-12 06:36:23 +0000
commit4053933d759547aa01b153923e1073f8f8cb54de (patch)
treed2c8745482334b199c3fbdff474cb4867586bdc7 /games-strategy/smac
parenttidy (diff)
downloadgentoo-2-4053933d759547aa01b153923e1073f8f8cb54de.tar.gz
gentoo-2-4053933d759547aa01b153923e1073f8f8cb54de.tar.bz2
gentoo-2-4053933d759547aa01b153923e1073f8f8cb54de.zip
quoting
(Portage version: 2.1.3.19)
Diffstat (limited to 'games-strategy/smac')
-rw-r--r--games-strategy/smac/smac-6.0a.ebuild45
1 files changed, 22 insertions, 23 deletions
diff --git a/games-strategy/smac/smac-6.0a.ebuild b/games-strategy/smac/smac-6.0a.ebuild
index 57c0d2b4090e..d1fd02d81185 100644
--- a/games-strategy/smac/smac-6.0a.ebuild
+++ b/games-strategy/smac/smac-6.0a.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/smac/smac-6.0a.ebuild,v 1.13 2007/03/12 18:11:40 genone Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/smac/smac-6.0a.ebuild,v 1.14 2007/12/12 06:36:23 mr_bones_ Exp $
inherit eutils games
@@ -33,44 +33,43 @@ Ddir=${D}/${dir}
src_unpack() {
cdrom_get_cds Alien_Crossfire_Manual.pdf
- mkdir -p ${S}/a
- cd ${S}/a
+ mkdir -p "${S}"/a
+ cd "${S}"/a
unpack_makeself ${P}-x86.run
}
src_install() {
- dodir ${dir}
einfo "Copying files... this may take a while..."
- exeinto ${dir}
- doexe ${CDROM_ROOT}/bin/x86/{smac,smacx,smacpack}
+ exeinto "${dir}"
+ doexe "${CDROM_ROOT}"/bin/x86/{smac,smacx,smacpack}
- insinto ${dir}
+ insinto "${dir}"
doins ${CDROM_ROOT}/{{Alien_Crossfire,Alpha_Centauri}_Manual.pdf,QuickStart.txt,README,icon.{bmp,xpm}}
- cd ${Ddir}
- tar xzf ${CDROM_ROOT}/data.tar.gz || die "unpack"
- insinto ${dir}/data
- doins ${CDROM_ROOT}/data/*.{pcx,cvr,flc,gif} || die "copying data"
- doins -r ${CDROM_ROOT}/data/facs || die "copying fac-data"
- doins -r ${CDROM_ROOT}/data/fx || die "copying fx-data"
- doins -r ${CDROM_ROOT}/data/projs || die "copying projects-data"
- doins -r ${CDROM_ROOT}/data/techs || die "copying tech-data"
- doins -r ${CDROM_ROOT}/data/voices || die "copying voices"
+ cd "${Ddir}"
+ tar xzf "${CDROM_ROOT}"/data.tar.gz || die "unpack"
+ insinto "${dir}"/data
+ doins "${CDROM_ROOT}"/data/*.{pcx,cvr,flc,gif} || die "copying data"
+ doins -r "${CDROM_ROOT}"/data/facs || die "copying fac-data"
+ doins -r "${CDROM_ROOT}"/data/fx || die "copying fx-data"
+ doins -r "${CDROM_ROOT}"/data/projs || die "copying projects-data"
+ doins -r "${CDROM_ROOT}"/data/techs || die "copying tech-data"
+ doins -r "${CDROM_ROOT}"/data/voices || die "copying voices"
if use videos ; then
- doins -r ${CDROM_ROOT}/data/movies || die "copying movies"
+ doins -r "${CDROM_ROOT}"/data/movies || die "copying movies"
fi
- cd ${S}/a
+ cd "${S}"/a
loki_patch --verify patch.dat
loki_patch patch.dat ${Ddir} >& /dev/null || die "patching"
# now, since these files are coming off a cd, the times/sizes/md5sums wont
# be different ... that means portage will try to unmerge some files (!)
# we run touch on ${D} so as to make sure portage doesnt do any such thing
- find ${Ddir} -exec touch '{}' \;
+ find "${Ddir}" -exec touch '{}' \;
- newicon ${CDROM_ROOT}/icon.xpm smac.xpm
+ newicon "${CDROM_ROOT}"/icon.xpm smac.xpm
games_make_wrapper ${PN} ./${PN} "${dir}" "${dir}"
games_make_wrapper ${PN}x ./${PN}x "${dir}" "${dir}"
@@ -80,9 +79,9 @@ src_install() {
prepgamesdirs
einfo "Linking libs provided by 'sys-libs/lib-compat-loki' to '${dir}'."
- dosym /lib/loki_ld-linux.so.2 ${dir}/ld-linux.so.2 && \
- dosym /usr/lib/loki_libc.so.6 ${dir}/libc.so.6 && \
- dosym /usr/lib/loki_libnss_files.so.2 ${dir}/libnss_files.so.2 || die "dosym failed"
+ dosym /lib/loki_ld-linux.so.2 "${dir}"/ld-linux.so.2 && \
+ dosym /usr/lib/loki_libc.so.6 "${dir}"/libc.so.6 && \
+ dosym /usr/lib/loki_libnss_files.so.2 "${dir}"/libnss_files.so.2 || die "dosym failed"
}
pkg_postinst() {