1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/news/sabnzbdplus/Makefile
Greg Larkin d1647fb39b - Removed Python 2.5 requirement introduced by recent commit, since the
application appears to work correctly (w/ warnings) under Python 2.6. [1]
- Removed the corresponding entry in UPDATING

PR:		ports/138976
Reported by:	Lee Packham <lpackham@leenux.org.uk>, Thomas Maack Nielsen <tmn@concare.net> [1]
2010-01-25 23:00:29 +00:00

84 lines
2.3 KiB
Makefile

# New ports collection makefile for: sabnzdbplus
# Date created: January 2008
# Whom: Daniel Bretoi
#
# $FreeBSD$
#
PORTNAME= sabnzbdplus
PORTVERSION= 0.4.12
PORTREVISION= 2
CATEGORIES= news
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/sabnzbd-${PORTVERSION}
DISTNAME= SABnzbd-${PORTVERSION}-src
MAINTAINER= daniel@netwalk.org
COMMENT= A web-interface based binary newsgrabber in python, with nzb support
RUN_DEPENDS= cheetah:${PORTSDIR}/devel/py-cheetah \
${PYTHON_SITELIBDIR}/cherrypy/__init__.py:${PORTSDIR}/www/py-cherrypy-old \
${PYTHON_SITELIBDIR}/pythonutils/configobj.py:${PORTSDIR}/devel/py-utils
BUILD_DEPENDS= ${RUN_DEPENDS}
USE_PYTHON= 2.4+
PYVERSION= ${PYTHON_VERSION:S/^python//}
NO_BUILD= yes
WRKSRC= ${WRKDIR}/SABnzbd-${PORTVERSION}
PLIST_SUB= PORTNAME=${PORTNAME}
SUB_LIST+= PORTNAME=${PORTNAME}
CONFLICTS= sabzndb-0.*
OPTIONS= PAR2CMDLINE "Required for postprocessing of par files." on \
UNRAR "Often required for unpacking many downloads." on \
FEEDPARSER "rss-feed support." on \
OPENSSL "SSL support" on
.include <bsd.port.pre.mk>
.if defined(PYTHON_VERSION) && ${PYVERSION:S/.//} < 25
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/cElementTree.so:${PORTSDIR}/devel/py-celementtree
.endif
.if !defined(WITHOUT_PAR2CMDLINE)
RUN_DEPENDS+= par2repair:${PORTSDIR}/archivers/par2cmdline
.endif
.if !defined(WITHOUT_FEEDPARSER)
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/OpenSSL/SSL.so:${PORTSDIR}/security/py-openssl
.endif
.if !defined(WITHOUT_OPENSSL)
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/feedparser.py:${PORTSDIR}/textproc/py-feedparser
.endif
.if !defined(WITHOUT_UNRAR)
RUN_DEPENDS+= unrar:${PORTSDIR}/archivers/unrar
.endif
post-patch:
@${REINPLACE_CMD} -e "s:/usr/bin/python:${PYTHON_CMD}:g" \
${WRKSRC}/SABnzbd.py
@${REINPLACE_CMD} -e "s:%%PREFIX%%:'${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 ${PREFIX}/bin/SABnzbd.py
${INSTALL} -d ${PYTHONPREFIX_SITELIBDIR}/
${CP} -rp ${WRKSRC}/sabnzbd ${PYTHONPREFIX_SITELIBDIR}/
${INSTALL} -d ${DATADIR}
${CP} -rp ${WRKSRC}/interfaces ${DATADIR}
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for i in CHANGELOG.txt INSTALL.txt ISSUES.txt LICENSE.txt README.txt
${CP} ${WRKSRC}/$i ${DOCSDIR}
.endfor
.endif
@${CAT} pkg-message
.include <bsd.port.post.mk>