ports/104209: [patch] Rework devel/ruby-tzfile to fix fetch problems from MASTER_SITES
Josh Paetzel <josh@tcbug.org>
josh at tcbug.org
Mon Oct 9 12:30:34 UTC 2006
>Number: 104209
>Category: ports
>Synopsis: [patch] Rework devel/ruby-tzfile to fix fetch problems 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 12:30:32 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 devel/ruby-tzfile 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-tzfile
make fetch
>Fix:
--- Makefile.old Mon Oct 9 07:01:50 2006
+++ Makefile Mon Oct 9 07:16:02 2006
@@ -10,7 +10,7 @@
CATEGORIES= devel ruby
MASTER_SITES= http://cvs.m17n.org/cgi-bin/viewcvs/${PORTNAME}/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
-DISTNAME= TZFile-${PORTVERSION}${EXTRACT_SUFX}\?tarball=1\&only_with_tag=${PORTNAME}-${PORTVERSION:S/./_/g}\&cvsroot=ruby\&
+DISTNAME= ${PORTNAME}
DIST_SUBDIR= ruby
MAINTAINER= ports at FreeBSD.org
@@ -27,6 +27,11 @@
DOCS= ${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/tzfile.tar.gz?only_with_tag=tzfile-0_1\&view=tar
+.endif
do-install:
${INSTALL_DATA} ${WRKSRC}/tzfile.rb ${RUBY_SITELIBDIR}/
--- distinfo.old Mon Oct 9 07:01:56 2006
+++ distinfo Mon Oct 9 07:16:30 2006
@@ -1,3 +1,3 @@
-MD5 (ruby/TZFile-0.1.tar.gz?tarball=1&only_with_tag=tzfile-0_1&cvsroot=ruby&.tar.gz) = ced5a3788f3b5d8d996b6390a3273e76
-SHA256 (ruby/TZFile-0.1.tar.gz?tarball=1&only_with_tag=tzfile-0_1&cvsroot=ruby&.tar.gz) = 700b56c2e28cc44956ce99740ac5650e78c91cae69b9f01d079dc7e4b596e49c
-SIZE (ruby/TZFile-0.1.tar.gz?tarball=1&only_with_tag=tzfile-0_1&cvsroot=ruby&.tar.gz) = 65031
+MD5 (ruby/tzfile.tar.gz) = 7ad6c4ff92c6b75385043c62bb4760e4
+SHA256 (ruby/tzfile.tar.gz) = 32ae9ff1ead4f986204a5a14d5810dac4e8f48528539a45360b85bd7b59a8a4d
+SIZE (ruby/tzfile.tar.gz) = 65032
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list