mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-06 06:30:19 +00:00
c165ed117f
PR: 207936 Submitted by: Ultima1252@gmail.com Approved by: joshruehlig@gmail.com (maintainer)
80 lines
2.5 KiB
Makefile
80 lines
2.5 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= sabnzbdplus
|
|
PORTVERSION= 0.7.20
|
|
PORTREVISION= 3
|
|
CATEGORIES= news
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
|
|
DISTNAME= SABnzbd-${PORTVERSION}-src
|
|
|
|
MAINTAINER= joshruehlig@gmail.com
|
|
COMMENT= Web-interface based binary newsgrabber in python, with nzb support
|
|
|
|
LICENSE= BSD2CLAUSE BSD3CLAUSE GPLv2 GPLv3 ISCL MIT PSFL
|
|
LICENSE_COMB= multi
|
|
|
|
RUN_DEPENDS= cheetah:${PORTSDIR}/devel/py-cheetah \
|
|
${PYTHON_SITELIBDIR}/pythonutils/configobj.py:${PORTSDIR}/devel/py-utils \
|
|
${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3
|
|
|
|
USES= gettext python:2.5-2.7
|
|
|
|
NO_BUILD= yes
|
|
WRKSRC= ${WRKDIR}/SABnzbd-${PORTVERSION}
|
|
PLIST_SUB= PORTNAME=${PORTNAME}
|
|
SUB_LIST= PORTNAME=${PORTNAME} PYTHON_CMD=${PYTHON_CMD}
|
|
SUB_FILES= pkg-message
|
|
USE_RC_SUBR= sabnzbd
|
|
|
|
PORTDOCS= ABOUT.txt \
|
|
CHANGELOG.txt \
|
|
COPYRIGHT.txt \
|
|
INSTALL.txt \
|
|
ISSUES.txt \
|
|
README.txt
|
|
|
|
USERS= _sabnzbd
|
|
GROUPS= _sabnzbd
|
|
|
|
OPTIONS_DEFINE= PAR2CMDLINE UNRAR FEEDPARSER YENC OPENSSL DOCS
|
|
OPTIONS_DEFAULT= PAR2CMDLINE UNRAR FEEDPARSER YENC OPENSSL
|
|
PAR2CMDLINE_DESC= Required for postprocessing of par files
|
|
UNRAR_DESC= Often required for unpacking many downloads
|
|
FEEDPARSER_DESC= rss-feed support
|
|
YENC_DESC= yenc support
|
|
|
|
PAR2CMDLINE_RUN_DEPENDS= par2repair:${PORTSDIR}/archivers/par2cmdline-tbb
|
|
FEEDPARSER_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}feedparser>=0:${PORTSDIR}/textproc/py-feedparser
|
|
YENC_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}yenc>=0:${PORTSDIR}/news/py-yenc
|
|
OPENSSL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}openssl>=0:${PORTSDIR}/security/py-openssl
|
|
UNRAR_RUN_DEPENDS= unrar:${PORTSDIR}/archivers/unrar
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e "s:/usr/bin/python:${PYTHON_CMD}:g" \
|
|
${WRKSRC}/SABnzbd.py
|
|
@${REINPLACE_CMD} -e "s:%%DATADIR%%:'${DATADIR}':g" \
|
|
${WRKSRC}/SABnzbd.py
|
|
|
|
# the NO_BUILD option stops execution after configure. This should really be
|
|
# post-build
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/SABnzbd.py ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL} -d ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/sabnzbd
|
|
cd ${WRKSRC}/sabnzbd && ${COPYTREE_SHARE} \* ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/sabnzbd
|
|
${INSTALL} -d ${STAGEDIR}${DATADIR}
|
|
.for i in cherrypy gntp interfaces locale po tools util
|
|
${MKDIR} ${STAGEDIR}${DATADIR}/${i}
|
|
cd ${WRKSRC}/${i} && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR}/${i}
|
|
.endfor
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for i in ${PORTDOCS}
|
|
${INSTALL_MAN} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|