mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
games-strategy/freesynd: treeclean
Closes: https://bugs.gentoo.org/787197 (pkgremoved) Closes: https://bugs.gentoo.org/958317 (pkgremoved) Closes: https://bugs.gentoo.org/958318 (pkgremoved) Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
@@ -1 +0,0 @@
|
||||
DIST freesynd-0.7.5.tar.gz 2622888 BLAKE2B 1fedaa8a4e07c64941f83b0352b84419d61f8ef828cd923947643b9547aa92016bc765b6acc4f8272bf2ca7aafa60bd25c5eaba85a37ab1410c826c0d9d46253 SHA512 70cd28c660c7e000f799746be62dbcdc284a5ab8da8670e5b4f0fca0fdbe265cde1014f08fd6f0ed41fb50188fc1e672c8a4267722715cecaa354f47a8ef746c
|
||||
@@ -1,28 +0,0 @@
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -34,6 +34,13 @@
|
||||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_C_FLAGS}")
|
||||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CXX_FLAGS}")
|
||||
|
||||
+option(BUILD_DEV_TOOLS "Build development tools")
|
||||
+option(WITH_DEBUG "Enable debug definitions")
|
||||
+
|
||||
+if(WITH_DEBUG)
|
||||
+ add_definitions (-D_DEBUG)
|
||||
+endif()
|
||||
+
|
||||
# Set standard definitions for all platforms.
|
||||
add_definitions (-DSYSTEM_SDL)
|
||||
add_definitions (-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\")
|
||||
@@ -59,10 +66,7 @@
|
||||
message (FATAL_ERROR "Unable to locate PNG")
|
||||
endif ()
|
||||
|
||||
-if (CMAKE_BUILD_TYPE STREQUAL "debug" OR CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
- set (BUILD_DEV_TOOLS TRUE)
|
||||
-else ()
|
||||
- set (BUILD_DEV_TOOLS FALSE)
|
||||
+if (CMAKE_BUILD_TYPE AND NOT CMAKE_BUILD_TYPE STREQUAL "debug")
|
||||
# We only define an install target if we're doing a release build.
|
||||
# Furthermore, on Mac, the data folder is a part of the app bundle.
|
||||
if (NOT APPLE)
|
||||
@@ -1,74 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
CMAKE_IN_SOURCE_BUILD=1
|
||||
inherit cmake desktop xdg-utils readme.gentoo-r1
|
||||
|
||||
DESCRIPTION="Portable engine reimplementation for the classic Bullfrog game Syndicate"
|
||||
HOMEPAGE="https://freesynd.sourceforge.io/"
|
||||
SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="debug devtools"
|
||||
|
||||
RDEPEND="
|
||||
media-libs/libogg
|
||||
media-libs/libpng:0=
|
||||
media-libs/libsdl[X,sound,video]
|
||||
media-libs/libvorbis
|
||||
media-libs/sdl-mixer[mp3,vorbis]
|
||||
media-libs/sdl-image[png]
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
DOCS=( NEWS README INSTALL AUTHORS )
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-cmake.patch )
|
||||
|
||||
DOC_CONTENTS="
|
||||
You have to set \"data_dir = /my/path/to/synd-data\"
|
||||
in \"~/.${PN}/${PN}.ini\".
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
|
||||
sed -e "s:#freesynd_data_dir = /usr/share/freesynd/data:freesynd_data_dir = /usr/share/${PN}/data:" \
|
||||
-i ${PN}.ini || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DWITH_DEBUG=$(usex debug)
|
||||
-DBUILD_DEV_TOOLS=$(usex devtools)
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin src/${PN}
|
||||
use devtools && newbin src/dump ${PN}-dump
|
||||
insinto /usr/share/${PN}
|
||||
doins -r data
|
||||
newicon -s 128 icon/sword.png ${PN}.png
|
||||
make_desktop_entry ${PN}
|
||||
einstalldocs
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_icon_cache_update
|
||||
if use debug ; then
|
||||
ewarn "Debug build is not meant for regular playing,"
|
||||
ewarn "game speed is higher."
|
||||
fi
|
||||
readme.gentoo_print_elog
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_icon_cache_update
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>games@gentoo.org</email>
|
||||
<name>Gentoo Games Project</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="devtools">Build development tools</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="sourceforge">freesynd</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -190,7 +190,7 @@ dev-build/cmake-fedora
|
||||
# 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, #957403, #957788, #957819, #957869, #957918,
|
||||
# #958317, #958596, #958651, #960286
|
||||
# #958596, #958651, #960286
|
||||
# Removal on 2025-11-01.
|
||||
dev-games/newton
|
||||
games-action/lugaru
|
||||
@@ -202,7 +202,6 @@ games-fps/avp
|
||||
games-kids/memonix
|
||||
games-puzzle/meandmyshadow
|
||||
games-server/pvpgn
|
||||
games-strategy/freesynd
|
||||
|
||||
# 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