Date: Fri, 20 Apr 2018 03:12:19 -0400 From: "Jason E. Hale" <jhale@freebsd.org> To: freebsd@dreamchaser.org Cc: FreeBSD Mailing List <freebsd-ports@freebsd.org> Subject: Re: How to get -RC2 is tarball name? Message-ID: <CAJE75NGWQnD2zWq6H0PvGKHzV_NcmPTedg5gZ4RcpN%2BbTHyzNA@mail.gmail.com> In-Reply-To: <d6e0dbb3-b912-9377-b9b1-cd1cea54587b@dreamchaser.org> References: <d6e0dbb3-b912-9377-b9b1-cd1cea54587b@dreamchaser.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Apr 20, 2018 at 1:48 AM, Gary Aitken <freebsd@dreamchaser.org> wrote: > I'm trying to fetch: > https://download.gimp.org/mirror/pub/gimp/v2.10/gimp-2.10.0-RC2.tar.bz2 > Both the RC2 and the bz2 are giving me problems. > I've tried every combination I can think of and can't seem to get the > right thing. In order to get the -RC2 I had to resort to: > > PORTNAME?= gimp-devel-app > DISTVERSION= 2.10.0 > GIMPVERSION= RC2 > DISTNAME= gimp-${DISTVERSION}-${GIMPVERSION} > MASTER_SITES= https://download.gimp.org/mirror/pub/gimp/v2.10/ > > but that asks for .../v2.10/gimp-2.10.0-RC2.tar.gz > tacking the .tar.bz2 on the end of DISTNAME doesn't help. > > I know this totally ignores all the other directives about > MASTER_SITES= GIMP > and recommendations for PORT/DIST NAME and VERSION, but I can't get > any other combination to get even this far. > > Is there a way to get the portname "gimp-devel-app" truncated to "gimp" > with some operator X in ${PORTNAME:X}? I didn't see them described in > the handbook. > > Is there a variable I can override for the tar.bz2 part? > > Thanks, > Gary Based on the graphics/gimp-app port currently in the ports tree, here is what you should do: Index: Makefile =================================================================== --- Makefile (revision 467811) +++ Makefile (working copy) @@ -2,12 +2,11 @@ # $FreeBSD$ PORTNAME?= gimp-app -PORTVERSION= 2.8.22 -PORTREVISION= 1 +DISTVERSION= 2.10.0-RC2 PORTEPOCH?= 1 CATEGORIES?= graphics gnome -MASTER_SITES= GIMP/gimp/v${PORTVERSION:R} -DISTNAME= gimp-${PORTVERSION} +MASTER_SITES= GIMP/gimp/v${PORTVERSION:R:R} +DISTNAME= gimp-${DISTVERSION} MAINTAINER= gnome@FreeBSD.org COMMENT= GNU Image Manipulation Program
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJE75NGWQnD2zWq6H0PvGKHzV_NcmPTedg5gZ4RcpN%2BbTHyzNA>