Portage is a package management system used by Gentoo Linux
# ChangeLog for games-strategy/smac
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/games-strategy/smac/ChangeLog,v 1.14 2008/03/11 06:19:56 wolf31o2 Exp $
11 Mar 2008; Chris Gianelloni
QA cleanup: Fix quoting.
29 Feb 2008; Carsten Lohrke
Remove icon extension from desktop entry to match Icon Theme Specification.
12 Mar 2007; Marius Mauch
Replacing einfo with elog
22 Feb 2007; Piotr JaroszyĆski
Transition to Manifest2.
06 Dec 2006; Chris Gianelloni
Remove old virtual/x11 dependency.
24 Oct 2006; Chris Gianelloni
Moved cdrom_get_cds to src_unpack since binary packages don't require the
original media to install.
17 Apr 2006; Chris Gianelloni
Moved games_pkg_setup to beginning of pkg_setup.
31 Mar 2006; Chris Gianelloni
Changed nostrip to strip.
27 Mar 2006; Chris Gianelloni
Moved games_pkg_postinst to beginning of pkg_postinst.
22 Jan 2006; Chris Gianelloni
Added modular X dependencies and closing bug #118259.
09 Dec 2005; Chris Gianelloni
Updated ebuild with proper dependencies and closing bug #114803.
21 Oct 2005; Chris Gianelloni
Added addition dir variable to games_make_wrapper for bug #109793.
27 Sep 2005; Chris Gianelloni
Changed to use new lokigames mirror:// setup.
*smac-6.0a (09 Sep 2005)
09 Sep 2005; Chris Gianelloni
+smac-6.0a.ebuild:
Initial import. Ebuild by
Closing bug #98687 and bug #31395.
DIST smac-6.0a-x86.run 6801730 RMD160 323e1958a9a48b7ce6c76ce07da9718fc1b796d9 SHA1 2cc8a3112c28c72548b9fa485cd28fa7ba6126a3 SHA256 69b845728f55caef038c6392f148beae47156933f5bff0ce7d9c49162f1d0ee7
EBUILD smac-6.0a.ebuild 2861 RMD160 ca7ee3c6d4a86f837f8c7ae18dc00af849ceb152 SHA1 0f4705c48cd2ce1b6f19b775dc6a11ffc4036d39 SHA256 50ec4af8e063a64c614b08c2674f6e503744cb11129624e2ffc45b298345f275
MISC ChangeLog 2054 RMD160 c203141271001c573a48bd02bec7e463299162ee SHA1 0d981e38b9047b0491dd21a1b3ed4588859a4fec SHA256 dda164405d9471b141b12a7f49289438cc5330d5c23d501c588ac2e2312f236c
MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3
# Copyright 1999-2008 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.16 2008/03/11 06:19:56 wolf31o2 Exp $
inherit eutils games
DESCRIPTION="Linux port of the popular strategy game from Firaxis"
HOMEPAGE="http://www.lokigames.com/products/smac/"
SRC_URI="mirror://lokigames/${PN}/${P}-x86.run"
LICENSE="LOKI-EULA"
SLOT="0"
KEYWORDS="~x86"
IUSE="videos"
RESTRICT="strip"
DEPEND="games-util/loki_patch"
RDEPEND="sys-libs/glibc
x11-libs/libX11
x11-libs/libXext
x11-libs/libXau
x11-libs/libXdmcp
sys-libs/lib-compat-loki
media-libs/libsdl
media-libs/sdl-ttf
media-libs/sdl-mixer
media-libs/smpeg
media-libs/freetype
sys-libs/zlib"
dir=${GAMES_PREFIX_OPT}/${PN}
Ddir=${D}/${dir}
src_unpack() {
cdrom_get_cds Alien_Crossfire_Manual.pdf
mkdir -p "${S}"/a
cd "${S}"/a
unpack_makeself ${P}-x86.run
}
src_install() {
einfo "Copying files... this may take a while..."
exeinto "${dir}"
doexe "${CDROM_ROOT}"/bin/x86/{smac,smacx,smacpack}
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"
if use videos ; then
doins -r "${CDROM_ROOT}"/data/movies || die "copying movies"
fi
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 '{}' \;
newicon "${CDROM_ROOT}"/icon.xpm smac.xpm
games_make_wrapper ${PN} ./${PN} "${dir}" "${dir}"
games_make_wrapper ${PN}x ./${PN}x "${dir}" "${dir}"
make_desktop_entry smac "Sid Meier's Alpha Centauri" smac
make_desktop_entry smacx "Sid Meier's Alpha Centauri - Alien Crossfire" smac
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"
}
pkg_postinst() {
games_pkg_postinst
elog "To play Sid Meyer's Alpha Centauri run:"
elog " smac"
elog "To play Alien Crossfire run:"
elog " smacx"
}