Lines 16-27
Link Here
|
16 |
${PYTHON_SITELIBDIR}/pythonutils/configobj.py:${PORTSDIR}/devel/py-utils \ |
16 |
${PYTHON_SITELIBDIR}/pythonutils/configobj.py:${PORTSDIR}/devel/py-utils \ |
17 |
${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 |
17 |
${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 |
18 |
|
18 |
|
19 |
USES= gettext python |
19 |
USES= gettext python:2.5-2.7 |
20 |
|
20 |
|
21 |
NO_BUILD= yes |
21 |
NO_BUILD= yes |
22 |
WRKSRC= ${WRKDIR}/SABnzbd-${PORTVERSION} |
22 |
WRKSRC= ${WRKDIR}/SABnzbd-${PORTVERSION} |
23 |
PLIST_SUB= PORTNAME=${PORTNAME} |
23 |
PLIST_SUB= PORTNAME=${PORTNAME} |
24 |
SUB_LIST+= PORTNAME=${PORTNAME} PYTHON_CMD=${PYTHON_CMD} |
24 |
SUB_LIST= PORTNAME=${PORTNAME} PYTHON_CMD=${PYTHON_CMD} |
25 |
SUB_FILES= pkg-message |
25 |
SUB_FILES= pkg-message |
26 |
USE_RC_SUBR= sabnzbd |
26 |
USE_RC_SUBR= sabnzbd |
27 |
|
27 |
|
Lines 44-73
Link Here
|
44 |
|
44 |
|
45 |
.include <bsd.port.pre.mk> |
45 |
.include <bsd.port.pre.mk> |
46 |
|
46 |
|
47 |
.if ${PORT_OPTIONS:MPAR2CMDLINE} |
47 |
PAR2CMDLINE_RUN_DEPENDS= par2repair:${PORTSDIR}/archivers/par2cmdline-tbb |
48 |
RUN_DEPENDS+= par2repair:${PORTSDIR}/archivers/par2cmdline-tbb |
48 |
FEEDPARSER_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}feedparser>=0:${PORTSDIR}/textproc/py-feedparser |
49 |
.endif |
49 |
YENC_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}yenc>=0:${PORTSDIR}/news/py-yenc |
50 |
|
50 |
OPENSSL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}openssl>=0:${PORTSDIR}/security/py-openssl |
51 |
.if ${PORT_OPTIONS:MFEEDPARSER} |
51 |
UNRAR_RUN_DEPENDS= unrar:${PORTSDIR}/archivers/unrar |
52 |
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}feedparser>=0:${PORTSDIR}/textproc/py-feedparser |
|
|
53 |
.endif |
54 |
|
55 |
.if ${PORT_OPTIONS:MYENC} |
56 |
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}yenc>=0:${PORTSDIR}/news/py-yenc |
57 |
.endif |
58 |
|
59 |
.if ${PORT_OPTIONS:MOPENSSL} |
60 |
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}openssl>=0:${PORTSDIR}/security/py-openssl |
61 |
.endif |
62 |
|
63 |
.if ${PORT_OPTIONS:MUNRAR} |
64 |
RUN_DEPENDS+= unrar:${PORTSDIR}/archivers/unrar |
65 |
.endif |
66 |
|
52 |
|
67 |
post-patch: |
53 |
post-patch: |
68 |
@${REINPLACE_CMD} -e "s:/usr/bin/python:${PYTHON_CMD}:g" \ |
54 |
@${REINPLACE_CMD} -e "s:/usr/bin/python:${PYTHON_CMD}:g" \ |
69 |
${WRKSRC}/SABnzbd.py |
55 |
${WRKSRC}/SABnzbd.py |
70 |
@${REINPLACE_CMD} -e "s:%%PREFIX%%:'${DATADIR}':g" \ |
56 |
@${REINPLACE_CMD} -e "s:%%DATADIR%%:'${DATADIR}':g" \ |
71 |
${WRKSRC}/SABnzbd.py |
57 |
${WRKSRC}/SABnzbd.py |
72 |
|
58 |
|
73 |
# the NO_BUILD option stops execution after configure. This should really be |
59 |
# the NO_BUILD option stops execution after configure. This should really be |
Lines 77-83
Link Here
|
77 |
${INSTALL} -d ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/sabnzbd |
63 |
${INSTALL} -d ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/sabnzbd |
78 |
cd ${WRKSRC}/sabnzbd && ${COPYTREE_SHARE} \* ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/sabnzbd |
64 |
cd ${WRKSRC}/sabnzbd && ${COPYTREE_SHARE} \* ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/sabnzbd |
79 |
${INSTALL} -d ${STAGEDIR}${DATADIR} |
65 |
${INSTALL} -d ${STAGEDIR}${DATADIR} |
80 |
${INSTALL} -d ${STAGEDIR}${PREFIX}/sabnzbd |
|
|
81 |
.for i in cherrypy gntp interfaces locale po tools util |
66 |
.for i in cherrypy gntp interfaces locale po tools util |
82 |
${MKDIR} ${STAGEDIR}${DATADIR}/${i} |
67 |
${MKDIR} ${STAGEDIR}${DATADIR}/${i} |
83 |
cd ${WRKSRC}/${i} && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR}/${i} |
68 |
cd ${WRKSRC}/${i} && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR}/${i} |
Lines 86-92
Link Here
|
86 |
.if ${PORT_OPTIONS:MDOCS} |
71 |
.if ${PORT_OPTIONS:MDOCS} |
87 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
72 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
88 |
.for i in ${PORTDOCS} |
73 |
.for i in ${PORTDOCS} |
89 |
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR} |
74 |
${INSTALL_MAN} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR} |
90 |
.endfor |
75 |
.endfor |
91 |
.endif |
76 |
.endif |
92 |
|
77 |
|