From feb0daf81d888e9160f9f94502de09b66f2a63fd Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 21 Jun 2020 17:50:24 +0100 Subject: gentoo resync : 21.06.2020 --- games-fps/ut2004/Manifest | 2 +- games-fps/ut2004/ut2004-3369.3-r2.ebuild | 124 ------------------------------- games-fps/ut2004/ut2004-3369.3-r3.ebuild | 124 +++++++++++++++++++++++++++++++ 3 files changed, 125 insertions(+), 125 deletions(-) delete mode 100644 games-fps/ut2004/ut2004-3369.3-r2.ebuild create mode 100644 games-fps/ut2004/ut2004-3369.3-r3.ebuild (limited to 'games-fps/ut2004') diff --git a/games-fps/ut2004/Manifest b/games-fps/ut2004/Manifest index 4de8f70355bc..7f53cda4882a 100644 --- a/games-fps/ut2004/Manifest +++ b/games-fps/ut2004/Manifest @@ -2,5 +2,5 @@ AUX ut2004-ded.confd 175 BLAKE2B 7384ec15a4dd1ea03ddf06068032a69d32a8bfb7536bbfc AUX ut2004-ded.initd 320 BLAKE2B 34e3fdf38eb9e5bc2623581c73fea3af040f9dca829c8c46d649b5124472989931278a93c5a2a52acc2faf7c53df74dfaf772a35e52d127b357097070e3c3c12 SHA512 a307105dc110ec1009eabfe61777b33ad89c9e22cebc199ab7e990e9b170b97ab8e176865e62ebed40f4a80f7e5ddee6f248a1e73f25bac1a61c32f0c90a126d DIST ut2004-lnxpatch3369-2.tar.bz2 22465217 BLAKE2B 9852f9d55804b7f2927a31be86aee1552aaebeb38d2a40fb206154c236e9d6eff47f7594024c0d9b25c7216d3ca62571b1f89f23f72ee9e135b2e6451bcb006a SHA512 0d6f26d5a811efd64be8c304e928e03f546d9a8eaba6b074843e2b7e76e0670b39df95200a2fe2040d72bbd204c7157ed0115649a5c85396a76d9e0b7ec284b1 DIST ut2004-v3369-3-linux-dedicated.7z 5013927 BLAKE2B 72d24d7bc37c777f3697b767a03e052ad9b547005dd6da73833e439496e87a9c1ebbe01f88d62b29a41b2bf6380a3b3bd745e6883fbb6d0f2b7e52998d4af276 SHA512 3b2a7b64934a3647c02c9fec48565c5c2c35370d635b2af4059eb76587bfa13f46e6a4e14fdb0494ba7a4182497ed5963601986f4fcfa318e69a8a8a8c0178cf -EBUILD ut2004-3369.3-r2.ebuild 3593 BLAKE2B 97af1ebfaa24333d94348b7c31ca8f8cf99852fb0256abd417ccdb65e828efd657662f2a18d62c74177c41eaf3a6d241d109e4deef4b1063a64d36d12c5c8859 SHA512 c41289fd46d31382804251be538031c024cf4c64aa80f4b196fbffe7549879a5c9f77753ef88183852791a8a860c65cb3743ecfb5a4f4a45171d0fe9a58c05ef +EBUILD ut2004-3369.3-r3.ebuild 3594 BLAKE2B 406a8529a43d22ebf2815f180ca91b016126cbaef7fdac02f2060c546a89bc2fa9ea74e00cb53678ebb1ebe30203651651d74f32847c59ec3e78b294b1ea9548 SHA512 b3f45125d57599349009d43467fa78a386ff80383f2648e280be49d5da3133586af8b16895cbd42d2d4f32d1f8b7151d6031e14f379aae8faa6662d97d6c5436 MISC metadata.xml 249 BLAKE2B 7113a758d7abc93accec998a8843d8ef51ca8b72d72e659e224d5cec2a1a6a63e6c0605958091532ac6e51fa0d501ca4fd9f3f4a9e55baeb31519a02971b465f SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 diff --git a/games-fps/ut2004/ut2004-3369.3-r2.ebuild b/games-fps/ut2004/ut2004-3369.3-r2.ebuild deleted file mode 100644 index 77ba2877605a..000000000000 --- a/games-fps/ut2004/ut2004-3369.3-r2.ebuild +++ /dev/null @@ -1,124 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit desktop eutils - -PATCH_P="${PN}-lnxpatch${PV%.*}-2.tar.bz2" -DESCRIPTION="Editor's Choice Edition plus Mega Pack for the well-known first-person shooter" -HOMEPAGE="https://liandri.beyondunreal.com/Unreal_Tournament_2004" -SRC_URI=" - https://ut2004.ut-files.com/Patches/Linux/${PATCH_P} - https://dev.gentoo.org/~chewi/distfiles/ut2004-v${PV/./-}-linux-dedicated.7z -" - -LICENSE="ut2003" -SLOT="0" -KEYWORDS="-* ~amd64 ~x86" -RESTRICT="bindist mirror strip" - -RDEPEND=" - !games-server/ut2004-ded - games-fps/ut2004-bonuspack-ece - games-fps/ut2004-bonuspack-mega - >=games-fps/ut2004-data-3186-r5 - media-libs/libsdl - media-libs/openal - sys-libs/glibc - ~virtual/libstdc++-3.3 - virtual/opengl - x11-libs/libX11 - x11-libs/libXau - x11-libs/libXdmcp - x11-libs/libXext -" - -BDEPEND="app-arch/p7zip" - -S="${WORKDIR}/${PN^^}-Patch" -DIR="/opt/${PN}" - -# The executable pages are required. Bug #114733. -QA_PREBUILT="*" - -src_prepare() { - default - - if use amd64; then - mv System/${PN}-bin{-linux-amd64,} || die - mv ../${PN}-ucc-bin-09192008/ucc-bin-linux-amd64 System/ucc-bin || die - else - rm System/${PN}-bin-linux-amd64 || die - mv ../${PN}-ucc-bin-09192008/ucc-bin System/ucc-bin || die - fi - - # In ut2004-bonuspack-mega. - rm System/{Manifest.in[it],Packages.md5} || die -} - -src_install() { - insinto "${DIR}" - doins -r . - fperms +x "${DIR}"/System/{ucc,${PN}}-bin - - dosym ../../../usr/$(get_libdir)/libopenal.so "${DIR}"/System/openal.so - dosym ../../../usr/$(get_libdir)/libSDL-1.2.so.0 "${DIR}"/System/libSDL-1.2.so.0 - - make_wrapper ${PN} ./${PN}-bin "${DIR}"/System "${DIR}" - make_wrapper ${PN}-ded "./ucc-bin server" "${DIR}"/System - - make_desktop_entry ${PN} "Unreal Tournament 2004" - - newconfd "${FILESDIR}"/${PN}-ded.confd ${PN}-ded - newinitd "${FILESDIR}"/${PN}-ded.initd ${PN}-ded -} - -pkg_postinst() { - # Here is where we check for the existence of a cdkey. - # If we don't find one, we ask the user for it. - if [[ -f "${EROOT}${DIR}"/System/cdkey ]] ; then - einfo "A cdkey file is already present in ${EPREFIX}${DIR}/System" - else - ewarn "You MUST run this before playing the game:" - ewarn "emerge --config =${CATEGORY}/${PF}" - ewarn "That way you can [re]enter your cdkey." - fi - elog "Starting with 3369, the game supports render-to-texture. To enable" - elog "it, you will need the Nvidia drivers of at least version 7676 and" - elog "you should edit the following:" - elog 'Set "UseRenderTargets=True" in the "[OpenGLDrv.OpenGLRenderDevice]"' - elog 'section of your UT2004.ini or Default.ini and set "bPlayerShadows=True"' - elog 'and "bBlobShadow=False" in the "[UnrealGame.UnrealPawn]" section of' - elog 'your User.ini or DefUser.ini.' -} - -pkg_postrm() { - ewarn "This package leaves a cdkey file in ${EROOT}${DIR}/System that you need" - ewarn "to remove to completely get rid of this game's files." -} - -pkg_config() { - ewarn "Your CD key is NOT checked for validity here so" - ewarn "make sure you type it in correctly." - ewarn "If you CTRL+C out of this, the game will not run!" - ewarn - einfo "CD key format is: XXXXX-XXXXX-XXXXX-XXXXX" - while true ; do - einfo "Please enter your CD key:" - read CDKEY1 - einfo "Please re-enter your CD key:" - read CDKEY2 - if [[ -z ${CDKEY1} ]] || [[ -z ${CDKEY2} ]] ; then - echo "You entered a blank CD key. Try again." - else - if [[ ${CDKEY1} == ${CDKEY2} ]] ; then - echo "${CDKEY1^^}" > "${EROOT}${DIR}"/System/cdkey || die - einfo "Thank you!" - break - else - eerror "Your CD key entries do not match. Try again." - fi - fi - done -} diff --git a/games-fps/ut2004/ut2004-3369.3-r3.ebuild b/games-fps/ut2004/ut2004-3369.3-r3.ebuild new file mode 100644 index 000000000000..13d59140205d --- /dev/null +++ b/games-fps/ut2004/ut2004-3369.3-r3.ebuild @@ -0,0 +1,124 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit desktop eutils + +PATCH_P="${PN}-lnxpatch${PV%.*}-2.tar.bz2" +DESCRIPTION="Editor's Choice Edition plus Mega Pack for the well-known first-person shooter" +HOMEPAGE="https://liandri.beyondunreal.com/Unreal_Tournament_2004" +SRC_URI=" + https://ut2004.ut-files.com/Patches/Linux/${PATCH_P} + https://dev.gentoo.org/~chewi/distfiles/ut2004-v${PV/./-}-linux-dedicated.7z +" + +LICENSE="ut2003" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +RESTRICT="bindist mirror strip" + +RDEPEND=" + !games-server/ut2004-ded + games-fps/ut2004-bonuspack-ece + games-fps/ut2004-bonuspack-mega + >=games-fps/ut2004-data-3186-r5 + media-libs/libsdl + media-libs/openal + sys-libs/glibc + sys-libs/libstdc++-v3:5 + virtual/opengl + x11-libs/libX11 + x11-libs/libXau + x11-libs/libXdmcp + x11-libs/libXext +" + +BDEPEND="app-arch/p7zip" + +S="${WORKDIR}/${PN^^}-Patch" +DIR="/opt/${PN}" + +# The executable pages are required. Bug #114733. +QA_PREBUILT="*" + +src_prepare() { + default + + if use amd64; then + mv System/${PN}-bin{-linux-amd64,} || die + mv ../${PN}-ucc-bin-09192008/ucc-bin-linux-amd64 System/ucc-bin || die + else + rm System/${PN}-bin-linux-amd64 || die + mv ../${PN}-ucc-bin-09192008/ucc-bin System/ucc-bin || die + fi + + # In ut2004-bonuspack-mega. + rm System/{Manifest.in[it],Packages.md5} || die +} + +src_install() { + insinto "${DIR}" + doins -r . + fperms +x "${DIR}"/System/{ucc,${PN}}-bin + + dosym ../../../usr/$(get_libdir)/libopenal.so "${DIR}"/System/openal.so + dosym ../../../usr/$(get_libdir)/libSDL-1.2.so.0 "${DIR}"/System/libSDL-1.2.so.0 + + make_wrapper ${PN} ./${PN}-bin "${DIR}"/System "${DIR}" + make_wrapper ${PN}-ded "./ucc-bin server" "${DIR}"/System + + make_desktop_entry ${PN} "Unreal Tournament 2004" + + newconfd "${FILESDIR}"/${PN}-ded.confd ${PN}-ded + newinitd "${FILESDIR}"/${PN}-ded.initd ${PN}-ded +} + +pkg_postinst() { + # Here is where we check for the existence of a cdkey. + # If we don't find one, we ask the user for it. + if [[ -f "${EROOT}${DIR}"/System/cdkey ]] ; then + einfo "A cdkey file is already present in ${EPREFIX}${DIR}/System" + else + ewarn "You MUST run this before playing the game:" + ewarn "emerge --config =${CATEGORY}/${PF}" + ewarn "That way you can [re]enter your cdkey." + fi + elog "Starting with 3369, the game supports render-to-texture. To enable" + elog "it, you will need the Nvidia drivers of at least version 7676 and" + elog "you should edit the following:" + elog 'Set "UseRenderTargets=True" in the "[OpenGLDrv.OpenGLRenderDevice]"' + elog 'section of your UT2004.ini or Default.ini and set "bPlayerShadows=True"' + elog 'and "bBlobShadow=False" in the "[UnrealGame.UnrealPawn]" section of' + elog 'your User.ini or DefUser.ini.' +} + +pkg_postrm() { + ewarn "This package leaves a cdkey file in ${EROOT}${DIR}/System that you need" + ewarn "to remove to completely get rid of this game's files." +} + +pkg_config() { + ewarn "Your CD key is NOT checked for validity here so" + ewarn "make sure you type it in correctly." + ewarn "If you CTRL+C out of this, the game will not run!" + ewarn + einfo "CD key format is: XXXXX-XXXXX-XXXXX-XXXXX" + while true ; do + einfo "Please enter your CD key:" + read CDKEY1 + einfo "Please re-enter your CD key:" + read CDKEY2 + if [[ -z ${CDKEY1} ]] || [[ -z ${CDKEY2} ]] ; then + echo "You entered a blank CD key. Try again." + else + if [[ ${CDKEY1} == ${CDKEY2} ]] ; then + echo "${CDKEY1^^}" > "${EROOT}${DIR}"/System/cdkey || die + einfo "Thank you!" + break + else + eerror "Your CD key entries do not match. Try again." + fi + fi + done +} -- cgit v1.2.3