1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- 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>
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2014-05-30 05:31:20 +00:00
parent 76e1fca2e4
commit de880f7155
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=355776
2 changed files with 11 additions and 24 deletions

View File

@ -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 <bsd.port.options.mk>
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MUNRAR}
RUN_DEPENDS+= unrar:${PORTSDIR}/archivers/unrar
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -1,3 +0,0 @@
bin/periscope
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
%%DESKTOPDIR%%/periscope.desktop