aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/meld/Makefile
blob: e547e7de23e7de746d961b73088a610cbd80ddcd (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: Pav Lucistnik <pav@oook.cz>
# $FreeBSD$

PORTNAME=   meld
PORTVERSION=    1.8.4
CATEGORIES= textproc devel python
MASTER_SITES=   GNOME

MAINTAINER= pawel@FreeBSD.org
COMMENT=    GNOME 2 visual diff and merge tool

LICENSE=    GPLv2

USE_XZ=     yes
USE_GNOME=  pygnome2
USES=       desktop-file-utils gmake shared-mime-info shebangfix
python_OLD_CMD= ${SETENV} python
python_CMD= ${PYTHON_CMD}
SHEBANG_FILES=  bin/meld
USE_PYTHON= 2
MAKE_ARGS=  prefix=${PREFIX}
INSTALLS_ICONS= yes
INSTALLS_OMF=   yes

OPTIONS_DEFINE=     NLS PYGNOMEDESKTOP
OPTIONS_SUB=        yes

NLS_USES=       gettext

PYGNOMEDESKTOP_DESC=    Code syntax highlighting (many dependencies)
PYGNOMEDESKTOP_USE= GNOME=pygnomedesktop

post-patch:
    @${REINPLACE_CMD} -e 's|^LANG :=|LANG_ :=|g ; s|$$(LANG)|$$(LANG_)|g ; \
        s|$$(localstatedir)/lib/scrollkeeper|/var/db/scrollkeeper|g' \
        ${WRKSRC}/help/C/Makefile ${WRKSRC}/help/es/Makefile \
        ${WRKSRC}/help/fr/Makefile

.include <bsd.port.mk>