# $FreeBSD$ PORTNAME= rbenv PORTVERSION= 0.4.0 PORTREVISION= 2 CATEGORIES= devel ruby MASTER_SITES= GH MAINTAINER= meta+ports@vmeta.jp COMMENT= Manage multiple versions of ruby LICENSE= MIT RUN_DEPENDS= bash:${PORTSDIR}/shells/bash USE_GITHUB= yes GH_ACCOUNT= sstephenson GH_PROJECT= rbenv GH_COMMIT= 9375e99 GH_TAGNAME= v${PORTVERSION} NO_BUILD= yes REINPLACE_ARGS= -i '' post-patch: @${REINPLACE_CMD} -e "s|\$$root/completions|${DATADIR}/completions|g" ${WRKSRC}/libexec/rbenv-init do-install: ${INSTALL_SCRIPT} ${WRKSRC}/bin/ruby-local-exec ${STAGEDIR}${PREFIX}/bin ( ${INSTALL_SCRIPT} ${WRKSRC}/libexec/* ${STAGEDIR}${PREFIX}/libexec/ ) @${LN} -sf ${PREFIX}/libexec/rbenv ${STAGEDIR}${PREFIX}/bin/rbenv @${MKDIR} ${STAGEDIR}${DATADIR}/completions ( cd ${WRKSRC}/completions && ${COPYTREE_BIN} \* ${STAGEDIR}${DATADIR}/completions ) .include