Commit 2d4312da authored by swills's avatar swills
Browse files

Changes the current Ruby.

WWW: https://github.com/postmodern/chruby

PR:		ports/175552
Submitted by:	Ross Timson <ross@rosstimson.com>
parent 39e30fbc
......@@ -205,6 +205,7 @@
SUBDIR += checkbashisms
SUBDIR += checkheaders
SUBDIR += chrpath
SUBDIR += chruby
SUBDIR += cil
SUBDIR += cityhash
SUBDIR += cl-alexandria
......
# Created by: Ross Timson <ross@rosstimson.com>
# $FreeBSD$
PORTNAME= chruby
PORTVERSION= 0.3.2
CATEGORIES= devel ruby
MASTER_SITES= GH
MAINTAINER= ross@rosstimson.com
COMMENT= Changes the current Ruby
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
PLIST_FILES= bin/chruby-exec share/chruby/auto.sh share/chruby/chruby.sh
PLIST_DIRS= share/chruby
SUB_FILES= pkg-message
USE_GITHUB= yes
GH_ACCOUNT= postmodern
GH_PROJECT= chruby
GH_COMMIT= 872cd1b
GH_TAGNAME= v${PORTVERSION}
NO_BUILD= yes
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/bin/chruby-exec ${PREFIX}/bin
( cd ${WRKSRC}/share/chruby && ${COPYTREE_BIN} \* ${PREFIX}/share/chruby )
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
SHA256 (chruby-0.3.2.tar.gz) = 9d3d73fbf9d19acccdb5d3ba9377a6bd81eb0a27c436472ed44084ef6f4a1567
SIZE (chruby-0.3.2.tar.gz) = 13385
======================================================================
Add the following to the /etc/profile.d/chruby.sh, ~/.bash_profile or
~/.zprofile file:
source %%PREFIX%%/share/chruby/chruby.sh
By default chruby will search for Rubies installed into /opt/rubies/ or
~/.rubies/. For non-standard installation locations, simply set the RUBIES
variable:
RUBIES=(
/opt/jruby-1.7.0
$HOME/src/rubinius
)
If you are migrating from another Ruby manager, set `RUBIES` accordingly:
RVM: RUBIES=(~/.rvm/rubies/*)
rbenv: RUBIES=(~/.rbenv/versions/*)
rbfu: RUBIES=('~/.rbfu/rubies/*)
To enable auto-switching of Rubies specified by .ruby-version files:
source %%PREFIX%%/share/chruby/auto.sh
======================================================================
Changes the current Ruby.
WWW: https://github.com/postmodern/chruby
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment