- Update to 20131115

- While I'm here:
  - Convert to new options helper
  - Support STAGEDIR

Changes:	https://github.com/sstephenson/ruby-build/blob/master/CHANGELOG.md
PR:		ports/184095
Submitted by:	Fabian M. Borschel <fmb@onibox.net> (maintainer)
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2013-11-20 03:14:56 +00:00
parent 5c73e154c4
commit 421c2bf99e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=334372
3 changed files with 11 additions and 31 deletions

View file

@ -1,11 +1,9 @@
# $FreeBSD$
PORTNAME= ruby-build
PORTVERSION= 20130518
PORTVERSION= 20131115
CATEGORIES= devel ruby
MASTER_SITES= ${MASTER_SITE_LOCAL} \
http://people.freebsd.org/~swills/ \
GH
MASTER_SITES= GH
MAINTAINER= fmb@onibox.net
COMMENT= Compile and install different ruby versions
@ -22,17 +20,11 @@ RUN_DEPENDS= autoconf:${PORTSDIR}/devel/autoconf \
OPTIONS_DEFINE= RBENV
RBENV_DESC= Install rbenv for installation support
OPTIONS_DEFAULT= RBENV
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MRBENV}
RUN_DEPENDS+= rbenv:${PORTSDIR}/devel/rbenv
.endif
RBENV_RUN_DEPENDS= rbenv:${PORTSDIR}/devel/rbenv
USE_GITHUB= yes
GH_ACCOUNT= sstephenson
GH_COMMIT= 1b170ee
GH_COMMIT= 49c1070
GH_TAGNAME= v${PORTVERSION}
NO_BUILD= yes
@ -43,10 +35,10 @@ PLIST_FILES= bin/ruby-build \
PORTDATA= *
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/bin/ruby-build ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/bin/rbenv-install ${PREFIX}/libexec
${INSTALL_SCRIPT} ${WRKSRC}/bin/rbenv-uninstall ${PREFIX}/libexec
@${MKDIR} ${DATADIR}
( cd ${WRKSRC}/share/ruby-build && ${COPYTREE_BIN} \* ${DATADIR} )
${INSTALL_SCRIPT} ${WRKSRC}/bin/ruby-build ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/bin/rbenv-install ${STAGEDIR}${PREFIX}/libexec
${INSTALL_SCRIPT} ${WRKSRC}/bin/rbenv-uninstall ${STAGEDIR}${PREFIX}/libexec
@${MKDIR} ${STAGEDIR}${DATADIR}
( cd ${WRKSRC}/share/ruby-build && ${COPYTREE_BIN} \* ${STAGEDIR}${DATADIR} )
.include <bsd.port.mk>

View file

@ -1,2 +1,2 @@
SHA256 (ruby-build-20130518.tar.gz) = bd1f26d30a628fe4f0d775c29bd493b8cfd5d4f9029aa05093a19d7b82066a8f
SIZE (ruby-build-20130518.tar.gz) = 21763
SHA256 (ruby-build-20131115.tar.gz) = 3c6260264744ad543ad4943f741d13db00f5add785f2c0ae3d05c9388d81fb48
SIZE (ruby-build-20131115.tar.gz) = 27491

View file

@ -1,12 +0,0 @@
--- ./bin/rbenv-install.orig 2013-02-18 22:12:22.000000000 -0800
+++ ./bin/rbenv-install 2013-02-18 22:16:04.000000000 -0800
@@ -28,6 +28,10 @@
RBENV_ROOT="${HOME}/.rbenv"
fi
+if [ `uname -s` = "FreeBSD" ]; then
+ export MAKE="gmake"
+fi
+
# Load shared library functions
eval "$(ruby-build --lib)"