Date: Fri, 7 Mar 2014 15:25:02 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r347398 - in head/Mk: . Uses Message-ID: <201403071525.s27FP2mw004070@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403071525.s27FP2mw004070>