Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jan 2013 12:18:20 GMT
From:      "Fabian M. Borschel" <fmb@onibox.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/175259: New port: devel/ruby-build
Message-ID:  <201301131218.r0DCIKWs018252@red.freebsd.org>
Resent-Message-ID: <201301131220.r0DCK03w022870@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         175259
>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:   Sun Jan 13 12:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Fabian M. Borschel
>Release:        9.0
>Organization:
>Environment:
>Description:
Obsoletes ports/174980
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: pkg-descr
===================================================================
--- pkg-descr	(revision 0)
+++ 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: distinfo
===================================================================
--- distinfo	(revision 0)
+++ distinfo	(working copy)
@@ -0,0 +1,2 @@
+SHA256 (ruby-build-20130104.tar.gz) = ae54c9eb8e61d6ccbb33a9702d4e391f105769007a818c8be3dafad38c5d9240
+SIZE (ruby-build-20130104.tar.gz) = 17478
Index: files/patch-bin-ruby-build
===================================================================
--- files/patch-bin-ruby-build	(revision 0)
+++ 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: pkg-plist
===================================================================
--- pkg-plist	(revision 0)
+++ pkg-plist	(working copy)
@@ -0,0 +1,4 @@
+bin/ruby-build
+libexec/rbenv-install
+libexec/rbenv-uninstall
+@unexec rm -fr %D/share/ruby-build
Index: Makefile
===================================================================
--- Makefile	(revision 0)
+++ Makefile	(working copy)
@@ -0,0 +1,36 @@
+# $FreeBSD$
+
+PORTNAME=       ruby-build
+PORTVERSION=    20130104
+CATEGORIES=     devel ruby
+MASTER_SITES=   GH
+
+MAINTAINER=     fmb@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=      9ef0e06
+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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301131218.r0DCIKWs018252>