Commit ea1fc650 authored by Rene Ladan's avatar Rene Ladan
Browse files

games/keeperrl: Remove expired port

2025-12-31 games/keeperrl: Very outdated, fails to build and unmaintained in tree for years
parent cd548f9e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4966,3 +4966,4 @@ www/unit-wasm||2025-12-31|Has expired: Upstream repo archived on Oct 8 2025
devel/libstatgrab0|devel/libstatgrab|2025-12-31|Has expired: Use devel/libstatgrab instead
www/shellinabox|sysutils/ttyd|2025-12-31|Has expired: Abandonware and outdated, last release in 2016. Use sysutils/ttyd instead
security/krb5-120||2025-12-31|Has expired: Now that MIT KRB5 1.22 is GA 1.20 is EOL
games/keeperrl||2025-12-31|Has expired: Very outdated, fails to build and unmaintained in tree for years
+0 −1
Original line number Diff line number Diff line
@@ -434,7 +434,6 @@
    SUBDIR += kbreakout
    SUBDIR += kdegames
    SUBDIR += kdiamond
    SUBDIR += keeperrl
    SUBDIR += kevedit
    SUBDIR += kfourinline
    SUBDIR += kgoldrunner

games/keeperrl/Makefile

deleted100644 → 0
+0 −58
Original line number Diff line number Diff line
PORTNAME=	keeperrl
PORTVERSION=	0.0.${ALPHA_VERSION}
PORTREVISION=	6
CATEGORIES=	games

PATCH_SITES=	https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES=	c0fc69cbee72.patch:-p1

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Ambitious dungeon builder with roguelike elements
WWW=		https://keeperrl.com/

LICENSE=	GPLv2 OFL11
LICENSE_COMB=	multi
LICENSE_FILE_GPLv2=	${WRKSRC}/COPYING.txt
LICENSE_FILE_OFL11=	${WRKSRC}/data_contrib/SIL_Open_Font_License.txt

BROKEN=		Fails to build, error: a template argument list is expected after a name prefixed by the template keyword
DEPRECATED=	Very outdated, fails to build and unmaintained in tree for years
EXPIRATION_DATE=2025-12-31

LIB_DEPENDS=	libvorbis.so:audio/libvorbis \
		libcurl.so:ftp/curl

USES=		compiler:c++14-lang gl gmake localbase openal sdl

USE_GITHUB=	yes
GH_ACCOUNT=	miki151
GH_TAGNAME=	alpha${ALPHA_VERSION}
USE_GL=		gl
USE_SDL=	sdl2 image2

ALPHA_VERSION=	23
LIBS+=		-lexecinfo
MAKE_ARGS=	DATA_DIR="${DATADIR}" GCC="${CXX}" \
		LDFLAGS="${LDFLAGS}" RELEASE=true
# USE_GCC adds -Wl,-rpath=${_GCC_RUNTIME} which breaks -x c++-header
MAKE_ARGS+=	PCH= PCHINC=

LDFLAGS_i386=	-Wl,-znotext

DESKTOP_ENTRIES="KeeperRL" "" "" "keeper" \
		"Game;Simulation;" false

post-patch:
	@${REINPLACE_CMD} -e '/^CFLAGS =/ s|=|= ${CFLAGS}|' \
		-e '/^LIBS =/ s|$$| ${LIBS}|' \
		-e 's|bash|sh|' \
		${WRKSRC}/Makefile
	@${REINPLACE_CMD} 's|bash|sh|' ${WRKSRC}/check_serial.sh

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/keeper ${STAGEDIR}${PREFIX}/bin
	@${MKDIR} ${STAGEDIR}${DATADIR}
	cd ${WRKSRC} && ${COPYTREE_SHARE} "data_contrib data_free" \
		${STAGEDIR}${DATADIR} "! -name *License.txt"

.include <bsd.port.mk>

games/keeperrl/distinfo

deleted100644 → 0
+0 −5
Original line number Diff line number Diff line
TIMESTAMP = 1516986107
SHA256 (miki151-keeperrl-0.0.23-alpha23_GH0.tar.gz) = 046cba3c8834f52f9e796d2deece8770b833d351eb222c216fdf65b0c1869979
SIZE (miki151-keeperrl-0.0.23-alpha23_GH0.tar.gz) = 3252139
SHA256 (c0fc69cbee72.patch) = ca2a3158182b1bcab2c9ec0d9e9525800d49c62f2d544c9a3b6c01fbee75750b
SIZE (c0fc69cbee72.patch) = 533
+0 −43
Original line number Diff line number Diff line
--- main.cpp.orig	2018-01-31 20:31:47 UTC
+++ main.cpp
@@ -22,6 +22,7 @@
 #include "extern/ProgramOptions.h"
 
 #include <exception>
+#include <sys/stat.h>
 
 #include "view.h"
 #include "options.h"
@@ -285,18 +286,8 @@ static int keeperMain(po::parser& commandLineFlags) {
   DirectoryPath userPath([&] () -> string {
     if (commandLineFlags["user_dir"].was_set())
       return commandLineFlags["user_dir"].get().string;
-#ifdef USER_DIR
-    else if (const char* userDir = USER_DIR)
-      return userDir;
-#endif // USER_DIR
-#ifndef WINDOWS
-    else if (const char* localPath = std::getenv("XDG_DATA_HOME"))
-      return localPath + string("/KeeperRL");
-#endif
-#ifdef ENABLE_LOCAL_USER_DIR // Some environments don't define XDG_DATA_HOME
     else if (const char* homePath = std::getenv("HOME"))
-      return homePath + string("/.local/share/KeeperRL");
-#endif // ENABLE_LOCAL_USER_DIR
+      return homePath + string("/.KeeperRL");
     else
       return ".";
   }());
@@ -311,8 +302,10 @@ static int keeperMain(po::parser& commandLineFlags) {
 #else
     uploadUrl = "http://localhost/~michal/" + serverVersion;
 #endif
-  //userPath.createIfDoesntExist();
-  CHECK(userPath.exists()) << "User directory \"" << userPath << "\" doesn't exist.";
+  if (!userPath.exists()) {
+    auto configDir = userPath.file("");
+    ::mkdir(configDir.getPath(), 0775);
+  }
   auto settingsPath = userPath.file("options.txt");
   if (commandLineFlags["restore_settings"].was_set())
     remove(settingsPath.getPath());
Loading