svn commit: r347398 - in head/Mk: . Uses

Baptiste Daroussin bapt at FreeBSD.org
Fri Mar 7 15:25:03 UTC 2014


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 at 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


More information about the svn-ports-all mailing list