aboutsummaryrefslogtreecommitdiff
path: root/news/lottanzb/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'news/lottanzb/Makefile')
-rw-r--r--news/lottanzb/Makefile38
1 files changed, 16 insertions, 22 deletions
diff --git a/news/lottanzb/Makefile b/news/lottanzb/Makefile
index 253c3ffe28f9..e5a9786110ce 100644
--- a/news/lottanzb/Makefile
+++ b/news/lottanzb/Makefile
@@ -1,10 +1,5 @@
-# New ports collection makefile for: lottanzb
-# Date created: Mon Feb 02 2009
-# Whom: Zach Thompson <hideo@lastamericanempire.com>
-#
+# Created by: Zach Thompson <hideo@lastamericanempire.com>
# $FreeBSD$
-# $Id$
-#
PORTNAME= lottanzb
PORTVERSION= 0.6
@@ -15,7 +10,7 @@ MASTER_SITES= http://www.lottanzb.org/releases/ \
http://www.c-s.li/ports/
MAINTAINER= ports@FreeBSD.org
-COMMENT= A pyGTK usenet frontend for hellanzb
+COMMENT= pyGTK usenet frontend for hellanzb
LICENSE= GPLv3
@@ -23,9 +18,9 @@ RUN_DEPENDS= SABnzbd.py:${PORTSDIR}/news/sabnzbdplus \
yelp:${PORTSDIR}/x11/yelp \
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
+ ${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
@@ -34,33 +29,32 @@ 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.pre.mk>
+.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:
- -@update-desktop-database
- -@update-mime-database ${PREFIX}/share/mime
-@gtk-update-icon-cache -q -f ${PREFIX}/share/icons/hicolor
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${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>
+.include <bsd.port.mk>