1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/devel/rbenv/Makefile
Danilo G. Baio 303d87f4bf devel/rbenv: Update to 1.1.1
Changes: https://github.com/rbenv/rbenv/releases/tag/v1.1.1

PR:		220243
Submitted by:	Jose Luis Duran <jlduran@gmail.com>
Approved by:	garga (mentor), meta+ports@vmeta.jp (maintainer)
Differential Revision:	https://reviews.freebsd.org/D11360
2017-06-26 23:53:56 +00:00

41 lines
1.0 KiB
Makefile

# $FreeBSD$
PORTNAME= rbenv
PORTVERSION= 1.1.1
DISTVERSIONPREFIX= v
CATEGORIES= devel ruby
MAINTAINER= meta+ports@vmeta.jp
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>