This allows for port testing with lang/go-devel via GO_PORT, setting up the Go build environment in a single place, and is step one in simplifying Go ports that often define too complicated do-build targets themselves. USES=go gains new arguments 'run' to add lang/go to RUN_DEPENDS and 'no_targets' for ports with composite builds that call 'go' themselves and do not need the do-build/do-install targets of USES=go. PR: 238849 Submitted by: dg@syrec.org (also D20745) Reviewed by: mat, tobik Exp-run by: antoine Differential Revision: https://reviews.freebsd.org/D20746
33 lines
745 B
Makefile
33 lines
745 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= direnv
|
|
PORTVERSION= 2.20.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= bash:shells/bash
|
|
|
|
USES= gmake go:no_targets
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= direnv
|
|
GH_SUBDIR= src/github.com/direnv/direnv
|
|
MAKE_ENV= GOPATH=${WRKSRC}
|
|
MAKEFILE= GNUmakefile
|
|
|
|
PLIST_FILES= bin/direnv man/man1/direnv.1.gz man/man1/direnv-stdlib.1.gz
|
|
|
|
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>
|