diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2014-05-30 13:31:20 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2014-05-30 13:31:20 +0800 |
commit | ab930db21f932265f54d71a0c070c5b6abc5af2c (patch) | |
tree | 25c2404222e747b277166626a27fe57e9fc53af5 /multimedia | |
parent | d06ac1c1533bac9b94e9ab33df79f3de31c580d0 (diff) | |
download | freebsd-ports-gnome-ab930db21f932265f54d71a0c070c5b6abc5af2c.tar.gz freebsd-ports-gnome-ab930db21f932265f54d71a0c070c5b6abc5af2c.tar.zst freebsd-ports-gnome-ab930db21f932265f54d71a0c070c5b6abc5af2c.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>
Diffstat (limited to 'multimedia')
-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 |