diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-action/heretic2 | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'games-action/heretic2')
-rw-r--r-- | games-action/heretic2/Manifest | 5 | ||||
-rw-r--r-- | games-action/heretic2/heretic2-1.06c-r1.ebuild | 84 | ||||
-rw-r--r-- | games-action/heretic2/metadata.xml | 8 |
3 files changed, 97 insertions, 0 deletions
diff --git a/games-action/heretic2/Manifest b/games-action/heretic2/Manifest new file mode 100644 index 000000000000..efbf3772cc08 --- /dev/null +++ b/games-action/heretic2/Manifest @@ -0,0 +1,5 @@ +DIST heretic2-1.06b-unified-x86.run 4718161 BLAKE2B 880b8c9468bf98a95cc0e31e9d1853de6f0f7e9d205518043ab243f81f760e588655b85bf7a2e1983ff738072adaa731a9488e00d342ec86be41f1b5aa32087f SHA512 7dcd4f8f87d526db7ea9fd647e4807d4e1a404a612460f8dcc0d0360964ef0d4c721e9c62b58cd1764c1e2c71ad1539c6aac5083fadc7a85ec4c12c8aa7b338f +DIST heretic2-1.06c-unified-x86.run 3667873 BLAKE2B f492aec1d290ccf32a63d5a4ff017168ba89435db63124ce9de93ebe9c5284cf6dbabe0355fbad6a52f20d646194a9fd5014c1030abc1946961f922ae57e810f SHA512 e855c573d6e215e18d80143d1850e890349f941462a5d2d59c57a02f11a39967fd633efdfe46199d588e97cc99322d539ac50fc7bc7fa6d7e116e99f5a532de4 +DIST heretic2-maps-1.0.run 6257076 BLAKE2B 15151d80027f4912fab919526e4b91cacb87adeee7cb97e50b1ad5cfa905059c169705fd40ec3330b58996fac167822bc93af49c01fbbb61e4ace73309932cc2 SHA512 ba570caeae6bbe4a97bfe937353014dc9ddcc5a007b0fd1911ab1494667d2dae263d727190e7172d35639511a6383ff35eea5622cdc2e124e3793daef3c8e607 +EBUILD heretic2-1.06c-r1.ebuild 1790 BLAKE2B 1d0ee015a2235d76172b62af841e892dd7357b7f1628f9c5f955b07d828ff1024c1790bbe8b274f3ba758fc1b90e198e44f8aa6d284ac16292f8a4a50afea702 SHA512 2d197ecc09bbfbcfa09e3d4f1b7daadc6fce99189dd6ebbed14141dc377ed9f83b028c81868934493d90dc126f551a8f155ea9f267c4cf53a926c7e7291462b9 +MISC metadata.xml 252 BLAKE2B 1b951d2e730631865ae5f379b19ed9de2c8adf2f2786da3f75d0871d967374198ddd9106433f388bdc7050c37063fb28cda4320ae7bdc9a03854838693d9f952 SHA512 90798aff93ec7e3881b882e7b10bb1680e8cb7d82b0ef4280e562ab0c9e8a2daba8afe57333dc64697322267a4b651c00ee9b4fdeb56278ff70c073da7b91638 diff --git a/games-action/heretic2/heretic2-1.06c-r1.ebuild b/games-action/heretic2/heretic2-1.06c-r1.ebuild new file mode 100644 index 000000000000..dc1322e89355 --- /dev/null +++ b/games-action/heretic2/heretic2-1.06c-r1.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils unpacker cdrom multilib games + +DESCRIPTION="Third-person classic magical action-adventure game" +HOMEPAGE="http://lokigames.com/products/heretic2/ + http://www.ravensoft.com/heretic2.html" +SRC_URI="mirror://lokigames/${PN}/${P/%?/b}-unified-x86.run + mirror://lokigames/${PN}/${P}-unified-x86.run + mirror://lokigames/${PN}/${PN}-maps-1.0.run" + +LICENSE="LOKI-EULA" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +RESTRICT="strip" +QA_TEXTRELS="${GAMES_PREFIX_OPT:1}/${PN}/base/*.so" + +DEPEND="games-util/loki_patch" +RDEPEND="virtual/opengl + amd64? ( + >=virtual/opengl-7.0-r1[abi_x86_32(-)] + >=x11-libs/libX11-1.6.2[abi_x86_32(-)] + >=x11-libs/libXext-1.3.2[abi_x86_32(-)] + ) + x86? ( + x11-libs/libX11 + x11-libs/libXext + )" + +S=${WORKDIR} + +src_unpack() { + cdrom_get_cds bin/x86/glibc-2.1/${PN} + mkdir ${A} + + local f + for f in * ; do + cd "${S}"/${f} + unpack_makeself ${f} + done +} + +src_install() { + has_multilib_profile && ABI=x86 + + local dir=${GAMES_PREFIX_OPT}/${PN} + + cd "${CDROM_ROOT}" + + insinto "${dir}" + doins -r base help Manual.html README README.more + + exeinto "${dir}" + doexe bin/x86/glibc-2.1/${PN} + + games_make_wrapper ${PN} ./${PN} "${dir}" "${dir}" + sed -i \ + -e 's/^exec /__GL_ExtensionStringVersion=17700 exec /' \ + "${D}/${GAMES_BINDIR}/${PN}" || die + newicon icon.xpm ${PN}.xpm + make_desktop_entry ${PN} "Heretic II" + + cd "${D}/${dir}" + ln -s "${CDROM_ROOT}"/*.gz . + unpack ./*.gz + rm -f *.gz + + local d + for d in "${S}"/* ; do + pushd "${d}" > /dev/null + loki_patch patch.dat "${D}/${dir}" || die + popd > /dev/null + done + + rmdir gl_drivers + sed -i \ + "128i set gl_driver \"/usr/$(get_libdir)/libGL.so\"" \ + base/default.cfg || die + + prepgamesdirs +} diff --git a/games-action/heretic2/metadata.xml b/games-action/heretic2/metadata.xml new file mode 100644 index 000000000000..3c186688e265 --- /dev/null +++ b/games-action/heretic2/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> |