aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2011-08-27 10:39:08 +0800
committerlioux <lioux@FreeBSD.org>2011-08-27 10:39:08 +0800
commit404a80b60e40c77712ef41bb8600a8b0529ed917 (patch)
treefc459f01724fc3050de706293e95750126de32a5 /multimedia
parentfa1ed449bd1d427b070917b28517c8a492668a2d (diff)
downloadfreebsd-ports-gnome-404a80b60e40c77712ef41bb8600a8b0529ed917.tar.gz
freebsd-ports-gnome-404a80b60e40c77712ef41bb8600a8b0529ed917.tar.zst
freebsd-ports-gnome-404a80b60e40c77712ef41bb8600a8b0529ed917.zip
o Add option UNRAR to "Enable support for rar (.rar) compressed
subtitles" with default on o Be explicit about the required python version: 2.6+ o Bump PORTREVISION
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/py-periscope/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/multimedia/py-periscope/Makefile b/multimedia/py-periscope/Makefile
index 1aaa5a12eb08..2f60aff288ff 100644
--- a/multimedia/py-periscope/Makefile
+++ b/multimedia/py-periscope/Makefile
@@ -6,6 +6,7 @@
PORTNAME= periscope
PORTVERSION= 0.2.4
+PORTREVISION= 1
CATEGORIES= multimedia python
MASTER_SITES= GOOGLE_CODE
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -23,10 +24,12 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}beautifulsoup>=3.2.0:${PORTSDIR}/www/py-beau
BUILD_DEPENDS= ${RUN_DEPENDS}
USE_GNOME= desktopfileutils
-USE_PYTHON= yes
+USE_PYTHON= 2.6+
USE_PYDISTUTILS= easy_install
NO_WRKSUBDIR= yes
+OPTIONS= UNRAR "Enable support for rar (.rar) compressed subtitles" on
+
PLIST_SUB= DESKTOPDIR=${DESKTOPDIR_WITHOUT_PREFIX:Q}
DESKTOPDIR_WITHOUT_PREFIX= ${DESKTOPDIR:S,^${PREFIX}/,,}
@@ -37,4 +40,11 @@ post-install:
${DESKTOPDIR}
@-${LOCALBASE}/bin/update-desktop-database
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+# unrar (.rar) support
+.if !defined(WITHOUT_UNRAR)
+RUN_DEPENDS+= unrar:${PORTSDIR}/archivers/unrar
+.endif
+
+.include <bsd.port.post.mk>