aboutsummaryrefslogtreecommitdiff
path: root/textproc/augeas/Makefile
blob: 4d1bd3702b25ecc41693ef75e3685aa886737529 (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
PORTNAME=	augeas
DISTVERSION=	1.14.0
PORTREVISION=	4
CATEGORIES=	textproc
MASTER_SITES=	https://github.com/hercules-team/augeas/releases/download/release-${DISTVERSION}/

PATCH_SITES=	https://github.com/hercules-team/augeas/commit/ \
		https://github.com/hercules-team/augeas/pull/
PATCHFILES+=	7b26cbb74ed634d886ed842e3d5495361d8fd9b1.patch:-p1 # https://github.com/hercules-team/augeas/pull/792
PATCHFILES+=	863.patch:-p1 # https://github.com/hercules-team/augeas/pull/863

MAINTAINER=	puppet@FreeBSD.org
COMMENT=	Configuration editing tool
WWW=		https://augeas.net/

LICENSE=	LGPL21

TEST_DEPENDS=	bash:shells/bash \
		gsed:textproc/gsed

USES=		autoreconf cpe gmake gnome libtool pathfix pkgconfig readline
USE_GNOME=	libxml2
USE_LDCONFIG=	yes

GNU_CONFIGURE=	yes
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share

INSTALL_TARGET=	install-strip

LENSESDIR=	${PREFIX}/share/augeas/lenses

.include <bsd.port.pre.mk>

.if ${OPSYS} == FreeBSD
CFLAGS+=-Wno-error=int-conversion
.endif

post-patch:
	@${REINPLACE_CMD} -e 's:/bin/bash:/usr/bin/env bash:' ${WRKSRC}/tests/*.sh
	@${REINPLACE_CMD} -e 's:sed:gsed:' ${WRKSRC}/tests/test-augtool.sh
	@${REINPLACE_CMD} -e 's:/usr/local:${LOCALBASE}:' \
		${WRKSRC}/lenses/puppet.aug \
		${WRKSRC}/lenses/puppet_auth.aug \
		${WRKSRC}/lenses/puppetfileserver.aug

.include <bsd.port.post.mk>