mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
37 lines
889 B
Makefile
37 lines
889 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= direnv
|
|
PORTVERSION= 2.17.0
|
|
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= direnv
|
|
GH_SUBDIR= src/github.com/direnv/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/go-dotenv ${WRKSRC}/src/github.com/direnv
|
|
${MV} ${WRKSRC}/vendor/github.com/BurntSushi ${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>
|