Commit 9fd84a72 authored by Rene Ladan's avatar Rene Ladan
Browse files

games/renpy: Remove expired port

2025-10-31 games/renpy: Uses deprecated version of python
parent 4273f2a0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4843,3 +4843,4 @@ devel/pysvn||2025-11-01|Has expired: Fails to build
cad/impact||2025-11-01|Has expired: Does not work as intended
emulators/citra-qt5||2025-11-01|Has expired: project has been discontinued and build fails with FFmpeg >7
emulators/citra||2025-11-01|Has expired: project has been discontinued and build fails with FFmpeg >7
games/renpy||2025-11-01|Has expired: Uses deprecated version of python
+0 −1
Original line number Diff line number Diff line
@@ -860,7 +860,6 @@
    SUBDIR += redorblack
    SUBDIR += regoth
    SUBDIR += reminiscence
    SUBDIR += renpy
    SUBDIR += rescue
    SUBDIR += retroarch
    SUBDIR += retroarch-assets

games/renpy/Makefile

deleted100644 → 0
+0 −101
Original line number Diff line number Diff line
PORTNAME=	renpy
PORTVERSION=	7.4.11
DISTVERSIONSUFFIX=-sdk
PORTREVISION=	5
CATEGORIES=	games devel
MASTER_SITES=	https://www.renpy.org/dl/${PORTVERSION}/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Framework for developing visual-novel type games
WWW=		https://www.renpy.org/

LICENSE=	APACHE20 BSD3CLAUSE DejaVu LGPL21+ MIT OFL11 ZLIB
LICENSE_COMB=	multi
LICENSE_FILE=	${WRKSRC}/LICENSE.txt
LICENSE_NAME_DejaVu=	Bitstream Vera and Arev fonts license
LICENSE_FILE_DejaVu=	${WRKSRC}/renpy/common/DejaVuSans.txt
LICENSE_PERMS_DejaVu=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

# https://github.com/renpy/renpy/issues/2003
DEPRECATED=	Uses deprecated version of python
EXPIRATION_DATE=	2025-10-31

BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}future>0:devel/py-future@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}game_sdl2>0:devel/py-game_sdl2@${PY_FLAVOR}
LIB_DEPENDS=	libfribidi.so:converters/fribidi \
		libpng.so:graphics/png \
		libavcodec.so:multimedia/ffmpeg \
		libfreetype.so:print/freetype2
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}future>0:devel/py-future@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}game_sdl2>0:devel/py-game_sdl2@${PY_FLAVOR}

# Upstream tends to reroll distfiles before moving under /release/
PORTSCOUT=	site:http://www.renpy.org/dl/release/

USES=		python:2.7 sdl shebangfix tar:bz2
USE_PYTHON=	autoplist distutils cython
USE_SDL=	sdl2
EXCLUDE=	fribidi-src gen 'module/*.py[co]' 'renpy/*.py[co]'
EXTRACT_AFTER_ARGS=${EXCLUDE:S,^,--exclude ,}
SHEBANG_FILES=	renpy.py launcher/game/tkaskdir.py
TARGET_ORDER_OVERRIDE=610:fix-shebang
BUILD_WRKSRC=	${WRKSRC}/module
INSTALL_WRKSRC=	${BUILD_WRKSRC}
MAKE_ENV+=	RENPY_DEPS_INSTALL="${LOCALBASE}" \
		RENPY_CYTHON=cython-${PYTHON_VER}
PORTDATA=	gui launcher renpy renpy.py
PORTDOCS=	*
PLIST_FILES=	bin/${PORTNAME}

DESKTOP_ENTRIES="Ren'Py" \
		"" \
		"${DATADIR}/launcher/game/images/logo32.png" \
		"${PORTNAME} %f" \
		"Development;Game;AdventureGame;" \
		""

OPTIONS_DEFAULT=DIST
OPTIONS_DEFINE=	DOCS DIST EXAMPLES

DIST_DESC=	Distribution runtimes for Windows, OS X, Linux
DIST_VARS=	LICENSE+="ART20 PSFL" \
		PORTDATA+="lib renpy.app renpy.exe renpy-32.exe renpy.sh"
EXAMPLES_VARS=	PORTDATA+="the_question tutorial"

post-extract:
	@${FIND} ${WRKSRC}/lib ${WRKSRC}/renpy.app -type d -empty -delete

post-patch:
	@${REINPLACE_CMD} -e 's,/usr/bin/python[[:>:]],${PYTHON_CMD},' \
		${WRKSRC}/launcher/game/choose_directory.rpy
# Avoid having to add -I/usr/include -L/usr/lib
	@${REINPLACE_CMD} '/library("z")/d' ${BUILD_WRKSRC}/${PYSETUP}

post-build:
	@${PYTHON_CMD} -m compileall -d ${DATADIR} ${WRKSRC}
	@${PYTHON_CMD} -O -m compileall -d ${DATADIR} ${WRKSRC}

add-plist-post: add-empty-dirs
add-empty-dirs:
# Keep images directory in gui and templates, see renpy@d81ea29
	${FIND} ${WRKSRC} -type d -empty \
		! \( -name "gen" -or -name "saves" -or -name "pysdlsound" \) | \
		${SED} 's,^${WRKSRC},@dir ${DATADIR},' >>${TMPPLIST}

post-install:
	${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} -name \*.so \
		-exec ${STRIP_CMD} {} +
	${LN} -fs ../${DATADIR_REL}/renpy.py \
		${STAGEDIR}${PREFIX}/bin/${PORTNAME}
	(cd ${WRKSRC} && ${COPYTREE_SHARE} \
		"${PORTDATA}" ${STAGEDIR}${DATADIR} \
		"! -name *.orig ! -name *.bak \
		 ! -name saves ! -name log.txt")
	${CHMOD} +x ${STAGEDIR}${DATADIR}/renpy.py

post-install-DOCS-on:
	(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \
		. ${STAGEDIR}${DOCSDIR} \
		"! -name *.orig ! -name *.bak")

.include <bsd.port.mk>

games/renpy/distinfo

deleted100644 → 0
+0 −3
Original line number Diff line number Diff line
TIMESTAMP = 1638428552
SHA256 (renpy-7.4.11-sdk.tar.bz2) = a73378f06a5925ea0d163b5825c298ed65dafb3d0cdccd9f34d7eace46adef1f
SIZE (renpy-7.4.11-sdk.tar.bz2) = 111943054

games/renpy/files/patch-issue869

deleted100644 → 0
+0 −11
Original line number Diff line number Diff line
Restore shebang before ecd36ec.

--- renpy.py.orig	2016-01-27 03:31:10 UTC
+++ renpy.py
@@ -1,4 +1,5 @@
-#!/usr/bin/env python #@PydevCodeAnalysisIgnore
+#!/usr/bin/env python
+#@PydevCodeAnalysisIgnore
 
 # This file is part of Ren'Py. The license below applies to Ren'Py only.
 # Games and other projects that use Ren'Py may use a different license.
Loading