aboutsummaryrefslogtreecommitdiff
path: root/news/lottanzb/Makefile
blob: dc4c66a00d85f0465e2f022461d085b4673fc7e9 (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
61
62
63
64
65
# New ports collection makefile for:	lottanzb
# Date created:		Mon Feb 02 2009
# Whom:			Zach Thompson <hideo@lastamericanempire.com>
#
# $FreeBSD$
# $Id$
#

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

MAINTAINER=	c-s@c-s.li
COMMENT=	A pyGTK usenet frontend for hellanzb

RUN_DEPENDS=	SABnzbd.py:${PORTSDIR}/news/sabnzbdplus \
		yelp:${PORTSDIR}/x11/yelp \
		par2:${PORTSDIR}/archivers/par2cmdline \
		unrar:${PORTSDIR}/archivers/unrar \
		unzip:${PORTSDIR}/archivers/unzip \
		${PYTHON_SITELIBDIR}/yenc.py:${PORTSDIR}/news/py-yenc \
		${PYTHON_SITELIBDIR}/feedparser.py:${PORTSDIR}/textproc/py-feedparser \
		${PYTHON_SITELIBDIR}/OpenSSL/__init__.py:${PORTSDIR}/security/py-openssl

LICENSE=	GPLv3

USE_PYTHON=	yes
USE_PYDISTUTILS=yes
USE_GNOME=	desktopfileutils intltool
INSTALLS_ICONS=	yes
INSTALLS_OMF=	yes

PORTDOCS=	README NEWS

MAN1=		lottanzb.1

.include <bsd.port.pre.mk>

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:
	-@update-desktop-database
	-@update-mime-database ${PREFIX}/share/mime
	-@gtk-update-icon-cache -q -f ${PREFIX}/share/icons/hicolor
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif

.if !defined(WITHOUT_NLS)
USE_GETTEXT=	yes
PLIST_SUB+=	NLS=""
.else
PLIST_SUB+=	NLS="@comment "
.endif

.include <bsd.port.post.mk>