aboutsummaryrefslogtreecommitdiff
path: root/multimedia/py-periscope/Makefile
blob: 17ab551dd7a4fc81bfabdff49cca85ed64d91b35 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
# $FreeBSD$

PORTNAME=	periscope
PORTVERSION=	0.2.4
PORTREVISION=	3
CATEGORIES=	multimedia python
MASTER_SITES=	GOOGLE_CODE
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
DISTFILES=	python-${PORTNAME}_${PORTVERSION}.orig${EXTRACT_SUFX} \
		periscope.desktop
DIST_SUBDIR=	${PORTNAME}
EXTRACT_ONLY=	python-${PORTNAME}_${PORTVERSION}.orig${EXTRACT_SUFX}

MAINTAINER=	bofh@FreeBSD.org
COMMENT=	Subtitles searching module

LICENSE=	LGPL3

BUILD_DEPENDS=	${PYTHON_SITELIBDIR}/BeautifulSoup.py:www/py-beautifulsoup32
RUN_DEPENDS:=	${BUILD_DEPENDS}

USE_PYTHON=	distutils autoplist
NO_WRKSUBDIR=	yes
USES=		desktop-file-utils python

OPTIONS_DEFINE=	UNRAR
UNRAR_DESC=	rar support (.rar) for compressed subtitles
UNRAR_RUN_DEPENDS=	unrar:archivers/unrar

OPTIONS_DEFAULT=	UNRAR

PLIST_FILES=	share/applications/periscope.desktop

post-install:
	@${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/periscope.desktop \
		${STAGEDIR}${DESKTOPDIR}

.include <bsd.port.mk>