aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/gaupol/Makefile
blob: 4efc98e4c7ea8c42bc4e35cad26f534c4c1f7b6b (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
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$

PORTNAME=   gaupol
PORTVERSION=    0.19.2
PORTREVISION=   4
CATEGORIES= multimedia python
MASTER_SITES=   http://download.gna.org/gaupol/0.19/ \
        http://www.c-s.li/ports/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Subtitle editor

LICENSE=    GPLv3+
LICENSE_FILE=   ${WRKSRC}/COPYING

RUN_DEPENDS=    iso-codes>=0:${PORTSDIR}/misc/iso-codes \
        py*-chardet>=0:${PORTSDIR}/textproc/py-chardet \
        py*-enchant>=1.5.1:${PORTSDIR}/textproc/py-enchant

USE_GNOME=  pygtk2 intltool
USE_PYTHON= distutils
USES=       desktop-file-utils python
INSTALLS_ICONS= yes
NO_ARCH=    yes

OPTIONS_DEFINE= NLS
OPTIONS_SUB=    yes

NLS_USES=   gettext
NLS_USES_OFF=   gettext-tools

post-patch:
    @${REINPLACE_CMD} \
        -e 's|share/man|man|g' \
        -e 's,distutils\.command\.install$$,setuptools\.command\.install,g' \
        -e 's,distutils\.command\.install\.,setuptools\.command\.install\.,g' \
        -e 's|%%STAGEDIR%%|"${STAGEDIR}"|' \
        -e 's|%%PREFIX%%|"${PREFIX}"|' \
        ${WRKSRC}/setup.py

.include <bsd.port.mk>