mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
Changes the current Ruby.
WWW: https://github.com/postmodern/chruby PR: ports/175552 Submitted by: Ross Timson <ross@rosstimson.com>
This commit is contained in:
parent
83f00ce6ea
commit
7de86b37c8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=319153
@ -205,6 +205,7 @@
|
||||
SUBDIR += checkbashisms
|
||||
SUBDIR += checkheaders
|
||||
SUBDIR += chrpath
|
||||
SUBDIR += chruby
|
||||
SUBDIR += cil
|
||||
SUBDIR += cityhash
|
||||
SUBDIR += cl-alexandria
|
||||
|
37
devel/chruby/Makefile
Normal file
37
devel/chruby/Makefile
Normal file
@ -0,0 +1,37 @@
|
||||
# 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>
|
2
devel/chruby/distinfo
Normal file
2
devel/chruby/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (chruby-0.3.2.tar.gz) = 9d3d73fbf9d19acccdb5d3ba9377a6bd81eb0a27c436472ed44084ef6f4a1567
|
||||
SIZE (chruby-0.3.2.tar.gz) = 13385
|
27
devel/chruby/files/pkg-message.in
Normal file
27
devel/chruby/files/pkg-message.in
Normal file
@ -0,0 +1,27 @@
|
||||
======================================================================
|
||||
|
||||
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
|
||||
|
||||
======================================================================
|
3
devel/chruby/pkg-descr
Normal file
3
devel/chruby/pkg-descr
Normal file
@ -0,0 +1,3 @@
|
||||
Changes the current Ruby.
|
||||
|
||||
WWW: https://github.com/postmodern/chruby
|
Loading…
Reference in New Issue
Block a user