Index: ../bsd.sanity.mk =================================================================== --- ../bsd.sanity.mk (révision 347392) +++ ../bsd.sanity.mk (copie de travail) @@ -171,3 +171,7 @@ .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 USE=zip' +.endif Index: zip.mk =================================================================== --- zip.mk (révision 0) +++ zip.mk (copie de travail) @@ -0,0 +1,27 @@ +# $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 +.else +IGNORE= Incorrect 'USES+=zip:${zip_ARGS}' expecting 'USES+=zip[:infozip]' +.endif +.endif Modification de propriétés sur zip.mk ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property