Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jan 1999 05:41:06 -0800 (PST)
From:      asami@FreeBSD.ORG (Satoshi Asami)
To:        fenner@parc.xerox.com
Cc:        ports@FreeBSD.ORG, fenner@parc.xerox.com
Subject:   Re: ${MASTER_SITE_GNU} reorganization
Message-ID:  <199901271341.FAA65870@silvia.hip.berkeley.edu>
In-Reply-To: <199901270752.XAA21526@mango.parc.xerox.com> (message from Bill Fenner on Tue, 26 Jan 1999 23:52:00 PST)

next in thread | previous in thread | raw e-mail | index | archive | help
 * devel/prc-tools:	Tries to fetch multiple tools (like gcc and
 * 			binutils) from ${MASTER_SITE_GNU}; now that
 * 			these are in subdirectories, this doesn't
 * 			work.

 * I don't have any brilliant ideas for prc-tools or crosssco.  The one

Will something like this work?

===
Index: Mk/bsd.port.mk
===================================================================
RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.303
diff -u -r1.303 bsd.port.mk
--- bsd.port.mk	1999/01/26 03:58:58	1.303
+++ bsd.port.mk	1999/01/27 13:34:44
@@ -842,13 +842,19 @@
 MASTER_SITES?=
 PATCH_SITES?=
 
-# To avoid double-slashes
+# Default
 MASTER_SITE_SUBDIR?=	.
 PATCH_SITE_SUBDIR?=	.
 
 # Substitute subdirectory names
-MASTER_SITES:=	${MASTER_SITES:S/%SUBDIR%/${MASTER_SITE_SUBDIR}/}
-PATCH_SITES:=	${PATCH_SITES:S/%SUBDIR%/${PATCH_SITE_SUBDIR}/}
+.for dir in ${MASTER_SITE_SUBDIR}
+MASTER_SITES_TMP+=	${MASTER_SITES:S^%SUBDIR%^${dir}^}
+.endfor
+MASTER_SITES:=	${MASTER_SITES_TMP}
+.for dir in ${PATCH_SITE_SUBDIR}
+PATCH_SITES_TMP+=	${PATCH_SITES:S^%SUBDIR%^${dir}^}
+.endfor
+PATCH_SITES:=	${PATCH_SITES_TMP}
 
 # The primary backup site.
 MASTER_SITE_BACKUP?=	\
Index: devel/crosssco/Makefile
===================================================================
RCS file: /home/ncvs/ports/devel/crosssco/Makefile,v
retrieving revision 1.5
diff -u -r1.5 Makefile
--- Makefile	1998/10/10 04:25:03	1.5
+++ Makefile	1999/01/27 13:19:17
@@ -11,6 +11,7 @@
 CATEGORIES=	devel
 MASTER_SITES=	ftp://ftp.cygnus.com/pub/newlib/	\
 		${MASTER_SITE_GNU}
+MASTER_SITE_SUBDIR=	binutils gcc
 DISTFILES=	newlib-1.8.1.tar.gz	\
 		binutils-2.8.1.tar.gz	\
 		${DISTNAME}.tar.gz
===

Granted, it's very noisy while fetch tries all the possibilities but
there are only a couple that need this anyway.

Satoshi

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



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