From owner-freebsd-ports@FreeBSD.ORG Sun Feb 14 23:54:07 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AE030106566B for ; Sun, 14 Feb 2010 23:54:07 +0000 (UTC) (envelope-from tomek.cedro@gmail.com) Received: from mail-fx0-f228.google.com (mail-fx0-f228.google.com [209.85.220.228]) by mx1.freebsd.org (Postfix) with ESMTP id 3C4508FC19 for ; Sun, 14 Feb 2010 23:54:06 +0000 (UTC) Received: by fxm28 with SMTP id 28so63476fxm.31 for ; Sun, 14 Feb 2010 15:54:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=YgMauvCE32gqhyJA3Lpub2yhpBkMz05CYcNFm17OWeE=; b=eqCEvGQcd3lcilK1ZwRnao6NIUdbEykvj9NAH7PXbp4pnSNCT00w5nQfzse1lnNJiG P5eJ0WZx8vxFW9nBj8Dlwj3jIx5Ha5J2+4PGfZ9XRTqLV4H82ALGSX9zaCkPn4Klr5UJ 9+mk0qiOfqxt3KMNO4rRFYjmrqQgDbJ+rKjqc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=ISCAf5xGXwJlmGT1PW3l6trZVOG8gkCAAdsiri8sNNY6rwkiX/onDxmje5HDKtcsG3 RHU7YIP5IcHJi6hKqlxJo6K1X3unqZWiEdyA+zQEKGswp4xP9QoLu6ygtet8xV7wx0RM uuDnuy5zNSAuWdqWtiIbmg697zlnct6U2Iigc= MIME-Version: 1.0 Received: by 10.223.4.145 with SMTP id 17mr5165029far.17.1266191646022; Sun, 14 Feb 2010 15:54:06 -0800 (PST) In-Reply-To: <20100214033627.GI1538@hades.panopticon> References: <3fcfb0ba1002131315o504bc12bw83df19461b2abd17@mail.gmail.com> <20100214033627.GI1538@hades.panopticon> Date: Sun, 14 Feb 2010 23:54:05 +0000 Message-ID: <3fcfb0ba1002141554t6adaef85y723605bc0b732185@mail.gmail.com> From: CeDeROM To: Dmitry Marakasov Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-ports@freebsd.org Subject: Re: RC1 suffix in PORTVERSION X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Feb 2010 23:54:07 -0000 Hello Dimitry! On Sun, Feb 14, 2010 at 3:36 AM, Dmitry Marakasov wrote: > * CeDeROM (tomek.cedro@gmail.com) wrote: > >> I am trying to create a helper local port for testing RC1 version of a >> program that will soon have stable port update. Unfortunately the >> package is named "openocd-0.4.0-rc1.tar.gz" and I dont know how to >> construct a variable containing this "-RC1" suffix. > > You can use DISTVERSION=3D0.4.0-rc1 instead of PORTVERSION. > > + you won't have to redefine DISTNAME, as DISTVERSION is substituded > =C2=A0there directly > + legal PORTVERSION will be constructed for you (that'll be 0.4.0.r1), > =C2=A0and the nicest thing is that 0.4.0.r1 < 0.4.0, thus when you update > =C2=A0the port to release, you won't need to bump PORTEPOCH. BINGO! The DISTVERSION=3D0.4.0-rc2 does the job right - download proper package (openocd-0.4.0-rc2.tar.gz), extracts it and then build from right place (${WRKDIR}/openocd-0.4.0-rc2/) - no other variables are necessary :-) Thank you! However, in that situation, one must remember not to touch $WRKSRC unnecessairly as it might to point at wrong directory ;P Best regards, Tomek Cedro --=20 CeDeROM, SQ7MHZ, http://www.tomek.cedro.info