1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00
freebsd-ports/sysutils/direnv/Makefile
2017-10-16 13:56:46 +00:00

36 lines
802 B
Makefile

# $FreeBSD$
PORTNAME= direnv
PORTVERSION= 2.13.1
DISTVERSIONPREFIX= v
CATEGORIES= sysutils
MAINTAINER= swills@FreeBSD.org
COMMENT= Environment variable manager for your shell
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.md
BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
USE_GITHUB= yes
GH_ACCOUNT= zimbatm
GH_SUBDIR= src/github.com/zimbatm/direnv
MAKE_ENV= GOPATH=${WRKSRC}
USES= gmake
PLIST_FILES= bin/direnv man/man1/direnv.1.gz man/man1/direnv-stdlib.1.gz
post-patch:
${MV} ${WRKSRC}/vendor/github.com/direnv ${WRKSRC}/src/github.com
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/direnv \
${STAGEDIR}${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/man/direnv.1 ${STAGEDIR}${MANPREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/man/direnv-stdlib.1 \
${STAGEDIR}${MANPREFIX}/man/man1
.include <bsd.port.mk>