aboutsummaryrefslogtreecommitdiff
path: root/sysutils/direnv/Makefile
blob: 5b718d86da62b48d3b24987a7df7449e7936d565 (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
PORTNAME=	direnv
DISTVERSIONPREFIX=	v
DISTVERSION=	2.34.0
PORTREVISION=	3
CATEGORIES=	sysutils

MAINTAINER=	bofh@FreeBSD.org
COMMENT=	Environment variable manager for your shell
WWW=		https://direnv.net/

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	bash:shells/bash

USES=		go:modules
GO_MODULE=	github.com/direnv/direnv/v2

PLIST_FILES=	bin/direnv \
		share/man/man1/direnv-stdlib.1.gz \
		share/man/man1/direnv.1.gz

do-install:
	${INSTALL_PROGRAM} ${WRKDIR}/bin/direnv \
		${STAGEDIR}${PREFIX}/bin/
	${INSTALL_MAN} ${WRKSRC}/man/direnv.1 ${STAGEDIR}${PREFIX}/share/man/man1
	${INSTALL_MAN} ${WRKSRC}/man/direnv-stdlib.1 \
		${STAGEDIR}${PREFIX}/share/man/man1

.include <bsd.port.mk>