228d6adce2
direnv is an environment switcher for the shell. It knows how to hook into bash, zsh, tcsh and fish shell to load or unload environment variables depending on the current directory. This allows to have project-specific environment variables and not clutter the "~/.profile" file. Originally packaged in wip by Terin Stock, updated by myself.
25 lines
730 B
Makefile
25 lines
730 B
Makefile
# $NetBSD: Makefile,v 1.1 2021/01/13 16:41:16 jperkin Exp $
|
|
|
|
DISTNAME= direnv-2.27.0
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=direnv/}
|
|
GITHUB_TAG= v${PKGVERSION_NOREV}
|
|
|
|
MAINTAINER= pkgsrc-users@pkgsrc.org
|
|
HOMEPAGE= https://direnv.net/
|
|
COMMENT= Environment switcher for the shell
|
|
LICENSE= mit
|
|
|
|
.include "go-modules.mk"
|
|
|
|
do-build:
|
|
cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${GO} build -o direnv
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM_DIR} ${DESTDIR}/${PREFIX}/bin
|
|
${INSTALL_MAN_DIR} ${DESTDIR}/${PREFIX}/${PKGMANDIR}/man1
|
|
${INSTALL_PROGRAM} ${WRKSRC}/direnv ${DESTDIR}/${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/man/*.1 ${DESTDIR}/${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
.include "../../lang/go/go-module.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|