diff --git a/games-fps/source-engine/metadata.xml b/games-fps/source-engine/metadata.xml new file mode 100644 index 000000000..a8501da77 --- /dev/null +++ b/games-fps/source-engine/metadata.xml @@ -0,0 +1,13 @@ + + + + + diceea@foxmail.com + Goldsrc233 + + + https://github.com/nillerusr/source-engine/releases + https://github.com/nillerusr/source-engine/issues + nillerusr/source-engine + + diff --git a/games-fps/source-engine/source-engine-9999.ebuild b/games-fps/source-engine/source-engine-9999.ebuild new file mode 100644 index 000000000..488a59a7d --- /dev/null +++ b/games-fps/source-engine/source-engine-9999.ebuild @@ -0,0 +1,45 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_11 python3_12 ) +PYTHON_REQ_USE='threads(+)' + +inherit waf-utils git-r3 python-any-r1 + +DESCRIPTION="A 3D game engine developed by Valve" +HOMEPAGE="https://github.com/nillerusr/source-engine" +EGIT_REPO_URI="https://github.com/nillerusr/source-engine.git" + +LICENSE="Source-SDK" +SLOT="0" +IUSE="debug" +BDEPEND="${PYTHON_DEPS} + media-libs/libsdl2 + media-libs/freetype + media-libs/fontconfig + sys-libs/zlib + media-libs/libjpeg-turbo + media-libs/libpng + net-misc/curl + media-libs/openal" + +src_configure() { + local conf=( + '-8' + $(usex debug '-T debug' '-T release') + ) + waf-utils_src_configure "${conf[@]}" +} + +src_install() { + waf-utils_src_install --destdir="${ED}/opt/source-engine" +} + +pkg_postinst() { + einfo "To play Half-Life 2," + einfo "you must legally own a Half-Life 2 copy," + einfo "then copy the 'hl2' folder into" + einfo "/opt/source-engine/usr" +} diff --git a/licenses/Proton b/licenses/Proton old mode 100755 new mode 100644 diff --git a/licenses/Source-SDK b/licenses/Source-SDK new file mode 100644 index 000000000..26b140203 --- /dev/null +++ b/licenses/Source-SDK @@ -0,0 +1,43 @@ + SOURCE 1 SDK LICENSE + +Source SDK Copyright(c) Valve Corp. + +THIS DOCUMENT DESCRIBES A CONTRACT BETWEEN YOU AND VALVE +CORPORATION ("Valve"). PLEASE READ IT BEFORE DOWNLOADING OR USING +THE SOURCE ENGINE SDK ("SDK"). BY DOWNLOADING AND/OR USING THE +SOURCE ENGINE SDK YOU ACCEPT THIS LICENSE. IF YOU DO NOT AGREE TO +THE TERMS OF THIS LICENSE PLEASE DON'T DOWNLOAD OR USE THE SDK. + + You may, free of charge, download and use the SDK to develop a modified Valve game +running on the Source engine. You may distribute your modified Valve game in source and +object code form, but only for free. Terms of use for Valve games are found in the Steam +Subscriber Agreement located here: http://store.steampowered.com/subscriber_agreement/ + + You may copy, modify, and distribute the SDK and any modifications you make to the +SDK in source and object code form, but only for free. Any distribution of this SDK must +include this LICENSE file and thirdpartylegalnotices.txt. + + Any distribution of the SDK or a substantial portion of the SDK must include the above +copyright notice and the following: + + DISCLAIMER OF WARRANTIES. THE SOURCE SDK AND ANY + OTHER MATERIAL DOWNLOADED BY LICENSEE IS PROVIDED + "AS IS". VALVE AND ITS SUPPLIERS DISCLAIM ALL + WARRANTIES WITH RESPECT TO THE SDK, EITHER EXPRESS + OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, IMPLIED + WARRANTIES OF MERCHANTABILITY, NON-INFRINGEMENT, + TITLE AND FITNESS FOR A PARTICULAR PURPOSE. + + LIMITATION OF LIABILITY. IN NO EVENT SHALL VALVE OR + ITS SUPPLIERS BE LIABLE FOR ANY SPECIAL, INCIDENTAL, + INDIRECT, OR CONSEQUENTIAL DAMAGES WHATSOEVER + (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF + BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF + BUSINESS INFORMATION, OR ANY OTHER PECUNIARY LOSS) + ARISING OUT OF THE USE OF OR INABILITY TO USE THE + ENGINE AND/OR THE SDK, EVEN IF VALVE HAS BEEN + ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + + +If you would like to use the SDK for a commercial purpose, please contact Valve at +sourceengine@valvesoftware.com.