diff options
author | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2014-05-30 05:31:20 +0000 |
---|---|---|
committer | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2014-05-30 05:31:20 +0000 |
commit | de880f71557edfdf62569ebbe315af09020a7546 (patch) | |
tree | 25c2404222e747b277166626a27fe57e9fc53af5 /multimedia/py-periscope | |
parent | 76e1fca2e41d1f53f2d68c7294979dd1251a093a (diff) | |
download | ports-de880f71557edfdf62569ebbe315af09020a7546.tar.gz ports-de880f71557edfdf62569ebbe315af09020a7546.zip |
- 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>
Notes
Notes:
svn path=/head/; revision=355776
Diffstat (limited to 'multimedia/py-periscope')
-rw-r--r-- | multimedia/py-periscope/Makefile | 32 | ||||
-rw-r--r-- | multimedia/py-periscope/pkg-plist | 3 |
2 files changed, 11 insertions, 24 deletions
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} - -.include <bsd.port.options.mk> -.include <bsd.port.pre.mk> - -.if ${PORT_OPTIONS:MUNRAR} -RUN_DEPENDS+= unrar:${PORTSDIR}/archivers/unrar -.endif + ${STAGEDIR}${DESKTOPDIR} -.include <bsd.port.post.mk> +.include <bsd.port.mk> 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 |