From owner-freebsd-ports@freebsd.org Wed Apr 18 03:49:42 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 12343F8C209 for ; Wed, 18 Apr 2018 03:49:42 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (ns.dreamchaser.org [66.109.141.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "dreamchaser.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 799066FDE2 for ; Wed, 18 Apr 2018 03:49:41 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from breakaway.dreamchaser.org (breakaway [192.168.151.122]) by nightmare.dreamchaser.org (8.15.2/8.15.2) with ESMTP id w3I3nXjf032161 for ; Tue, 17 Apr 2018 21:49:34 -0600 (MDT) (envelope-from freebsd@dreamchaser.org) Subject: Re: magic syntax for most recent git from sourceforge? [solved] To: freebsd-ports@freebsd.org References: <9e5060d7-ba6e-8538-8205-aa6e2cc3a4a2@dreamchaser.org> Reply-To: freebsd@dreamchaser.org From: Gary Aitken Message-ID: Date: Tue, 17 Apr 2018 21:48:53 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <9e5060d7-ba6e-8538-8205-aa6e2cc3a4a2@dreamchaser.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (nightmare.dreamchaser.org [192.168.151.101]); Tue, 17 Apr 2018 21:49:34 -0600 (MDT) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Apr 2018 03:49:42 -0000 On 04/16/18 13:17, Gary Aitken wrote: > Can anyone give me the magic formula for fetching the most recent git > distro from sourceforge for a ports Makefile? > > The porter's handbook talks about how to fetch git repos from github > but not about how to get them from sourceforge. > > I've tried a few things but can't get the right combo of MASTER_SITES > and PORTNAME, DISTFILE, and DISTVERSION > > The git clone cmd is: >   git clone https://git.code.sf.net/p/nufraw/git nufraw-git > > This particular git version says it is 0.41 but attempting to fetch > with from >   PORTVERSION=    0.41 >   MASTER_SITES=   https://sourceforge.net/projects/nufraw/files/latest/ > doesn't work; PORTVERSION=  0.40 does. > I've also tried with >   DISTVERSION=    07ebb73a > with no joy. Many thanks to Jeremy Chadwick for guidance. Appropriate values for the above example are: DISTVERSION= 0.41 MASTER_SITES= SOURCEFORGE/nufraw A problem also encountered while searching for a solution was a stale distinfo left over from using the 0.40 version; moving it aside allowed the fetch to complete. Apparently the distinfo file is checked during the fetch process if it exists, not just at extract time.