Files
gentoo-zh/games-fps/source-engine/source-engine-9999.ebuild
T
Zakk 831aa5a03f */*: complete RESTRICT for packages whose license forbids redistribution
因为这些包的授权或是禁止再散布软件本体、或是禁止对散布收取费用、或是要求授权方书面同意,而它们的 `RESTRICT` 缺少 `bindist`(`app-
misc/bcompare` 缺 `mirror`),构建出的二进制包与 distfile 会被当作可以散布,所以按各自的条款补齐。

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-08-02 03:09:25 +10:00

46 lines
1007 B
Bash

# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{12..14} )
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"
RESTRICT="bindist"
BDEPEND="${PYTHON_DEPS}
media-libs/libsdl2
media-libs/freetype
media-libs/fontconfig
virtual/zlib
media-libs/libjpeg-turbo
media-libs/libpng
net-misc/curl
media-libs/openal"
src_configure() {
local conf=(
$(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"
}