Portage is a package management system used by Gentoo Linux
# ChangeLog for games-strategy/dominions2
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/games-strategy/dominions2/ChangeLog,v 1.8 2008/02/29 19:47:05 carlo Exp $
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
28 Feb 2007; Tristan Heaven
Fix quoting, bug #168723
21 Feb 2007; Piotr JaroszyĆski
Transition to Manifest2.
31 Mar 2006; Chris Gianelloni
dominions2-2.16.ebuild:
Changed nostrip to strip.
27 Mar 2006; Chris Gianelloni
dominions2-2.16.ebuild:
Fixed dependencies on media-libs/libsdl and migrated to modular X.
21 Oct 2005; Chris Gianelloni
dominions2-2.16.ebuild:
Added addition dir variable to games_make_wrapper for bug #109793.
*dominions2-2.16 (05 Oct 2005)
05 Oct 2005; Chris Gianelloni
+dominions2-2.16.ebuild:
Initial import. Ebuild by Alex Linke
by me. Tested on amd64 and x86. Closing bug #36706.
DIST DOM2_Walkthrough.pdf 549897 RMD160 2a76908de52bb4bbf579a997af0cdaab6ec2e03c SHA1 f187ce80e31cfb05ce84d401c0b88526e29856e9 SHA256 f6a3400f3fe03b89f23ec8c4492561bd58c684790f99669de0d7f1d08ff31855
DIST dominions2.png 1135 RMD160 b6c46e74fbe21c915041b725f80fb5b1f3ef2fa3 SHA1 85becfc5cdf4258e531d825611dc9f192b5f0200 SHA256 530479327df7f2940a28eabb09217350fcc6009d0e81a9078d09d6b6515f6dc4
DIST dompatch216_linux_ppc.tgz 1982323 RMD160 2bfd12c27a6f1811037bd96536ed307b5b0cd590 SHA1 51faa7bf6fb744f570167ea21462f211f50313a8 SHA256 224e1cd46d8078798f185ca956a137fdf3b76b339f49cc5b2f3304d553ea0ad9
DIST dompatch216_linux_x86.tgz 1892714 RMD160 75b4577dc8e4e8a8314c15f5767f892a423b3da7 SHA1 3ce92e41d71faa59f45b8826a1d3226df7bc873a SHA256 19efb6b3db9fdfdf752ac53dd4352df990b95f84a37cfc61f729ce77ae142dc1
DIST manual_addenda.pdf 192454 RMD160 fb8e157e0d5099dc4c56b350db4dd22aaf986a85 SHA1 50d4e709f47377575705c6cacab80feb1acce0d1 SHA256 ecbed702d1dae4ef2a08a33d03fb4b92aec8cd39df48ac085ed2748dcd159ab4
EBUILD dominions2-2.16.ebuild 2872 RMD160 61b2a75d73782c39848f0f8fa679bee01b773da1 SHA1 55ec4858754a6814f7a322e9b83756ad94776b70 SHA256 0a9c8e04b766ef0e3266f792ad1dda5b491017a62ea5823355ec92c1f2a51f16
MISC ChangeLog 1325 RMD160 339635e58b69aeefcb23e2ec1807c7bcc334953c SHA1 b21962cc81f84c5e8e979292857b439322771ad6 SHA256 b8ecf004e94cd9a76f9fd064e98755ae8381689c3bf2c6d0f2a553e477a81001
MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-strategy/dominions2/dominions2-2.16.ebuild,v 1.8 2008/02/29 19:47:05 carlo Exp $
inherit eutils games
DESCRIPTION="Dominions 2: The Ascension Wars is an epic turn-based fantasy strategy game"
HOMEPAGE="http://www.shrapnelgames.com/Illwinter/d2/"
SRC_URI="x86? (
http://www.shrapnelgames.com/downloads/dompatch${PV/\./}_linux_x86.tgz )
amd64? (
http://www.shrapnelgames.com/downloads/dompatch${PV/\./}_linux_x86.tgz )
ppc? (
http://www.shrapnelgames.com/downloads/dompatch${PV/\./}_linux_ppc.tgz )
doc? ( http://www.shrapnelgames.com/downloads/DOM2_Walkthrough.pdf
http://www.shrapnelgames.com/downloads/manual_addenda.pdf )
mirror://gentoo/${PN}.png"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="doc"
RESTRICT="strip"
# I am not sure what license applies to Dominions II and I couldn't find
# further information on their homepage or on the game CD :(
LICENSE="as-is"
DEPEND="virtual/opengl
virtual/glu
x86? ( media-libs/libsdl )
ppc? ( media-libs/libsdl )
amd64? ( app-emulation/emul-linux-x86-xlibs
app-emulation/emul-linux-x86-sdl )"
dir=${GAMES_PREFIX_OPT}/${PN}
Ddir=${D}/${dir}
src_unpack() {
mkdir -p "${S}"/patch
cd "${S}"/patch
if use x86 || use amd64
then
unpack dompatch${PV/\./}_linux_x86.tgz
elif use ppc
then
unpack dompatch${PV/\./}_linux_ppc.tgz
fi
}
src_install() {
cdrom_get_cds dom2icon.ico
einfo "Copying files to harddisk... this may take a while..."
exeinto "${dir}"
if use amd64 || use x86
then
doexe "${CDROM_ROOT}"/bin_lin/x86/dom2* || die "doexe failed"
elif use ppc
then
doexe "${CDROM_ROOT}"/bin_lin/ppc/dom2* || die "doexe failed"
fi
insinto "${dir}"
doins -r "${CDROM_ROOT}"/dominions2.app/Contents/Resources/* || \
die "doins failed"
dodoc "${CDROM_ROOT}"/doc/* || die "dodoc failed"
# applying the official patches just means overwriting some important
# files with their more recent versions:
einfo "Applying patch for version ${PV}..."
dodoc "${S}"/patch/doc/* || die "dodoc failed"
doexe "${S}"/patch/dom2 || die "doexe failed"
rm -rf "${S}"/patch/doc/ "${S}"/patch/dom2 || die "rm failed"
doins -r "${S}"/patch/* || die "doins failed"
if use doc; then
elog ""
elog "Installing extra documentation to '/usr/share/doc/${P}'"
elog ""
elog "You may want to study 'DOM2_Walkthrough.pdf' carefully if"
elog "you are new to Dominions II."
elog ""
dodoc "${DISTDIR}"/{DOM2_Walkthrough,manual_addenda}.pdf
fi
doicon "${DISTDIR}"/${PN}.png
# update times
find "${D}" -exec touch '{}' \;
games_make_wrapper dominions2 ./dom2 "${dir}" "${dir}"
make_desktop_entry dominions2 "Dominions II" dominions2
prepgamesdirs
}
pkg_postinst() {
games_pkg_postinst
elog "To play the game run:"
elog " dominions2"
echo
}