From 6317af641b81b2b6f3a1ed0a5c4fdd85a278685a Mon Sep 17 00:00:00 2001 From: jgh Date: Wed, 5 Jun 2013 01:18:48 +0000 Subject: - adoption of optionsNG - while here convert to USES for py-periscope Approved by: portmgr (bapt) --- multimedia/py-periscope/Makefile | 16 ++++++++-------- multimedia/py-periscope/pkg-plist | 2 -- 2 files changed, 8 insertions(+), 10 deletions(-) (limited to 'multimedia/py-periscope') diff --git a/multimedia/py-periscope/Makefile b/multimedia/py-periscope/Makefile index 20851c4a331c..3f05f36e4427 100644 --- a/multimedia/py-periscope/Makefile +++ b/multimedia/py-periscope/Makefile @@ -1,7 +1,4 @@ -# New ports collection makefile for: periscope -# Date created: Sun Jul 24 20:23:58 UTC 2011 -# Whom: Mario Sergio Fujikawa Ferreira -# +# Created by: Mario Sergio Fujikawa Ferreira # $FreeBSD$ PORTNAME= periscope @@ -27,8 +24,12 @@ USE_GNOME= desktopfileutils USE_PYTHON= 2.6+ USE_PYDISTUTILS= easy_install NO_WRKSUBDIR= yes +USES= desktop-file-utils -OPTIONS= UNRAR "Enable support for rar (.rar) compressed subtitles" on +OPTIONS_DEFINE= UNRAR +UNRAR_DESC= rar support (.rar) for compressed subtitles + +OPTIONS_DEFAULT= UNRAR PLIST_SUB= DESKTOPDIR=${DESKTOPDIR_WITHOUT_PREFIX:Q} @@ -38,12 +39,11 @@ post-install: @${MKDIR} ${DESKTOPDIR} @${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/periscope.desktop \ ${DESKTOPDIR} - @-${LOCALBASE}/bin/update-desktop-database +.include .include -# unrar (.rar) support -.if !defined(WITHOUT_UNRAR) +.if ${PORT_OPTIONS:MUNRAR} RUN_DEPENDS+= unrar:${PORTSDIR}/archivers/unrar .endif diff --git a/multimedia/py-periscope/pkg-plist b/multimedia/py-periscope/pkg-plist index 700a17b9de27..18979ee9c065 100644 --- a/multimedia/py-periscope/pkg-plist +++ b/multimedia/py-periscope/pkg-plist @@ -1,5 +1,3 @@ bin/periscope %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%% %%DESKTOPDIR%%/periscope.desktop -@exec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true -@unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true -- cgit