blob: ea065669328c505457704ef0136fa9852f916628 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# $FreeBSD$
PORTNAME= rbenv
PORTVERSION= 0.4.0
PORTREVISION= 2
CATEGORIES= devel ruby
MASTER_SITES= GH
MAINTAINER= fmb@onibox.net
COMMENT= Manage multiple versions of ruby
LICENSE= RBENV
LICENSE_NAME= Sam Stephenson
LICENSE_FILE= ${WRKSRC}/LICENSE
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
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 ${PREFIX}/bin
( ${INSTALL_SCRIPT} ${WRKSRC}/libexec/* ${PREFIX}/libexec/ )
@${LN} -sf ${PREFIX}/libexec/rbenv ${PREFIX}/bin/rbenv
@${MKDIR} ${DATADIR}/completions
( cd ${WRKSRC}/completions && ${COPYTREE_BIN} \* ${DATADIR}/completions )
.include <bsd.port.mk>
|