From owner-freebsd-ports@FreeBSD.ORG Thu May 14 10:55:10 2015 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 75D28FA5; Thu, 14 May 2015 10:55:10 +0000 (UTC) Received: from prod2.absolight.net (mx3.absolight.net [IPv6:2a01:678:2:100::25]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "plouf.absolight.net", Issuer "CAcert Class 3 Root" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 3E8A0126C; Thu, 14 May 2015 10:55:10 +0000 (UTC) Received: from prod2.absolight.net (localhost [127.0.0.1]) by prod2.absolight.net (Postfix) with ESMTP id 74505BDC2E; Thu, 14 May 2015 12:55:08 +0200 (CEST) Received: from atuin.in.mat.cc (atuin.in.mat.cc [79.143.241.205]) by prod2.absolight.net (Postfix) with ESMTPA id 5A32CBDC25; Thu, 14 May 2015 12:55:08 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by atuin.in.mat.cc (Postfix) with ESMTP id 178F8343C9B4; Thu, 14 May 2015 12:55:08 +0200 (CEST) Date: Thu, 14 May 2015 12:55:07 +0200 From: Mathieu Arnold To: ports@freebsd.org Subject: MASTER_SITE_SUBDIR Message-ID: <61F244B2FEF2F9C63E37A25B@atuin.in.mat.cc> X-Mailer: Mulberry/4.0.8 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 May 2015 10:55:10 -0000 Hi, TL;DR: As in, don't use it, you're going to hurt yourselves, I'm not kidding. In ancient times, you had to do horribly complicated stuffs like: MASTER_SITES= ${MASTER_SITE_LOCAL:S/$/:local/} ${MASTER_SITE_PERL_CPAN:S/$/:cpan/} MASTER_SITE_SUBDIR= mat/:local DBIx/:cpan DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:local,cpan For the past 9 years, to be precise r169110, modulo a few bugs corrections, you have been able to do: MASTER_SITES= LOCAL/mat CPAN/DBIx Please, do, now. As to why, here are a few examples that, while looking inconspicuously good, were *not* working as expected, and their new, working, version: ------------------ MASTER_SITES= ${MASTER_SITE_SAVANNAH}:m17n \ ${MASTER_SITE_GNU:S/$/:glibc/} MASTER_SITE_SUBDIR= m17n/:m17n \ glibc/:glibc ------------------ -> MASTER_SITES= SAVANNAH/m17n:m17n GNU/glibc:glibc ------------------ ------------------ MASTER_SITES= ${MASTER_SITE_LOCAL:S|%SUBDIR%|kiri/wmicons|} \ ${MASTER_SITE_WINDOWMAKER} \ ${MASTER_SITE_PORTS_JP} \ MASTER_SITE_SUBDIR= . contrib/old/icons ------------------ -> MASTER_SITES= LOCAL/kiri/wmicons \ WINDOWMAKER/contrib/old/icons \ PORTS_JP \ ------------------ ------------------ MASTER_SITES= ${MASTER_SITE_XCONTRIB} \ ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= cy MASTER_SITE_SUBDIR= window_managers ------------------ -> MASTER_SITE_SUBDIR= XCONTRIB/window_managers \ LOCAL/cy ------------------ ------------------ MASTER_SITES= ${MASTER_SITE_GNU} \ ${MASTER_SITE_SAVANNAH} MASTER_SITE_SUBDIR= ${PORTNAME:S|$|:src|} DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:src ------------------ -> MASTER_SITES= GNU SAVANNAH DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ------------------ ------------------ MASTER_SITES= http://pks.sourceforge.net/:sf ${MASTER_SITE_LOCAL}:local MASTER_SITE_SUBDIR= .:sf mandree:local DISTFILES= pks-current.tgz:sf,local ------------------ -> MASTER_SITES= http://pks.sourceforge.net/ LOCAL/mandree DISTFILES= pks-current.tgz ------------------ -- Mathieu Arnold