ports/174980: New port: devel/ruby-build

Fabian M. Borschel fmb at onibox.net
Fri Jan 4 22:10:01 UTC 2013


>Number:         174980
>Category:       ports
>Synopsis:       New port: devel/ruby-build
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 04 22:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Fabian M. Borschel
>Release:        9.0
>Organization:
>Environment:
>Description:

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: devel/ruby-build/pkg-descr
===================================================================
--- devel/ruby-build/pkg-descr	(revision 0)
+++ devel/ruby-build/pkg-descr	(working copy)
@@ -0,0 +1,4 @@
+ruby-build is an rbenv plugin that provides an rbenv install command to compile
+and install different versions of Ruby on UNIX-like systems. You can also use
+ruby-build without rbenv in environments where you need precise control over
+Ruby version installation.
Index: devel/ruby-build/distinfo
===================================================================
--- devel/ruby-build/distinfo	(revision 0)
+++ devel/ruby-build/distinfo	(working copy)
@@ -0,0 +1,2 @@
+SHA256 (ruby-build-20121110.tar.gz) = 3247891c4bdb8d71ae13dc8d55e8a2178662cfe2fdd27f64dd212b1f59a003fc
+SIZE (ruby-build-20121110.tar.gz) = 10739
Index: devel/ruby-build/files/patch-bin-ruby-build
===================================================================
--- devel/ruby-build/files/patch-bin-ruby-build	(revision 0)
+++ devel/ruby-build/files/patch-bin-ruby-build	(working copy)
@@ -0,0 +1,13 @@
+--- bin/ruby-build.orig	2012-11-20 00:01:39.000000000 +0100
++++ bin/ruby-build	2012-11-20 00:01:57.000000000 +0100
+@@ -205,8 +205,8 @@
+   fi
+ 
+   { ./configure --prefix="$PREFIX_PATH" $CONFIGURE_OPTS
+-    make $MAKE_OPTS
+-    make install
++    gmake $MAKE_OPTS
++    gmake install
+   } >&4 2>&1
+ }
+ 
Index: devel/ruby-build/pkg-plist
===================================================================
--- devel/ruby-build/pkg-plist	(revision 0)
+++ devel/ruby-build/pkg-plist	(working copy)
@@ -0,0 +1,4 @@
+bin/ruby-build
+libexec/rbenv-install
+libexec/rbenv-uninstall
+ at unexec rm -fr %D/share/ruby-build
Index: devel/ruby-build/Makefile
===================================================================
--- devel/ruby-build/Makefile	(revision 0)
+++ devel/ruby-build/Makefile	(working copy)
@@ -0,0 +1,36 @@
+# $FreeBSD$
+
+PORTNAME=       ruby-build
+PORTVERSION=    20121110
+CATEGORIES=     devel ruby
+MASTER_SITES=   GH
+
+MAINTAINER=     fmb at onibox.net
+COMMENT=        Compile and install different ruby versions
+
+LICENSE=        RUBY-BUILD
+LICENSE_NAME=   Sam Stephenson
+LICENSE_FILE=   ${WRKSRC}/LICENSE
+LICENSE_PERMS=  ${_LICENSE_PERMS_DEFAULT}
+
+RUN_DEPENDS=		autoconf:${PORTSDIR}/devel/autoconf \
+								curl:${PORTSDIR}/ftp/curl \
+								gmake:${PORTSDIR}/devel/gmake \
+								rbenv:${PORTSDIR}/devel/rbenv
+
+USE_GITHUB=     yes
+GH_ACCOUNT=     sstephenson
+GH_PROJECT=     ruby-build
+GH_COMMIT=      0ef9259
+GH_TAGNAME=     v${PORTVERSION}
+
+NO_BUILD=       yes
+
+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} ${PREFIX}/share/ruby-build
+	@( cd ${WRKSRC}/share/ruby-build && ${COPYTREE_BIN} \* ${PREFIX}/share/ruby-build )
+
+.include <bsd.port.mk>


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list