From owner-freebsd-ports@FreeBSD.ORG Mon Aug 7 19:23:53 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E64F16A4F5 for ; Mon, 7 Aug 2006 19:23:53 +0000 (UTC) (envelope-from bsam@bsam.ru) Received: from mail.kuban.ru (mail.kuban.ru [62.183.66.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id F326D43DD3 for ; Mon, 7 Aug 2006 19:23:41 +0000 (GMT) (envelope-from bsam@bsam.ru) Received: from bsam.ru ([83.239.48.134]) by mail.kuban.ru (8.9.1/8.9.1) with ESMTP id k77JNLgG058755; Mon, 7 Aug 2006 23:23:32 +0400 (MSD) Received: from bsam by bsam.ru with local (Exim 4.62 (FreeBSD)) (envelope-from ) id 1GAAgN-0003Yy-W7; Mon, 07 Aug 2006 23:22:35 +0400 To: Brooks Davis References: <14817321@bsam.ru> <20060807152816.GA82788@lor.one-eyed-alien.net> From: Boris Samorodov Date: Mon, 07 Aug 2006 23:22:35 +0400 In-Reply-To: <20060807152816.GA82788@lor.one-eyed-alien.net> (Brooks Davis's message of "Mon, 7 Aug 2006 10:28:16 -0500") Message-ID: <14802724@bsam.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Boris Samorodov Cc: freebsd-ports@freebsd.org Subject: Re: extract both bz2 and gz files from distfiles 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: Mon, 07 Aug 2006 19:23:53 -0000 On Mon, 7 Aug 2006 10:28:16 -0500 Brooks Davis wrote: > On Mon, Aug 07, 2006 at 03:12:06AM +0400, Boris Samorodov wrote: > > We have got a port (lang/gnat-gcc34) which has both bz2 and gz > > distfiles. As for 5.x+ extracting is gone automagically. But not at > > 4.x. Well, at 4.x extracting may be done for example, by using > > USE_BZIP2 knob and doing gunzipping at after-extract:. > > > > Does someone know a better solution? > > Does we have examples at our ports? > You could replicated the 4.x behavior with a dependancy on > bsdtar from archivers/libarchive and set TAR=bsdtar. Aha, that's it. Thanks, Brooks! WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve