aboutsummaryrefslogtreecommitdiff
path: root/news/hellanzb/Makefile
blob: c17f62b7821657a1267678f0f58524089038ab5f (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
# Created by: Philip Jenvey <pjenvey@groovie.org>
# $FreeBSD$

PORTNAME=	hellanzb
PORTVERSION=	0.13
PORTREVISION=	4
CATEGORIES=	news
MASTER_SITES=	http://www.hellanzb.com/distfiles/

MAINTAINER=	pjenvey@groovie.org
COMMENT=	Nzb downloader and post processor

LICENSE=	BSD3CLAUSE

RUN_DEPENDS=	par2:archivers/par2cmdline \
		flac:audio/flac \
		shorten:audio/shorten \
		${PYTHON_PKGNAMEPREFIX}twisted>=0:devel/py-twisted@${FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}yenc>=0:news/py-yenc@${FLAVOR} \
		mac:audio/mac

USE_PYTHON=	distutils
USES=		python:2.7
PORTDOCS=	CHANGELOG CREDITS README
NO_ARCH=	yes

OPTIONS_DEFINE=	DOCS

.include <bsd.port.options.mk>

# more fully-featured rar needs i386
.if ${ARCH} == "i386"
RUN_DEPENDS+=	rar:archivers/rar
.else
RUN_DEPENDS+=	unrar:archivers/unrar
.endif

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for doc in ${PORTDOCS}
	@${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.mk>