summaryrefslogtreecommitdiff
path: root/games-strategy/dominions2
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-strategy/dominions2
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'games-strategy/dominions2')
-rw-r--r--games-strategy/dominions2/Manifest7
-rw-r--r--games-strategy/dominions2/dominions2-2.16.ebuild102
-rw-r--r--games-strategy/dominions2/metadata.xml8
3 files changed, 117 insertions, 0 deletions
diff --git a/games-strategy/dominions2/Manifest b/games-strategy/dominions2/Manifest
new file mode 100644
index 000000000000..a67fa6e3e648
--- /dev/null
+++ b/games-strategy/dominions2/Manifest
@@ -0,0 +1,7 @@
+DIST DOM2_Walkthrough.pdf 549897 BLAKE2B e61df06eae7bf392c4d3f2871d5a6473bba43fc6169617fc56aedd890131a14b2135295fc908bceb9406bb98bfff701d59958776ec0653508ec22e2f57f9ea88 SHA512 cc73bd7e95d8ce1528196f00d91d88a018b88471edade76672feb53b6ff728c9cc5f02e333312533a72842186833669ec290abffa8f51feb15e224b455987b39
+DIST dominions2.png 1135 BLAKE2B 4bfbe3fcdded6eec7a3eea6c9b3dc8b2ae9be2a9f932957d29fedce61cc78f57ae67945903e7d0d5788c37ad76fe053f41c182ef0d0ba38002442e5b99367429 SHA512 1241c64a4acdd4740cc9440ba286b595c2e00a41182c014ef06b7184c3991f2df44e4677f3408b28cd25f928337a60c1e2859486c057ee3bdd393fb99b8d347f
+DIST dompatch216_linux_ppc.tgz 1982323 BLAKE2B 2d56f278fcf188a8e8aa32032872359fa57204d26a37e3b5369367e8297d1f6fb1adc290328ea052be57928efd6c42642294bb62f5b3d209f9028da5c3293bb1 SHA512 6b1ff8b5a041c42193b8f369ee0ff242048fd589ffd9b610628a7bf7a0d159fe6e590b04b914ecbf3b94ef2b94a66a062be84d595777127d8f11311fa92c3ae9
+DIST dompatch216_linux_x86.tgz 1892714 BLAKE2B 72102240b577f696a96ee4ee493180621b5ca65c2fb1394e355210aa3e3ae145e9d8501dff95ffd185344b4259d6df622844504022d9f3475564a6eafc890367 SHA512 9bb2a024235585181f91d8414c07ce8c490fed5ddab9d25817b7ea01618f0f2cf8714fb39a4406abe88e25b354f14ba1ef2db79c39d4c30b4e399d1b60477c2d
+DIST manual_addenda.pdf 192454 BLAKE2B c0fe48855fa8f20cf44c4de3b475494cfa75ba17737f6eab2d537d63fdb7346194a59d3280ad29de1bff1283f3a496a36a8c946841f608a36facb4bbb1719f8b SHA512 ec582e9685edf7164ba8e7c6c99880b30c8a6737d2d339eec2642196abd175857bfef2e1ea3da3ccb0110d441c477c8fad64d47fbb8b1aa39b405484eb548443
+EBUILD dominions2-2.16.ebuild 2650 BLAKE2B a74ba0e758187643a3c69a02825e4adb2c97ae2def4e4f9ceda4a4e71d28a013c40be1881f00e21839fe40568f426db0e9ba9fab89f4051ab110e9b81cef3e01 SHA512 3350412fb2f8679d591441320e6139fd83bde6e74e6ee0ee7c76a6f720b67c30ba59ee85b8bebdb6af7e6c22c53ab71a29eff8461c08f884d150412c08ff6e01
+MISC metadata.xml 249 BLAKE2B 7113a758d7abc93accec998a8843d8ef51ca8b72d72e659e224d5cec2a1a6a63e6c0605958091532ac6e51fa0d501ca4fd9f3f4a9e55baeb31519a02971b465f SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118
diff --git a/games-strategy/dominions2/dominions2-2.16.ebuild b/games-strategy/dominions2/dominions2-2.16.ebuild
new file mode 100644
index 000000000000..eca8acd9d25d
--- /dev/null
+++ b/games-strategy/dominions2/dominions2-2.16.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils cdrom games
+
+DESCRIPTION="Dominions 2: The Ascension Wars is an epic turn-based fantasy strategy game"
+HOMEPAGE="http://www.illwinter.com/dom2/index.html"
+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"
+
+# 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="all-rights-reserved"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+RESTRICT="bindist strip"
+
+RDEPEND="
+ || (
+ ppc? (
+ media-libs/libsdl
+ virtual/opengl
+ virtual/glu
+ )
+ !ppc? (
+ media-libs/libsdl[abi_x86_32(-)]
+ virtual/opengl[abi_x86_32(-)]
+ virtual/glu[abi_x86_32(-)]
+ )
+ )"
+
+dir=${GAMES_PREFIX_OPT}/${PN}
+Ddir=${D}/${dir}
+
+src_unpack() {
+ mkdir -p "${S}"/patch || die
+ cd "${S}"/patch || die
+ 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*
+ elif use ppc ; then
+ doexe "${CDROM_ROOT}"/bin_lin/ppc/dom2*
+ fi
+ insinto "${dir}"
+ doins -r "${CDROM_ROOT}"/dominions2.app/Contents/Resources/*
+ dodoc "${CDROM_ROOT}"/doc/*
+
+ # 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/*
+ doexe "${S}"/patch/dom2
+ rm -rf "${S}"/patch/doc/ "${S}"/patch/dom2 || die
+ doins -r "${S}"/patch/*
+
+ 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
+}
diff --git a/games-strategy/dominions2/metadata.xml b/games-strategy/dominions2/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-strategy/dominions2/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>