diff options
author | Sergey Popov <pinkbyte@gentoo.org> | 2012-09-19 17:41:37 +0000 |
---|---|---|
committer | Sergey Popov <pinkbyte@gentoo.org> | 2012-09-19 17:41:37 +0000 |
commit | 920d02332e8b03d481888192654f916ba41338fc (patch) | |
tree | 5b6d60c23add0dd4edfb4c58b5894a6d497e9994 /games-fps/serious-sam-tse | |
parent | games-fps/serious-sam-tse can not run on amd64 non-multilib profiles, so mask... (diff) | |
download | gentoo-2-920d02332e8b03d481888192654f916ba41338fc.tar.gz gentoo-2-920d02332e8b03d481888192654f916ba41338fc.tar.bz2 gentoo-2-920d02332e8b03d481888192654f916ba41338fc.zip |
New ebuild wrt bug #71481. Thanks for all those people who helps making this ebuild
(Portage version: 2.2.0_alpha128/cvs/Linux x86_64)
Diffstat (limited to 'games-fps/serious-sam-tse')
-rw-r--r-- | games-fps/serious-sam-tse/ChangeLog | 11 | ||||
-rw-r--r-- | games-fps/serious-sam-tse/Manifest | 4 | ||||
-rw-r--r-- | games-fps/serious-sam-tse/metadata.xml | 8 | ||||
-rw-r--r-- | games-fps/serious-sam-tse/serious-sam-tse-1_beta1.ebuild | 147 |
4 files changed, 170 insertions, 0 deletions
diff --git a/games-fps/serious-sam-tse/ChangeLog b/games-fps/serious-sam-tse/ChangeLog new file mode 100644 index 000000000000..f3b2da52132a --- /dev/null +++ b/games-fps/serious-sam-tse/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for games-fps/serious-sam-tse +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/serious-sam-tse/ChangeLog,v 1.1 2012/09/19 17:41:37 pinkbyte Exp $ + +*serious-sam-tse-1_beta1 (19 Sep 2012) + + 19 Sep 2012; Sergey Popov <pinkbyte@gentoo.org> + +serious-sam-tse-1_beta1.ebuild, +metadata.xml: + New ebuild wrt bug #71481. Thanks for all those people who helps making this + ebuild + diff --git a/games-fps/serious-sam-tse/Manifest b/games-fps/serious-sam-tse/Manifest new file mode 100644 index 000000000000..b370f1f9cb93 --- /dev/null +++ b/games-fps/serious-sam-tse/Manifest @@ -0,0 +1,4 @@ +DIST ssamtse-beta1.sh.bin 7952607 SHA256 4be124430c5d013842b97287623e0aed83d2003eeb619abbcb286bc95e036304 SHA512 43f07fbaef0bf8f90644a748931220331ed5f9179412e5a37daf0472aa98c5bb2455148c54254eae1af0b38ba8a3fde9c310cd8d488ea6b2806fa0f6fb1e1644 WHIRLPOOL b05dcf3e15a488bbf5fe7a076c1ca49ced5f8ba6887750c2f1c6306ce74716d71ce3a7fa83c9e33f4c97b87778a2b631afb8b11f597f77907a639bc428c314ee +EBUILD serious-sam-tse-1_beta1.ebuild 4145 SHA256 f584af31b858c1caef683844fa487ba5a9b1bb828d450e57e8d3752ea0a82c6a SHA512 f029d01a4ba12e858301d2e51731203d7635c7b69b3034d4a21e579684cdcac198660c85e4a58cd273253d410b503d38097bb6defe72a1c55b00aadfc76065ec WHIRLPOOL 320926b97fecc280229ddf738d79e17546b52d2c293d7753d1ee24238eb49a6132698c2d818d81d25c74bafd2e47dd134bec8bdb78b5fecc7b2af5e943264cb7 +MISC ChangeLog 355 SHA256 4de91c77a328e493e17fc4c903f247b97446748570f6e9884d2002f03f5362a1 SHA512 aee7034de63e0513079bf1eeb126bfe9c25b5333571337352aa2b3c6c50696f0b9655404d873454be84fbcef4538c4bc2bcc7e2f718fa7affe3af4a31999adad WHIRLPOOL 240885ae95a89f20839bdcfe9721f407c0125ec48365335ebda78608b501f0d6794bfcec65ed911fa9debf7dd15c5786b1b11450bd84874ee8e112c0b70775c3 +MISC metadata.xml 233 SHA256 a93cf5c4e554b97b2a48b92f801e3a3d87833cac311db0160a387a757ab7054c SHA512 704c94018edcbc53edcf0a41c2603dd59ea217aa5871f35d4d17f7df26156b8fb0a735d2efb11b74256565db01e6790a833242de39c29a9e46ed8ed96d505334 WHIRLPOOL 57f455cf256b91fb72e642f5a861e7367961775f2ab992b8afc798ff376c9a2bc8860d09f2bc43c870531248484128c966f25a081b7789a31ba9fb4f52b5519c diff --git a/games-fps/serious-sam-tse/metadata.xml b/games-fps/serious-sam-tse/metadata.xml new file mode 100644 index 000000000000..b6b8956cde34 --- /dev/null +++ b/games-fps/serious-sam-tse/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-tse/serious-sam-tse-1_beta1.ebuild b/games-fps/serious-sam-tse/serious-sam-tse-1_beta1.ebuild new file mode 100644 index 000000000000..bbcc8908e9b7 --- /dev/null +++ b/games-fps/serious-sam-tse/serious-sam-tse-1_beta1.ebuild @@ -0,0 +1,147 @@ +# 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-tse/serious-sam-tse-1_beta1.ebuild,v 1.1 2012/09/19 17:41:37 pinkbyte Exp $ + +EAPI="4" + +inherit cdrom eutils versionator games unpacker + +# MY_PV will be e.g. "beta1" +MY_PN="ssamtse" +MY_PV=$(get_version_component_range 2-2) + +DESCRIPTION="Serious Sam: The Second Encounter" +HOMEPAGE="http://www.croteam.com/ + http://www.seriouszone.com/" +SRC_URI="http://icculus.org/betas/ssam/${MY_PN}-${MY_PV}.sh.bin" + +LICENSE="LOKI-EULA" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +RESTRICT="strip" +IUSE="alsa" + +DEPEND=">=app-arch/unshield-0.6" +RDEPEND="amd64? ( + app-emulation/emul-linux-x86-opengl + app-emulation/emul-linux-x86-soundlibs + app-emulation/emul-linux-x86-sdl + ) + x86? ( + alsa? ( + media-libs/libsdl[alsa,audio] + media-libs/libvorbis + ) + media-libs/libogg + media-libs/libsdl[X,joystick,opengl,video] + )" + +S=${WORKDIR} + +QA_TEXTRELS=" +opt/ssamtse/Bin/libEntitiesMP.so +opt/ssamtse/Bin/libGameMP.so +opt/ssamtse/Bin/libamp11lib.so +opt/ssamtse/Bin/libShaders.so +" + +QA_FLAGS_IGNORED=" +opt/ssamtse/Bin/libEntitiesMP.so +opt/ssamtse/Bin/libGameMP.so +opt/ssamtse/Bin/libamp11lib.so +opt/ssamtse/Bin/libShaders.so +opt/ssamtse/Bin/ssam_lnxded +opt/ssamtse/Bin/ssam_lnxded.dynamic +opt/ssamtse/Bin/ssam_lnx.dynamic +opt/ssamtse/Bin/ssam_lnx +" + +pkg_setup() { + games_pkg_setup + + cdrom_get_cds "Install/SE1_00.gro" +} + +src_unpack() { + mkdir Levels Mods + + unpack_makeself "${MY_PN}-${MY_PV}.sh.bin" + unpack ./setupstuff.tar.gz + unpack ./bins.tar.bz2 +} + +src_prepare() { + # Switch to dynamic executable - runs at sane speeds on modern hardware + sed -i -e 's;exec "./ssam_lnx";exec "./ssam_lnx.dynamic";' bin/${MY_PN} \ + || die "dynamic binary update failed" +} + +src_install() { + local dir=${GAMES_PREFIX_OPT}/${MY_PN} + + # Remove bundled libs + rm -f Bin/{libogg.so,libvorbis.so,libvorbisfile.so} + + einfo "Copying from ${CDROM_ROOT}" + insinto "${dir}" + doins -r "${CDROM_ROOT}"/Install/* || die "doins CD failed" + + # Correct paths of copied resource files + mv "${D}/${dir}"/Locales/eng/Controls/* "${D}/${dir}"/Controls/ + mv "${D}/${dir}"/Locales/eng/Data/Var/* "${D}/${dir}"/Data/Var/ + mv "${D}/${dir}"/Locales/eng/Demos/* "${D}/${dir}"/Demos/ + mv "${D}/${dir}"/Locales/eng/Help/* "${D}/${dir}"/Help/ + mv "${D}/${dir}"/Locales/eng/Mods/Warped/Scripts/Addons/WarpedTweak.des "${D}/${dir}"/Mods/Warped/Scripts/Addons/ + mv "${D}/${dir}"/Locales/eng/Mods/Warped/Readme.html "${D}/${dir}"/Mods/Warped/ + mv "${D}/${dir}"/Locales/eng/Mods/*.des "${D}/${dir}"/Mods/ + mv "${D}/${dir}"/Locales/eng/Scripts/Addons/* "${D}/${dir}"/Scripts/Addons/ + mv "${D}/${dir}"/Locales/eng/Scripts/CustomOptions/* "${D}/${dir}"/Scripts/CustomOptions/ + mv "${D}/${dir}"/Locales/eng/Scripts/NetSettings/* "${D}/${dir}"/Scripts/NetSettings/ + rm -rf "${D}/${dir}"/Locales + + # The data CABs contain optional multiplayer maps in the "Levels" directory + einfo "Extracting additional levels" + unshield x "${D}/${dir}"/data1.cab >/dev/null || die "unshield data1.cab failed" + rm "${D}/${dir}"/data?.cab + + # Correct paths of extracted levels + mv Levels/Levels/LevelsMP/* Levels/LevelsMP/ + rm -rf Levels/Levels + mv Levels/LevelsMP/Technology/* Levels/ + rmdir Levels/LevelsMP/Technology + mv Levels/Mods/Warped/ Mods/ + rmdir Levels/Mods/ + + doins -r Bin Data Levels Mods *.txt README* \ + || die "doins main failed" + + # Install bins last to ensure they are marked executable + exeinto "${dir}" + doexe bin/${MY_PN} || die + exeinto "${dir}"/Bin + doexe Bin/{ssam_lnx*,*.so} || die + + # Remove useless Windows files + rm -rf "${D}/${dir}/Bin"/{*.exe,*.dll,*.DLL,GameSpy} + rm -f "${D}/${dir}"/{*.exe,*.ex_,*.bmp,*.inx,*.hdr,*.bin} + + dodoc README.linux + + newicon ssam.xpm ${MY_PN}.xpm || die + games_make_wrapper ${MY_PN} ./${MY_PN} "${dir}" "${dir}" + make_desktop_entry ${MY_PN} "Serious Sam - Second 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." + elog "Important information about the Linux port is at:" + elog " http://files.seriouszone.com/download.php?fileid=616" + echo +} |