Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

games-fps/source-engine: new package, add 9999 #3841

Merged
merged 1 commit into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions games-fps/source-engine/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>[email protected]</email>
<name>Goldsrc233</name>
</maintainer>
<upstream>
<changelog>https://github.com/nillerusr/source-engine/releases</changelog>
<bugs-to>https://github.com/nillerusr/source-engine/issues</bugs-to>
<remote-id type="github">nillerusr/source-engine</remote-id>
</upstream>
</pkgmetadata>
45 changes: 45 additions & 0 deletions games-fps/source-engine/source-engine-9999.ebuild
Original file line number Diff line number Diff line change
@@ -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"
}
Empty file modified licenses/Proton
100755 → 100644
Empty file.
43 changes: 43 additions & 0 deletions licenses/Source-SDK
Original file line number Diff line number Diff line change
@@ -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
[email protected].
Loading