aboutsummaryrefslogtreecommitdiffstats
path: root/news/sabnzbd/Makefile
blob: 665772019600c205dff5b7b9cc3dde18ed201e5b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# New ports collection makefile for:    sabnzbd
# Date created:             16 March 2006
# Whom:                 Daniel Bretoi
#
# $FreeBSD$
#

PORTNAME=   SABnzbd
PORTVERSION=    0.1.8.1
CATEGORIES= news
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= sabnzbd

MAINTAINER= daniel@netwalk.org
COMMENT=    A web-interface based binary newsgrabber in python, with nzb support

BUILD_DEPENDS=  ${RUN_DEPENDS}
RUN_DEPENDS=    cheetah:${PORTSDIR}/devel/py-cheetah \
        ${PYTHON_SITELIBDIR}/cherrypy/__init__.py:${PORTSDIR}/www/py-cherrypy \
        ${PYTHON_SITELIBDIR}/pythonutils/configobj.py:${PORTSDIR}/devel/py-utils \
        ${PYTHON_SITELIBDIR}/cElementTree.so:${PORTSDIR}/devel/py-celementtree

USE_PYTHON= 2.4
USE_PYDISTUTILS=yes

PLIST_SUB=  PORTNAME=${PORTNAME}
SUB_FILES=  pkg-message

OPTIONS=    PAR2CMDLINE "Required for postprocessing of par files." on \
        UNRAR "Often required for unpacking many downloads." on

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_PAR2CMDLINE)
RUN_DEPENDS+=   par2repair:${PORTSDIR}/archivers/par2cmdline
.endif

.if !defined(WITHOUT_UNRAR)
RUN_DEPENDS+=   unrar:${PORTSDIR}/archivers/unrar
.endif

post-install:
    ${CHMOD} -R go+r ${PREFIX}/share/${PORTNAME}/
    ${CHMOD} -R go+r ${PREFIX}/share/doc/${PORTNAME}/
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>