freebsd-ports/news/nzbhydra2/Makefile
Tobias C. Berner 16b47526e8 news/nzbhydra2: Update to to 2.25.0
Changelog can be viewed at:
	https://github.com/theotherp/nzbhydra2/blob/master/changelog.md

nzbhydra2wrapper.py has been replaced with the updated nzbhydra2wrapperPy3.py script
supporting Python 3.5 or higher and removing Python 2 support.

Submitted by:	Daniel Shafer <daniel@shafer.cc> (maintainer)
Differential Revision:	https://reviews.freebsd.org/D25674
2020-07-15 15:47:41 +00:00

53 lines
1.2 KiB
Makefile

# $FreeBSD$
PORTNAME= nzbhydra2
DISTVERSION= 2.25.0
DISTVERSIONSUFFIX= -linux
CATEGORIES= news java
MASTER_SITES= https://github.com/theotherp/${PORTNAME}/releases/download/v${DISTVERSION}/
MAINTAINER= daniel@shafer.cc
COMMENT= Usenet meta search
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
ONLY_FOR_ARCHS= amd64
USES= python:3.5+ shebangfix zip
USE_JAVA= yes
USE_RC_SUBR= nzbhydra2
NO_BUILD= yes
NO_WRKSUBDIR= yes
SUB_FILES= nzbhydra2 nzbhydra2wrapperPy3.py
SUB_LIST= PYTHON_CMD=${PYTHON_CMD} \
JAVA=${JAVA}
JAVA_VERSION= 8+
JAVA_VENDOR= openjdk
JAVA_RUN= yes
USERS= nzbhydra2
GROUPS= nzbhydra2
PLIST_FILES= ${DATADIR}/lib/core-${DISTVERSION}-exec.jar \
${DATADIR}/nzbhydra2 \
${DATADIR}/nzbhydra2wrapperPy3.py \
${DATADIR}/changelog.md \
${DATADIR}/readme.md \
${DATADIR}/LICENSE
post-extract:
# Cleanup unnecessary files
@${RM} -r ${WRKSRC}/systemd ${WRKSRC}/sysv ${WRKSRC}/rc.d ${WRKSRC}/upstart ${WRKSRC}/nzbhydra2wrapper.py
do-install:
@${MKDIR} ${STAGEDIR}/${DATADIR}
${INSTALL} -d -m 755 ${STAGEDIR}/${DATADIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}/${DATADIR}
${INSTALL_DATA} ${WRKDIR}/nzbhydra2wrapperPy3.py ${STAGEDIR}/${DATADIR}
.include <bsd.port.mk>