From owner-svn-ports-head@FreeBSD.ORG Fri Mar 7 15:25:03 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 64C8FE09; Fri, 7 Mar 2014 15:25:03 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 522BABD4; Fri, 7 Mar 2014 15:25:03 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s27FP3H2004072; Fri, 7 Mar 2014 15:25:03 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s27FP2mw004070; Fri, 7 Mar 2014 15:25:02 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201403071525.s27FP2mw004070@svn.freebsd.org> From: Baptiste Daroussin Date: Fri, 7 Mar 2014 15:25:02 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r347398 - in head/Mk: . Uses X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Mar 2014 15:25:03 -0000 Author: bapt Date: Fri Mar 7 15:25:02 2014 New Revision: 347398 URL: http://svnweb.freebsd.org/changeset/ports/347398 QAT: https://qat.redports.org/buildarchive/r347398/ Log: Add USES=zip and USES=zip:infozip To handle the zip archives from distfiles Reviewed by: mat, antoine Added: head/Mk/Uses/zip.mk (contents, props changed) Modified: head/Mk/bsd.sanity.mk Added: head/Mk/Uses/zip.mk ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/Mk/Uses/zip.mk Fri Mar 7 15:25:02 2014 (r347398) @@ -0,0 +1,26 @@ +# $FreeBSD$ +# +# handle zip archives +# +# MAINTAINER: portmgr@FreeBSD.org +# +# Feature: zip +# Usage: USES=zip[:infozip] +# +.if !defined(_INCLUDE_USES_ZIP_Mk) +_INCLUDE_USES_ZIP_MK= yes + +zip_ARGS?= none + +EXTRACT_SUFX= .zip + +.if ${zip_ARGS} == infozip +EXTRACT_DEPENDS+= ${UNZIP_CMD}:${PORTSDIR}/archivers/unzip + +EXTRACT_CMD?= ${UNZIP_CMD} +EXTRACT_BEFORE_ARGS?= -qo +EXTRACT_AFTER_ARGS?= -d ${WRKDIR} +.elif ${zip_ARGS} != none +IGNORE= Incorrect 'USES+=zip:${zip_ARGS}' expecting 'USES+=zip[:infozip]' +.endif +.endif Modified: head/Mk/bsd.sanity.mk ============================================================================== --- head/Mk/bsd.sanity.mk Fri Mar 7 15:15:05 2014 (r347397) +++ head/Mk/bsd.sanity.mk Fri Mar 7 15:25:02 2014 (r347398) @@ -171,3 +171,7 @@ DEV_ERROR+= "USE_FAM is unsupported, ple .if defined(USE_MAKESELF) DEV_ERROR+= "USE_MAKESELF is unsupported, please use USES=makeself" .endif + +.if defined(USE_ZIP) +DEV_WARNING+= 'USE_ZIP is deprecated, please use USES=zip' +.endif