ports/104203: [patch] Rework devel/ruby-cvs to fix fetch problem from MASTER_SITES

Josh Paetzel <josh@tcbug.org> josh at tcbug.org
Mon Oct 9 08:40:24 UTC 2006


>Number:         104203
>Category:       ports
>Synopsis:       [patch] Rework devel/ruby-cvs to fix fetch problem from MASTER_SITES
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 09 08:40:22 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Josh Paetzel <josh at tcbug.org>
>Release:        FreeBSD 6.1-RELEASE-p6 i386
>Organization:
>Environment:


System: FreeBSD 6.1-RELEASE-p6 #1: Mon Sep 18 19:09:47 UTC 2006
    jpaetzel at gimpy.tcbug.org:/usr/obj/usr/src/sys/GIMPY



>Description:


The homepage for the devel/ruby-cvs uses a bizarre method to download the source tarballs.  The existing version of the port doesn't work with their current site and in making it work I think this is a 'saner' configuration.


>How-To-Repeat:


cd /usr/ports/devel/ruby-cvs
make fetch


>Fix:


--- Makefile.old        Sun Oct  8 19:41:00 2006
+++ Makefile    Mon Oct  9 03:17:55 2006
@@ -5,12 +5,12 @@
 # $FreeBSD: ports/devel/ruby-cvs/Makefile,v 1.10 2005/11/11 01:17:27 linimon Exp $
 #
 
-PORTNAME=      cvs
+PORTNAME=      ruby-cvs
 PORTVERSION=   0.2
 CATEGORIES=    devel ruby
 MASTER_SITES=  http://cvs.m17n.org/cgi-bin/viewcvs/ruby-${PORTNAME}/
 PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
-DISTNAME=      ruby-${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}\?tarball=1\&only_with_tag=ruby-${PORTNAME}-${PORTVERSION:S/./_/g}\&cvsroot=ruby\&
+DISTNAME=      ${PORTNAME}-${PORTVERSION}
 DIST_SUBDIR=   ruby
 
 MAINTAINER=    ports at FreeBSD.org
@@ -26,11 +26,16 @@
 RUBY_RD_FILES= cvs.rb diff.rb tempdir.rb
 RUBY_SHEBANG_FILES=    ${WRKSRC}/viztree ${WRKSRC}/reviz/reviz
 
-WRKSRC=                ${WRKDIR}/ruby-${PORTNAME}
+WRKSRC=                ${WRKDIR}/${PORTNAME}
 
 DOCS=          README TODO ${RUBY_RD_HTML_FILES}
 
 .include <bsd.port.pre.mk>
+
+do-fetch:
+.if !exists(${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX})
+       ${SETENV} ${FETCH_ENV} ${FETCH_CMD} -o ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX} http://cvs.m17n.org/viewcvs/ruby/ruby-cvs.tar.gz?only_with_tag=ruby-cvs-0_2\&view=tar
+.endif
 
 post-extract:
 .for f in ${RUBY_RD_FILES}

--- distinfo.old        Sun Oct  8 20:40:30 2006
+++ distinfo    Sun Oct  8 20:43:17 2006
@@ -1,3 +1,3 @@
-MD5 (ruby/ruby-cvs-0.2.tar.gz?tarball=1&only_with_tag=ruby-cvs-0_2&cvsroot=ruby&.tar.gz) = 4e40b597ba43ef8ecc8b0fdce22119bd
-SHA256 (ruby/ruby-cvs-0.2.tar.gz?tarball=1&only_with_tag=ruby-cvs-0_2&cvsroot=ruby&.tar.gz) = 1e74ad7d166c01993bc77496d086adbc748802ccd34d88750fa79b6aa7037186
-SIZE (ruby/ruby-cvs-0.2.tar.gz?tarball=1&only_with_tag=ruby-cvs-0_2&cvsroot=ruby&.tar.gz) = 108900
+MD5 (ruby/ruby-cvs-0.2.tar.gz) = 183b91c1048686c58c0e4e2d4ea37021
+SHA256 (ruby/ruby-cvs-0.2.tar.gz) = c3ac1c1acdcd52567291d5a69aad82202130936aa4e750775f4f21a94c61f1df
+SIZE (ruby/ruby-cvs-0.2.tar.gz) = 108911



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



More information about the freebsd-ports-bugs mailing list