ports/146656: [PATCH] update bsd.sites.mk to include ruby gems hosted at RubyGems.org

Eric Freeman freebsdports at chillibear.com
Mon May 17 08:50:02 UTC 2010


>Number:         146656
>Category:       ports
>Synopsis:       [PATCH] update bsd.sites.mk to include ruby gems hosted at RubyGems.org
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 17 08:50:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Eric Freeman
>Release:        7.2
>Organization:
>Environment:
FreeBSD localhost 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May  1 07:18:07 UTC 2009     root at driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
In general the Ruby community has moved towards rubygems.org (RG) and away from rubyforge.org (RF) to host the 'master' set of gems.  Whilst RF is still very much active for development many new versions of gems can only be found at RG.  I've noticed the occasional post on the lists regarding this, but other than the odd hard-coded port MASTER_SITES entry I've not seen any thing planned for general inclusion in the bsd.sites.mk file.

I've attached my suggested patch to update bsd.sites.mk to include a new RUBYGEMS
master site pointing to the redirected hosting (links on rubygems.org redirect to the amazon and cloudfiles hosting).

I think this should provide a nice simple way to keep writing gem ports for FreeBSD.  I've tested the patch with half a dozen rubygem- ports (tweaking the existing MASTER_SITES to be 'RG' and they all appeared to work without issue.

I've also taken the opportunity in the patch to update the MASTER_SITES for RF since one of the hosts currently listed (http://files.rubyforge.mmmultiworks.com) has been dead for ages.  I have selected another from those listed on the RF site. 


Regards

Eric


For reference the two list posts (which have a little more detail in) I made regarding rubygems update:

http://lists.freebsd.org/pipermail/freebsd-ports/2010-May/061021.html
http://lists.freebsd.org/pipermail/freebsd-ruby/2010-April/000290.html
>How-To-Repeat:
n/a
>Fix:
--- bsd.sites.mk.orig	2010-04-06 02:53:13.000000000 +0100
+++ bsd.sites.mk	2010-05-04 14:54:22.000000000 +0100
@@ -1141,8 +1141,15 @@
 # See http://rubyforge.org/credits/
 .if !defined(IGNORE_MASTER_SITE_RUBYFORGE)
 MASTER_SITE_RUBYFORGE+= \
-	http://files.rubyforge.mmmultiworks.com/%SUBDIR%/ \
-	http://files.rubyforge.vm.bytemark.co.uk/%SUBDIR%/
+	http://files.rubyforge.vm.bytemark.co.uk/%SUBDIR%/ \
+	http://files.ruby.inoack.com/%SUBDIR%/
+.endif
+
+# See http://rubygems.org/pages/about
+.if !defined(IGNORE_MASTER_SITE_RUBYGEMS)
+MASTER_SITE_RUBYGEMS+= \
+	http://production.s3.rubygems.org/gems/%SUBDIR%/ \
+	http://production.cf.rubygems.org/gems/%SUBDIR%/
 .endif
 
 .if !defined(IGNORE_MASTER_SITE_SAMBA)
@@ -1493,6 +1500,7 @@
 MASTER_SITES_ABBREVS=	CPAN:PERL_CPAN \
 			SF:SOURCEFORGE \
 			SFJP:SOURCEFORGE_JP \
+			RG:RUBYGEMS \
 			RF:RUBYFORGE
 MASTER_SITES_SUBDIRS=	\
 			APACHE_JAKARTA:${PORTNAME:S,-,/,}/source \

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



More information about the freebsd-ports-bugs mailing list