freebsd-ports/multimedia/gaupol/Makefile
Antoine Brodin 45d8e622ee Add explicit FLAVOR to dependencies (useful when using
DEFAULT_VERSIONS=python=3.x)
2017-12-09 11:36:48 +00:00

42 lines
1 KiB
Makefile

# 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:misc/iso-codes \
${PYTHON_PKGNAMEPREFIX}chardet>=0:textproc/py-chardet@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}enchant>=1.5.1:textproc/py-enchant@${FLAVOR}
USE_GNOME= pygtk2 intltool
USE_PYTHON= distutils
USES= desktop-file-utils python:2.7
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>