diff options
author | Jason Helfman <jgh@FreeBSD.org> | 2013-04-30 07:11:19 +0000 |
---|---|---|
committer | Jason Helfman <jgh@FreeBSD.org> | 2013-04-30 07:11:19 +0000 |
commit | 057a0f2dbc0d87ce029dd391d7859e88366e1bb2 (patch) | |
tree | 749ae8abb23c24145259cb3314ad5099aaac642a /news | |
parent | bd64d519948dea6790e0a951fce1299c4e3adb5a (diff) | |
download | ports-057a0f2dbc0d87ce029dd391d7859e88366e1bb2.tar.gz ports-057a0f2dbc0d87ce029dd391d7859e88366e1bb2.zip |
Notes
Diffstat (limited to 'news')
-rw-r--r-- | news/lottanzb/Makefile | 38 | ||||
-rw-r--r-- | news/lottanzb/pkg-plist | 4 |
2 files changed, 16 insertions, 26 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> diff --git a/news/lottanzb/pkg-plist b/news/lottanzb/pkg-plist index 3932152f7f27..0d286e193883 100644 --- a/news/lottanzb/pkg-plist +++ b/news/lottanzb/pkg-plist @@ -539,9 +539,5 @@ share/mime-info/lottanzb.mime @dirrm %%DATADIR%%/ui @dirrm share/lottanzb @exec mkdir -p %D/share/omf/lottanzb -@exec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true -@unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true -@exec %%LOCALBASE%%/bin/update-mime-database %D/share/mime -@unexec %%LOCALBASE%%/bin/update-mime-database %D/share/mime @exec %%LOCALBASE%%/bin/gtk-update-icon-cache -q -f %D/share/icons/hicolor 2>/dev/null || /usr/bin/true @unexec %%LOCALBASE%%/bin/gtk-update-icon-cache -q -f %D/share/icons/hicolor 2>/dev/null || /usr/bin/true |