freebsd-ports/devel/rbenv/Makefile
Koichiro Iwao fc67317ae5 devel/rbenv: devel/rbenv: Update to 1.1.2
- Fix rehash mechanism for versions of bash that complain about clobbering /dev/null
- Enforce absolute RBENV_DIR to avoid having to unset CDPATH
- rbenv-version-file: ensure that the version file is a file
- rbenv init -: fix output to work without args and set -u
- rbenv shell: better error message when shell integration wasn't enabled
- Enable freezing rbenv version via rbenv version-name > .ruby-version in the shell
- rbenv-which: avoid changing PATH unless necessary
- rbenv-prefix: do not silence rbenv-which errors for system version

PR:		236859
Submitted by:	Jose Luis Duran <jlduran@gmail.com>
Relnotes:	https://github.com/rbenv/rbenv/releases/tag/v1.1.2
2019-03-31 13:40:03 +00:00

40 lines
1 KiB
Makefile

# $FreeBSD$
PORTNAME= rbenv
PORTVERSION= 1.1.2
DISTVERSIONPREFIX= v
CATEGORIES= devel ruby
MAINTAINER= ruby@FreeBSD.org
COMMENT= Manage multiple versions of ruby
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= bash:shells/bash
USE_GITHUB= yes
GH_ACCOUNT= rbenv
NO_BUILD= yes
REINPLACE_ARGS= -i ''
post-patch:
@${REINPLACE_CMD} -e "s|\$${root}/completions|${DATADIR}/completions|g" \
${WRKSRC}/libexec/rbenv-init
do-install:
CC="${CC}" ${WRKSRC}/src/${CONFIGURE_CMD}
${SETENV} ${MAKE_ENV} ${MAKE_CMD} -C ${WRKSRC}/src
( ${INSTALL_SCRIPT} ${WRKSRC}/libexec/* ${STAGEDIR}${PREFIX}/libexec/ )
@${LN} -sf ../libexec/rbenv ${STAGEDIR}${PREFIX}/bin/rbenv
@${MKDIR} ${STAGEDIR}${DATADIR}/completions
( cd ${WRKSRC}/completions && ${COPYTREE_BIN} . ${STAGEDIR}${DATADIR}/completions )
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/rbenv.d
( cd ${WRKSRC}/rbenv.d && ${COPYTREE_BIN} . ${STAGEDIR}${PREFIX}/etc/rbenv.d )
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/rbenv-realpath.dylib
.include <bsd.port.mk>