diff options
Diffstat (limited to 'games-strategy/dominions2/dominions2-2.16.ebuild')
-rw-r--r-- | games-strategy/dominions2/dominions2-2.16.ebuild | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/games-strategy/dominions2/dominions2-2.16.ebuild b/games-strategy/dominions2/dominions2-2.16.ebuild new file mode 100644 index 000000000000..7f3734d7ba5c --- /dev/null +++ b/games-strategy/dominions2/dominions2-2.16.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2005 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.1 2005/10/05 15:58:31 wolf31o2 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" + +RESTRICT="nostrip" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="doc" + +# 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/x11 + virtual/opengl + virtual/glu + amd64? ( app-emulation/emul-linux-x86-xlibs + app-emulation/emul-linux-x86-sdl )" + +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..." + + DOM2DIR="${GAMES_PREFIX_OPT}/${PN}" + dodir ${DOM2DIR} + exeinto ${DOM2DIR} + 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 ${DOM2DIR} + 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 + einfo "" + einfo "Installing extra documentation to '/usr/share/doc/${P}'" + einfo "" + einfo "You may want to study 'DOM2_Walkthrough.pdf' carefully if" + einfo "you are new to Dominions II." + einfo "" + dodoc ${DISTDIR}/{DOM2_Walkthrough,manual_addenda}.pdf + fi + + doicon ${DISTFILES}/${PN}.png + + # update times + find ${D} -exec touch '{}' \; + + games_make_wrapper dominions2 ./dom2 ${DOM2DIR} + make_desktop_entry dominions2 "Dominions II" dominions2.png + + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + einfo "To play the game run:" + einfo " dominions2" + echo +} |