aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/py-periscope/Makefile
blob: c182a729e890d62a4958e32dbe0033801f5b6960 (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
40
41
42
43
44
45
46
47
48
49
50
51
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
# $FreeBSD$

PORTNAME=   periscope
PORTVERSION=    0.2.4
PORTREVISION=   2
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= ports@FreeBSD.org
COMMENT=    Subtitles searching module

LICENSE=    LGPL3

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

USE_GNOME=  desktopfileutils
USE_PYTHON= yes
USE_PYDISTUTILS=    easy_install
NO_WRKSUBDIR=   yes
USES=   desktop-file-utils

OPTIONS_DEFINE= UNRAR
UNRAR_DESC= rar support (.rar) for compressed subtitles

OPTIONS_DEFAULT=    UNRAR

PLIST_SUB=  DESKTOPDIR=${DESKTOPDIR_WITHOUT_PREFIX:Q}

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

.include <bsd.port.post.mk>