summaryrefslogtreecommitdiff
path: root/editors/medit/Makefile
blob: 4d228ebcd432a8369ef3fac7c910e2145227c967 (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
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$

PORTNAME=	medit
PORTVERSION=	1.2.92
PORTREVISION=	4
CATEGORIES=	editors
MASTER_SITES=	SF/mooedit/${PORTNAME}/${PORTVERSION}
PKGNAMESUFFIX=	-editor
DISTNAME=	${PORTNAME}-${PORTVERSION}-devel

MAINTAINER=	danfe@FreeBSD.org
COMMENT=	Programming and around-programming text editor

LICENSE=	LGPL21

DEPRECATED=	Uses deprecated version of python
EXPIRATION_DATE=	2020-09-15

USES=		compiler:c++11-lang gmake gnome localbase pkgconfig \
		python:2.7,build tar:bzip2
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--without-python
USE_GNOME=	gtk20
INSTALLS_ICONS=	yes

DATADIR=	${PREFIX}/share/${PORTNAME}-1
DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}-1
PORTDOCS=	*

OPTIONS_DEFINE=	DOCS NLS
OPTIONS_SUB=	yes

NLS_USES=	gettext-tools
NLS_USE=	GNOME=intltool
NLS_CONFIGURE_OFF=	--disable-nls

post-patch:
	@${REINPLACE_CMD} -e '/append_12 = -ldl/d' ${WRKSRC}/moo/Makefile.in
	@${REINPLACE_CMD} -e '/std::nullptr_t/ { x ; \
		s/.*/#include <cstddef>/ ; G ; }' \
		${WRKSRC}/moo/moopython/moopython-utils.h
	@${REINPLACE_CMD} -e 's/long val = strtol/errno = 0; &/' \
		${WRKSRC}/moo/mooutils/mooglade.c

.include <bsd.port.mk>