- Remove SERVER option. It requires python 2 support

- Remove python 2 dependency
This commit is contained in:
Danilo Egea Gondolfo 2020-04-27 11:15:53 +00:00
parent f680dcc72d
commit 2bca10c8e7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=533124
2 changed files with 4 additions and 29 deletions

View File

@ -5,43 +5,21 @@ PORTNAME= craft
PORTVERSION= 1.0
DISTVERSIONPREFIX= v
DISTVERSIONSUFFIX= fbsd
PORTREVISION= 8
PORTREVISION= 9
CATEGORIES= games
MAINTAINER= danilo@FreeBSD.org
COMMENT= Simple Minecraft clone written in C using modern OpenGL
DEPRECATED= Uses deprecated version of python
EXPIRATION_DATE= 2020-08-15
LIB_DEPENDS= libcurl.so:ftp/curl
USES= cmake:insource compiler:c11 gl xorg
USE_GITHUB= yes
GH_ACCOUNT= daniloegea
GH_PROJECT= Craft
OPTIONS_DEFINE= SERVER
SERVER_DESC= Install the craft server
OPTIONS_DEFAULT= SERVER
OPTIONS_SUB= yes
USES= cmake:insource compiler:c11 gl xorg
USE_XORG= x11 xi xrandr
USE_XORG= x11 xi xrandr xxf86vm
USE_GL= gl glu
SERVER_USES= python:2.7
SERVER_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=2.2:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}sqlite3>=0:databases/py-sqlite3@${PY_FLAVOR}
SERVER_CMAKE_ON= -DSERVER:BOOL=ON
.include <bsd.port.options.mk>
post-install:
.if ${PORT_OPTIONS:MSERVER}
@${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
${INSTALL_DATA} ${WRKSRC}/world.py ${STAGEDIR}${PYTHON_SITELIBDIR}/craft_world.py
${INSTALL_SCRIPT} ${WRKSRC}/server.py ${STAGEDIR}${PREFIX}/bin/craft-server
${INSTALL_LIB} ${WRKSRC}/libworld.so ${STAGEDIR}${PREFIX}/lib/libcraft-world.so
.endif
.include <bsd.port.mk>

View File

@ -1,7 +1,4 @@
bin/craft
%%SERVER%%bin/craft-server
%%SERVER%%lib/libcraft-world.so
%%SERVER%%%%PYTHON_SITELIBDIR%%/craft_world.py
%%DATADIR%%/shaders/block_fragment.glsl
%%DATADIR%%/shaders/block_vertex.glsl
%%DATADIR%%/shaders/line_fragment.glsl