From 40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 28 Apr 2021 20:21:43 +0100 Subject: gentoo resync : 28.04.2021 --- games-strategy/dominions2/Manifest | 2 +- .../dominions2/dominions2-2.16-r1.ebuild | 102 +++++++++++++++++++++ games-strategy/dominions2/dominions2-2.16.ebuild | 102 --------------------- 3 files changed, 103 insertions(+), 103 deletions(-) create mode 100644 games-strategy/dominions2/dominions2-2.16-r1.ebuild delete mode 100644 games-strategy/dominions2/dominions2-2.16.ebuild (limited to 'games-strategy/dominions2') diff --git a/games-strategy/dominions2/Manifest b/games-strategy/dominions2/Manifest index a67fa6e3e648..a90edfe439f5 100644 --- a/games-strategy/dominions2/Manifest +++ b/games-strategy/dominions2/Manifest @@ -3,5 +3,5 @@ DIST dominions2.png 1135 BLAKE2B 4bfbe3fcdded6eec7a3eea6c9b3dc8b2ae9be2a9f932957 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 +EBUILD dominions2-2.16-r1.ebuild 2601 BLAKE2B 828a339a444fb29f83636f051792f5d78410ec10495e6788bfeb38a2b707d123f8ec016cfd0ea3df722302c620c84c7bfaceeb447c3f5a6457c963c5a193f408 SHA512 805095ea10b0f6c20a80d9664c51fe16b4ecff9c01d8066dc47bcd8d62cd8e66e5f0bc7a4d6cfcbddf5387fac3bf74b28d52f0772a35e18a2a5191a639b8cba2 MISC metadata.xml 249 BLAKE2B 7113a758d7abc93accec998a8843d8ef51ca8b72d72e659e224d5cec2a1a6a63e6c0605958091532ac6e51fa0d501ca4fd9f3f4a9e55baeb31519a02971b465f SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 diff --git a/games-strategy/dominions2/dominions2-2.16-r1.ebuild b/games-strategy/dominions2/dominions2-2.16-r1.ebuild new file mode 100644 index 000000000000..0f7d0a64c0f4 --- /dev/null +++ b/games-strategy/dominions2/dominions2-2.16-r1.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cdrom desktop wrapper + +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=opt/${PN} +Ddir="${ED}"/${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/${PF}'" + 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 '{}' \; || die + + make_wrapper dominions2 ./dom2 "${dir}" "${dir}" + make_desktop_entry dominions2 "Dominions II" dominions2 +} + +pkg_postinst() { + elog "To play the game run:" + elog " dominions2" +} diff --git a/games-strategy/dominions2/dominions2-2.16.ebuild b/games-strategy/dominions2/dominions2-2.16.ebuild deleted file mode 100644 index eca8acd9d25d..000000000000 --- a/games-strategy/dominions2/dominions2-2.16.ebuild +++ /dev/null @@ -1,102 +0,0 @@ -# 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 -} -- cgit v1.2.3