games-server/among-sus: export CC, update service

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2022-02-11 01:32:32 +05:00
parent a9179edd55
commit adc9d8195a
3 changed files with 8 additions and 7 deletions

View File

@@ -3,7 +3,7 @@
EAPI=8
inherit flag-o-matic
inherit flag-o-matic toolchain-funcs
COMMIT="554e60bf52e3fa931661b9414189a92bb8f69d78"
DESCRIPTION="Among Us, but it's a text adventure"
@@ -17,6 +17,8 @@ KEYWORDS="~amd64 ~x86"
IUSE="+notifications"
src_configure() {
tc-export CC
append-cflags -Wno-unused-result
append-cppflags \
-DVERSION=\\\"${COMMIT:0:7}\\\" \
-DMOVEMENT_NOTIFICATIONS=$(usex notifications 1 0)

View File

@@ -1 +1,2 @@
# AMOGUS_PORT=1234
# Set port number
#AMONG_SUS_PORT=1234

View File

@@ -1,18 +1,16 @@
#!/sbin/openrc-run
# Copyright 2021 Gentoo Authors
# Copyright 2021-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
name="among-sus server"
description="Among Us, but it's a text adventure"
AMOGUS_PORT=${AMOGUS_PORT:-1234}
command="/usr/bin/among-sus"
command_args="-p ${AMOGUS_PORT}"
command_args="-p ${AMONG_SUS_PORT:-1234}"
command_user=nobody:nobody
command_background=1
pidfile=/run/among-sus.pid
depend() {
need net
use net
}