aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/py-subliminal/Makefile
blob: 81d0b7f70f17d44b27b13260bc9507536bc0ec76 (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
# Created by: William Grzybowski <william88@gmail.com>
# $FreeBSD$

PORTNAME=   subliminal
PORTVERSION=    0.7.3
PORTREVISION=   2
CATEGORIES= multimedia python
MASTER_SITES=   CHEESESHOP
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= wg@FreeBSD.org
COMMENT=    Python library to search and download subtitles

LICENSE=    LGPL3

RUN_DEPENDS=    ${PYTHON_SITELIBDIR}/bs4/__init__.py:${PORTSDIR}/www/py-beautifulsoup \
        ${PYTHON_PKGNAMEPREFIX}enzyme>=0.4.0:${PORTSDIR}/multimedia/py-enzyme \
        ${PYTHON_PKGNAMEPREFIX}guessit>=0.6.1:${PORTSDIR}/multimedia/py-guessit \
        ${PYTHON_PKGNAMEPREFIX}requests1>=1.1:${PORTSDIR}/www/py-requests1 \
        ${PYTHON_PKGNAMEPREFIX}html5lib>0:${PORTSDIR}/www/py-html5lib \
        ${PYTHON_PKGNAMEPREFIX}charade>0:${PORTSDIR}/textproc/py-charade \
        ${PYTHON_PKGNAMEPREFIX}pysrt>0:${PORTSDIR}/textproc/py-pysrt \
        ${PYTHON_PKGNAMEPREFIX}babelfish>=0.4.0:${PORTSDIR}/devel/py-babelfish \
        ${PYTHON_PKGNAMEPREFIX}dogpile.cache>=0.5.2:${PORTSDIR}/devel/py-dogpile.cache

USE_PYTHON= 2
USE_PYDISTUTILS=    yes
PYDISTUTILS_AUTOPLIST=  yes

post-patch:
    @${REINPLACE_CMD} "s/.com',/.com', zip_safe=False,/" \
        ${WRKSRC}/setup.py
    @${REINPLACE_CMD} \
        -e 's,^requests.*,requests,g' \
        -e 's,^html5lib.*,html5lib,g' \
        ${WRKSRC}/requirements.txt

.include <bsd.port.mk>