aboutsummaryrefslogtreecommitdiff
path: root/news/lottanzb/Makefile
blob: e5a9786110ce5409e2978e448abd2a1fd7afbf93 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
# Created by: Zach Thompson <hideo@lastamericanempire.com>
# $FreeBSD$

PORTNAME=	lottanzb
PORTVERSION=	0.6
PORTREVISION=	2
CATEGORIES=	news
MASTER_SITES=	http://www.lottanzb.org/releases/ \
		http://launchpadlibrarian.net/64247317/ \
		http://www.c-s.li/ports/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	pyGTK usenet frontend for hellanzb

LICENSE=	GPLv3

RUN_DEPENDS=	SABnzbd.py:${PORTSDIR}/news/sabnzbdplus \
		yelp:${PORTSDIR}/x11/yelp \
		unrar:${PORTSDIR}/archivers/unrar \
		unzip:${PORTSDIR}/archivers/unzip \
		${PYTHON_PKGNAMPREFIX}yenc>=0:${PORTSDIR}/news/py-yenc \
		${PYTHON_PKGNAMPREFIX}feedparser>=0:${PORTSDIR}/textproc/py-feedparser \
		${PYTHON_PKGNAMPREFIX}openssl>=0:${PORTSDIR}/security/py-openssl

BROKEN=		overwrite a file owned by misc/shared-mime-info: share/mime/application/x-nzb.xml

USE_PYTHON=	yes
USE_PYDISTUTILS=yes
USE_GNOME=	desktopfileutils intltool
INSTALLS_ICONS=	yes
INSTALLS_OMF=	yes
USES=		shared-mime-info desktop-file-utils

PORTDOCS=	README NEWS

MAN1=		lottanzb.1

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MNLS}
USES+=		gettext
PLIST_SUB+=	NLS=""
.else
PLIST_SUB+=	NLS="@comment "
.endif

post-patch:
	@${REINPLACE_CMD} -e 's/try_to_call(\[".*$$//' ${WRKSRC}/setup.py
	@${REINPLACE_CMD} -e 's/.share., \(.man.\)/\1/; s/^ *__stdfiles(attrs, src)//' \
	${WRKSRC}/distutilsextra/auto.py
post-install:
	-@gtk-update-icon-cache -q -f ${PREFIX}/share/icons/hicolor
.if ${PORT_OPTIONS:MDOCS}
	${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>