From de880f71557edfdf62569ebbe315af09020a7546 Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Fri, 30 May 2014 05:31:20 +0000 Subject: [PATCH] - Add LICENSE - Use USE_PYDISTUTILS=yes and PYDISTUTILS_AUTOPLIST - Remove USE_GNOME=desktopfileutils - Convert to new options helper - Support STAGEDIR - Bump PORTREVISION for package change - Pass maintainership to submitter - While I'm here: - Fix post-install: DESKTOPDIR is already in BSD.local.dist - Simplify Makefile PR: ports/190255 Submitted by: Muhammad Moinur Rahman <5u623l20@gmail.com> --- multimedia/py-periscope/Makefile | 32 +++++++++++-------------------- multimedia/py-periscope/pkg-plist | 3 --- 2 files changed, 11 insertions(+), 24 deletions(-) delete mode 100644 multimedia/py-periscope/pkg-plist diff --git a/multimedia/py-periscope/Makefile b/multimedia/py-periscope/Makefile index c182a729e890..9fecd9ca8ff8 100644 --- a/multimedia/py-periscope/Makefile +++ b/multimedia/py-periscope/Makefile @@ -3,7 +3,7 @@ PORTNAME= periscope PORTVERSION= 0.2.4 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= multimedia python MASTER_SITES= GOOGLE_CODE PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -12,40 +12,30 @@ DISTFILES= python-${PORTNAME}_${PORTVERSION}.orig${EXTRACT_SUFX} \ DIST_SUBDIR= ${PORTNAME} EXTRACT_ONLY= python-${PORTNAME}_${PORTVERSION}.orig${EXTRACT_SUFX} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= 5u623l20@gmail.com COMMENT= Subtitles searching module LICENSE= LGPL3 -RUN_DEPENDS= ${PYTHON_SITELIBDIR}/BeautifulSoup.py:${PORTSDIR}/www/py-beautifulsoup32 -BUILD_DEPENDS:= ${RUN_DEPENDS} +BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/BeautifulSoup.py:${PORTSDIR}/www/py-beautifulsoup32 +RUN_DEPENDS:= ${BUILD_DEPENDS} -USE_GNOME= desktopfileutils USE_PYTHON= yes -USE_PYDISTUTILS= easy_install +USE_PYDISTUTILS=yes +PYDISTUTILS_AUTOPLIST= yes NO_WRKSUBDIR= yes -USES= desktop-file-utils +USES= desktop-file-utils OPTIONS_DEFINE= UNRAR UNRAR_DESC= rar support (.rar) for compressed subtitles +UNRAR_RUN_DEPENDS= unrar:${PORTSDIR}/archivers/unrar OPTIONS_DEFAULT= UNRAR -PLIST_SUB= DESKTOPDIR=${DESKTOPDIR_WITHOUT_PREFIX:Q} +PLIST_FILES= share/applications/periscope.desktop -DESKTOPDIR_WITHOUT_PREFIX= ${DESKTOPDIR:S,^${PREFIX}/,,} - -NO_STAGE= yes post-install: - @${MKDIR} ${DESKTOPDIR} @${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/periscope.desktop \ - ${DESKTOPDIR} + ${STAGEDIR}${DESKTOPDIR} -.include -.include - -.if ${PORT_OPTIONS:MUNRAR} -RUN_DEPENDS+= unrar:${PORTSDIR}/archivers/unrar -.endif - -.include +.include diff --git a/multimedia/py-periscope/pkg-plist b/multimedia/py-periscope/pkg-plist deleted file mode 100644 index 18979ee9c065..000000000000 --- a/multimedia/py-periscope/pkg-plist +++ /dev/null @@ -1,3 +0,0 @@ -bin/periscope -%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%% -%%DESKTOPDIR%%/periscope.desktop