From nobody@FreeBSD.org  Mon May 17 08:49:15 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 94F1D106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 17 May 2010 08:49:15 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 69BFF8FC1F
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 17 May 2010 08:49:15 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o4H8nEnZ066540
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 17 May 2010 08:49:14 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o4H8nEwP066539;
	Mon, 17 May 2010 08:49:14 GMT
	(envelope-from nobody)
Message-Id: <201005170849.o4H8nEwP066539@www.freebsd.org>
Date: Mon, 17 May 2010 08:49:14 GMT
From: Eric Freeman <freebsdports@chillibear.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [PATCH] update bsd.sites.mk to include ruby gems hosted at RubyGems.org
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>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-ruby
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 17 08:50:01 UTC 2010
>Closed-Date:    Mon May 24 22:08:06 UTC 2010
>Last-Modified:  Mon May 24 22:10:01 UTC 2010
>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@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:
Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-ruby 
Responsible-Changed-By: pgollucci 
Responsible-Changed-When: Tue May 18 05:09:47 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=146656 
State-Changed-From-To: open->closed 
State-Changed-By: pgollucci 
State-Changed-When: Mon May 24 22:08:05 UTC 2010 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=146656 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/146656: commit references a PR
Date: Mon, 24 May 2010 22:08:13 +0000 (UTC)

 pgollucci    2010-05-24 22:07:59 UTC
 
   FreeBSD ports repository
 
   Modified files:
     Mk                   bsd.sites.mk 
   Log:
   - Add new macro RG for RubyGems site
   - Remove a dead RUBYFORGE mirror, select a new one to replace it
   
   PR:             ports/146656
   Submitted by:   Eric Freeman <freebsdports@chillibear.com>
   
   Revision  Changes    Path
   1.497     +11 -3     ports/Mk/bsd.sites.mk
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
