diff options
author | Sergey Popov <pinkbyte@gentoo.org> | 2012-09-22 01:59:43 +0000 |
---|---|---|
committer | Sergey Popov <pinkbyte@gentoo.org> | 2012-09-22 01:59:43 +0000 |
commit | 82a77ff9929b4d90bc9541b7ba3a579459a16f67 (patch) | |
tree | 5bf300f174611f59e5faab8ab099047ba585f773 /games-fps/serious-sam-tfe | |
parent | games-fps/serious-sam-tfe can not run on amd64 non-multilib profiles, so mask... (diff) | |
download | gentoo-2-82a77ff9929b4d90bc9541b7ba3a579459a16f67.tar.gz gentoo-2-82a77ff9929b4d90bc9541b7ba3a579459a16f67.tar.bz2 gentoo-2-82a77ff9929b4d90bc9541b7ba3a579459a16f67.zip |
Initial commit wrt bug #71436
(Portage version: 2.2.0_alpha129/cvs/Linux x86_64)
Diffstat (limited to 'games-fps/serious-sam-tfe')
-rw-r--r-- | games-fps/serious-sam-tfe/ChangeLog | 11 | ||||
-rw-r--r-- | games-fps/serious-sam-tfe/Manifest | 7 | ||||
-rw-r--r-- | games-fps/serious-sam-tfe/metadata.xml | 8 | ||||
-rw-r--r-- | games-fps/serious-sam-tfe/serious-sam-tfe-1_beta3.ebuild | 141 |
4 files changed, 167 insertions, 0 deletions
diff --git a/games-fps/serious-sam-tfe/ChangeLog b/games-fps/serious-sam-tfe/ChangeLog new file mode 100644 index 000000000000..a5b38591f0d0 --- /dev/null +++ b/games-fps/serious-sam-tfe/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for games-fps/serious-sam-tfe +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/serious-sam-tfe/ChangeLog,v 1.1 2012/09/22 01:59:43 pinkbyte Exp $ + +*serious-sam-tfe-1_beta3 (22 Sep 2012) + + 22 Sep 2012; Sergey Popov <pinkbyte@gentoo.org> + +serious-sam-tfe-1_beta3.ebuild, +metadata.xml: + Initial commit wrt bug #71436. Thanks to all those people who helps writing + this ebuild + diff --git a/games-fps/serious-sam-tfe/Manifest b/games-fps/serious-sam-tfe/Manifest new file mode 100644 index 000000000000..e9d5a3fc5cf0 --- /dev/null +++ b/games-fps/serious-sam-tfe/Manifest @@ -0,0 +1,7 @@ +DIST ssam-tfe-lnx-beta1a.run 8802528 SHA256 844b0387696e6e217285833fa7506e1a2d2494a38d5e843edb3a063bce32b7ea SHA512 dfef0c34a6f96e296272a1e82a3ffeaa3fde4a7affc8290f6d1878e5c65855ec24ab57fe895b62795369acf11fdfbc93e47c8cfaf362d531fbccca9aadb8f0fc WHIRLPOOL 95de7e653d896fa67b50640083b44f685eec70e425accb671470853345d0ef8dcb5d00abf853059c5559521c28c5bd4de8d7322c0352ca132289d315410c464f +DIST ssamtfe-beta1b.sh.bin 1799399 SHA256 712309ac99ed139ffbd91360167c5e82d7fb8378b005c9873e835f581011b619 SHA512 c7f416b2b21443c2092ebe8806757b59d19b286956f6c2ce74b77f9aaf4ec6a0ff3cd1db888bdb39cc8b427238c4a851c875bc9c9ec4733c82a557231391a346 WHIRLPOOL 4b095d4a96a9dae1d474a8a73c23b76154fcc3d9567a5f2b926abadd5ab86675458fdb48504a5ce4f340d632e9eac0c06530168c47f910c0208a53e6401eed3e +DIST ssamtfe-beta2.sh.bin 3083565 SHA256 6e43a8f536423f5d675a339925516d608f1f4ace9ad360674956b5f9cc3376b6 SHA512 9e592d8c47d169738eb9b0c7c3ee4960fdf1f0427d53ed1d5918934ecd0fe0f81c34798de7410f971e36b7b11f7a569fdcb74136610bde0472d059c529c826c5 WHIRLPOOL 1702ee0537a9193084703e4cbe0fbdc0153db446b5b42be6cd2bcca028a9729e4aba0b9f46c3a03e71898aa00b3bfacb6a71fb023c0c70a51813cfc64b69e43e +DIST ssamtfe-beta3.sh.bin 3828409 SHA256 609f5b5fd21821e6a079b36770d9dbdcabc5e64ed6ac190d4005df5ec22e980f SHA512 a3055cab0a5162358ae7696eac5613a344a3ab2a1369f3693e56647650f4d21ebc566ee99fb5f03885b4416aec830d93b00e838d9ebb8187924918b333b072a2 WHIRLPOOL 9a8db0a4a47b695f9389aefc1dca04689129269f820d3bc392834443eb8d1d051a972f82aaeace15250715fd9a263fe3f1ebe846c3b349e66971160e47e73fed +EBUILD serious-sam-tfe-1_beta3.ebuild 3200 SHA256 8194fa3b1d6ccb621fde36d2a2f8361ac114524a8777e95f90d35b8e10137317 SHA512 69f4e9b9f6e0bc36060d4c5b2e1dc19866f4a54a50e6b65b7f666f04390051421ef77375c152387f8211c690120398183e892c8eaf669013dc0ac44266a36632 WHIRLPOOL aee87290331dd17e63bb698e7ea4a6a5c9427775e21aaf4ba6474a7e7c2df5ae56cd99167bec5c168c142fed80b64639cf3fb8c9fc0f56edc6466833560c9234 +MISC ChangeLog 359 SHA256 e322c0a079761017513355f826b5cd4bb064488e61e1f71d688b98f1953333ac SHA512 13c3cb3f9754eb89c799365321cfca809b4e750a8c77647071f76448a61fca6b53100f98a356db057aebeec868affb99ce36fad0d76c617be3ded294aab49f5e WHIRLPOOL 3463983630179e3bc4ce5b5876e5d1457bf5577ca24ee9f35eb5238aef9f3d8c8ba8c90b0b895f1d7031f8dacdef93cd4124e929ca997002b720f080ef8757b4 +MISC metadata.xml 233 SHA256 a93cf5c4e554b97b2a48b92f801e3a3d87833cac311db0160a387a757ab7054c SHA512 704c94018edcbc53edcf0a41c2603dd59ea217aa5871f35d4d17f7df26156b8fb0a735d2efb11b74256565db01e6790a833242de39c29a9e46ed8ed96d505334 WHIRLPOOL 57f455cf256b91fb72e642f5a861e7367961775f2ab992b8afc798ff376c9a2bc8860d09f2bc43c870531248484128c966f25a081b7789a31ba9fb4f52b5519c diff --git a/games-fps/serious-sam-tfe/metadata.xml b/games-fps/serious-sam-tfe/metadata.xml new file mode 100644 index 000000000000..b6b8956cde34 --- /dev/null +++ b/games-fps/serious-sam-tfe/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> + <email>pinkbyte@gentoo.org</email> + <name>Sergey Popov</name> + </maintainer> +</pkgmetadata> diff --git a/games-fps/serious-sam-tfe/serious-sam-tfe-1_beta3.ebuild b/games-fps/serious-sam-tfe/serious-sam-tfe-1_beta3.ebuild new file mode 100644 index 000000000000..5eda66f0a81f --- /dev/null +++ b/games-fps/serious-sam-tfe/serious-sam-tfe-1_beta3.ebuild @@ -0,0 +1,141 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/serious-sam-tfe/serious-sam-tfe-1_beta3.ebuild,v 1.1 2012/09/22 01:59:43 pinkbyte Exp $ + +EAPI="4" + +inherit cdrom eutils games unpacker + +MY_PN="ssamtfe" + +DESCRIPTION="Serious Sam: The First Encounter" +HOMEPAGE="http://www.croteam.com/ + http://www.seriouszone.com/ + http://icculus.org/betas/ssam/" +SRC_URI="http://icculus.org/betas/ssam/ssam-tfe-lnx-beta1a.run + http://icculus.org/updates/ssam/${MY_PN}-beta1b.sh.bin + http://icculus.org/updates/ssam/${MY_PN}-beta2.sh.bin + http://icculus.org/updates/ssam/${MY_PN}-beta3.sh.bin" +LICENSE="LOKI-EULA" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +RESTRICT="strip" +IUSE="alsa" + +RDEPEND="amd64? ( + app-emulation/emul-linux-x86-opengl + app-emulation/emul-linux-x86-sdl + app-emulation/emul-linux-x86-soundlibs + ) + x86? ( + alsa? ( + media-libs/libogg + media-libs/libsdl[alsa,audio] + media-libs/libvorbis + ) + media-libs/libsdl[X,joystick,opengl,video] + )" +DEPEND="games-util/loki_patch" + +S=${WORKDIR} + +QA_TEXTRELS=" +opt/ssamtfe/Bin/libGame.so +opt/ssamtfe/Bin/libEntities.so +opt/ssamtfe/Bin/libamp11lib.so +opt/ssamtfe/Bin/libShaders.so +" + +QA_FLAGS_IGNORED=" +opt/ssamtfe/Bin/libEntities.so +opt/ssamtfe/Bin/libGame.so +opt/ssamtfe/Bin/libamp11lib.so +opt/ssamtfe/Bin/libShaders.so +opt/ssamtfe/Bin/ssam_lnxded +opt/ssamtfe/Bin/ssam_lnxded.dynamic +opt/ssamtfe/Bin/ssam_lnx.dynamic +opt/ssamtfe/Bin/ssam_lnx +" + +pkg_setup() { + games_pkg_setup + + cdrom_get_cds "Install/1_00c.gro" +} + +src_unpack() { + mkdir Mods Levels + unpack_makeself ssam-tfe-lnx-beta1a.run + + # Copy files during unpack as the patches below apply to some of them + einfo "Copying from ${CDROM_ROOT}" + cp -r "${CDROM_ROOT}/Install"/* . || die "copy from CD failed" + + nonfatal unpack ./SeriousSamPatch105_USA_linux.tar.bz2 + unpack ./setupstuff.tar.gz + unpack ./bins.tar.bz2 + + # We need only runscript from bin/ directory + mv bin/${MY_PN} . + rm -r bin +} + +src_prepare() { + # Apply the Icculus patches + local v + for v in 1b 2 3 ; do + echo "Unpacking version ${v}" + unpack_makeself "${MY_PN}-beta${v}.sh.bin" + loki_patch patch.dat . || die "loki patch ${v} failed" + rm patch.dat + done + + # Remove unneeded files from Loki patches + rm -r bin + + # Switch to dynamic executable - runs at sane speeds on modern hardware + sed -i -e 's;exec "./ssam_lnx";exec "./ssam_lnx.dynamic";' ${MY_PN} \ + || die "dynamic binary update failed" +} + +src_install() { + local dir=${GAMES_PREFIX_OPT}/${MY_PN} + + # Remove bundled libs + rm Bin/{libogg,libvorbis,libvorbisfile}.so + + # Remove unneeded files + rm *.{bin,bz2,cab,exe,ex_,ini,gz,sh} + rm -r data setup* Players Temp + + # Install icon + newicon ssam.xpm ${MY_PN}.xpm + + # Install documentation + dodoc README* + + # Install all other files + insinto "${dir}" + doins -r * + + # Install executables and wrapper script + exeinto "${dir}" + doexe ${MY_PN} + exeinto "${dir}"/Bin + doexe Bin/ssam_lnx* + + games_make_wrapper ${MY_PN} ./${MY_PN} "${dir}" "${dir}" + make_desktop_entry ${MY_PN} "Serious Sam - First Encounter" ${MY_PN} + + # Ensure that file datestamps from the CD are sane + find "${D}/${dir}" -exec touch '{}' \; + + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + + elog "The warning regarding 'XiG-SUNDRY-NONSTANDARD missing' is harmless" + echo +} |