e263b1bc99
Backwards incompatible: - Remove deprecated ruby-local-exec executable - Remove support for .rbenv-version legacy version file - Remove support for default, global legacy global version files Features: - Add support for rbenv shell - style of invocation that restores previous version Housekeeping: - Adopt Contributor Covenant 1.4 - Replace . with source for fish shell - Unset CDPATH if it's set by the user - Fix rbenv <cmd> --help for sh-* commands - Expand literal tilde in PATH PR: 214838 Submitted by: jlduran@gmail.com Approved by: meta+ports@vmeta.jp (maintainer)
36 lines
925 B
Makefile
36 lines
925 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= rbenv
|
|
PORTVERSION= 1.1.0
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= devel ruby
|
|
|
|
MAINTAINER= meta+ports@vmeta.jp
|
|
COMMENT= Manage multiple versions of ruby
|
|
|
|
LICENSE= MIT
|
|
|
|
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 )
|
|
|
|
.include <bsd.port.mk>
|