mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 10:37:22 -08:00
games-action/supermariowar: treeclean
Closes: https://bugs.gentoo.org/960286 (pkgremoved) Closes: https://bugs.gentoo.org/960287 (pkgremoved) Closes: https://bugs.gentoo.org/960288 (pkgremoved) Closes: https://bugs.gentoo.org/960285 (pkgremoved) Closes: https://bugs.gentoo.org/750074 (pkgremoved) Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
@@ -1 +0,0 @@
|
||||
DIST supermariowar-2.0_beta1.tar.gz 13545366 BLAKE2B 497f8d4a8b6e7073c07f2da56e1ace71354fc898660ff866f19ff1d8737e56358eb500d0994dfeeea640dc3ac5aa509be7f31daa75305afc72df8f1497cd5211 SHA512 0849d23ea613d69f32c184dd5f470815a4c68b15836e46e40c30c5a3a6ea2216d4d3305f356e8fdd5b42f4008d9b07f0b9fac84b9f801a4b9f888ba188c56e0b
|
||||
@@ -1,39 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
command="/usr/sbin/smw-server"
|
||||
command_background="true"
|
||||
pidfile="/var/run/${RC_SVCNAME}.pid"
|
||||
name="Super Mario War server"
|
||||
description="The Super Mario War server process is in charge of hosting Super Mario War games"
|
||||
smw_serverdir="@SMW_SERVERDIR@"
|
||||
|
||||
depend() {
|
||||
use net
|
||||
before logger
|
||||
}
|
||||
|
||||
start() {
|
||||
if [[ ! -d "${smw_serverdir}" ]]; then
|
||||
eerror "Cannot cd into ${smw_serverdir}"
|
||||
return 1
|
||||
fi
|
||||
cd "${smw_serverdir}" || return 1
|
||||
ebegin "Starting ${name}"
|
||||
start-stop-daemon \
|
||||
--start \
|
||||
--background \
|
||||
--pidfile ${pidfile} \
|
||||
--make-pidfile \
|
||||
--exec ${command}
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping ${name}"
|
||||
start-stop-daemon \
|
||||
--stop \
|
||||
--pidfile ${pidfile}
|
||||
eend $?
|
||||
}
|
||||
-18
@@ -1,18 +0,0 @@
|
||||
Fix linking with BUILD_SHARED_LIBS=ON default in EAPI-7
|
||||
|
||||
--- a/src/common_netplay/CMakeLists.txt
|
||||
+++ b/src/common_netplay/CMakeLists.txt
|
||||
@@ -1,4 +1,4 @@
|
||||
|
||||
if(NOT NO_NETWORK)
|
||||
- add_library(NetplayFiles platform_enet/NetPeerENet.cpp)
|
||||
+ add_library(NetplayFiles STATIC platform_enet/NetPeerENet.cpp)
|
||||
endif()
|
||||
--- a/src/common/CMakeLists.txt
|
||||
+++ b/src/common/CMakeLists.txt
|
||||
@@ -39,4 +39,4 @@
|
||||
list(APPEND COMMON_SRCS src/savepng.cpp)
|
||||
endif()
|
||||
|
||||
-add_library(CommonFiles ${COMMON_SRCS})
|
||||
+add_library(CommonFiles STATIC ${COMMON_SRCS})
|
||||
@@ -1,21 +0,0 @@
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(YAML-CPP REQUIRED yaml-cpp)
|
||||
find_path(YAML-CPP_INCLUDE_DIRECTORY
|
||||
NAMES yaml.h
|
||||
PATHS ${YAML-CPP_INCLUDE_DIRS} /usr/include/yaml-cpp
|
||||
)
|
||||
find_library(YAML-CPP_LIBRARY
|
||||
NAMES yaml-cpp
|
||||
PATHS ${YAML-CPP_LIBRARY_DIRS})
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(yaml-cpp
|
||||
FOUND_VAR yaml-cpp_FOUND
|
||||
REQUIRED_VARS YAML-CPP_LIBRARY YAML-CPP_INCLUDE_DIRECTORY
|
||||
)
|
||||
|
||||
if (yaml-cpp_FOUND)
|
||||
set(yaml-cpp_INCLUDE_DIRS ${YAML-CPP_INCLUDE_DIRECTORY})
|
||||
set(yaml-cpp_LIBRARIES ${YAML-CPP_LIBRARY})
|
||||
endif ()
|
||||
mark_as_advanced(YAML-CPP_INCLUDE_DIRECTORY YAML-CPP_LIBRARY)
|
||||
@@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
<use>
|
||||
<flag name="server">Compile and install Super Mario War server files</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="github">mmatyas/supermariowar</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -1,104 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit cmake
|
||||
|
||||
MY_PV=$(ver_rs 2 '-')
|
||||
MY_PV="${MY_PV/beta1/beta.1}"
|
||||
MY_PN="smw"
|
||||
|
||||
DESCRIPTION="Fan-made multiplayer Super Mario Bros. style deathmatch game"
|
||||
HOMEPAGE="https://github.com/mmatyas/supermariowar"
|
||||
SRC_URI="https://github.com/mmatyas/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="server"
|
||||
|
||||
RDEPEND="
|
||||
dev-cpp/yaml-cpp
|
||||
media-libs/libsdl[joystick]
|
||||
media-libs/sdl-mixer[vorbis]
|
||||
media-libs/sdl-image[png,jpeg]
|
||||
net-libs/enet:1.3=
|
||||
sys-libs/zlib:=
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
app-arch/unzip
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-cmake-add_library-static.patch )
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
pushd "${S}" || die
|
||||
unpack ./data.zip
|
||||
cp "${FILESDIR}"/${P}-yaml-cpp-config.cmake cmake/Findyaml-cpp.cmake || die
|
||||
popd || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DBUILD_STATIC_LIBS=OFF
|
||||
-DSMW_BINDIR="${EPREFIX}"/usr/bin
|
||||
-DSMW_DATADIR="${EPREFIX}"/usr/share/${PF}
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
|
||||
local bin
|
||||
for bin in "${ED}"/usr/bin/*; do
|
||||
chmod 0755 ${bin} || die
|
||||
done
|
||||
|
||||
local smw_datadir="usr/share/${PF}"
|
||||
local smw_bindir="${smw_datadir}/bin"
|
||||
mkdir -p "${ED}"/${smw_bindir} || die
|
||||
|
||||
ebegin "Moving ${PN} binary files to /${smw_bindir}"
|
||||
mv "${ED}"/usr/bin/* "${ED}"/${smw_bindir} || die
|
||||
eend $?
|
||||
|
||||
local base_bin
|
||||
for bin in "${ED}"/${smw_bindir}/*; do
|
||||
base_bin=$(basename ${bin})
|
||||
ebegin "Creating ${base_bin} launcher in /usr/bin"
|
||||
cat << EOF > ${base_bin} || die
|
||||
#!/usr/bin/env bash
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# ${PF} launcher: ${base_bin}
|
||||
exec /${smw_bindir}/${base_bin} /${smw_datadir}
|
||||
EOF
|
||||
dobin ${base_bin}
|
||||
eend $?
|
||||
done
|
||||
|
||||
if use server; then
|
||||
local smw_server="${BUILD_DIR}"/Binaries/Release/${MY_PN}-server
|
||||
local smw_serverdir="/${smw_datadir}/server"
|
||||
|
||||
ebegin "Installing ${MY_PN}-server files"
|
||||
dosbin "${smw_server}"
|
||||
|
||||
insinto ${smw_serverdir}
|
||||
doins "${S}"/src/server/serverconfig
|
||||
|
||||
dosym ${smw_serverdir}/serverconfig /etc/${MY_PN}d.conf
|
||||
|
||||
newinitd "${FILESDIR}"/smwd.initd ${MY_PN}d
|
||||
sed -e "s#@SMW_SERVERDIR@#${smw_serverdir}#g;" \
|
||||
-i "${ED}"/etc/init.d/${MY_PN}d || die
|
||||
eend $?
|
||||
fi
|
||||
}
|
||||
@@ -189,11 +189,10 @@ dev-build/cmake-fedora
|
||||
# Andreas Sturmlechner <asturm@gentoo.org> (2025-10-01)
|
||||
# Remaining old EAPI-7 based cmake.eclass consumers after 4 years of
|
||||
# tracking EAPI-7 removal. Port to EAPI-8 if you can.
|
||||
# Bugs #957246, #957869, #957918, #960286
|
||||
# Bugs #957246, #957869, #957918
|
||||
# Removal on 2025-11-01.
|
||||
dev-games/newton
|
||||
games-action/lugaru
|
||||
games-action/supermariowar
|
||||
|
||||
# Sam James <sam@gentoo.org> (2025-09-21)
|
||||
# Breaks (common) mt7921e WiFi driver with a hang in many cases, affecting
|
||||
|
||||
Reference in New Issue
Block a user