Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/freebsd/poudriere.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test-ports/ports-dep-args/Mk/Uses/zip.mk')
-rw-r--r--test-ports/ports-dep-args/Mk/Uses/zip.mk27
1 files changed, 27 insertions, 0 deletions
diff --git a/test-ports/ports-dep-args/Mk/Uses/zip.mk b/test-ports/ports-dep-args/Mk/Uses/zip.mk
new file mode 100644
index 00000000..52d8f8d4
--- /dev/null
+++ b/test-ports/ports-dep-args/Mk/Uses/zip.mk
@@ -0,0 +1,27 @@
+# $FreeBSD: head/Mk/Uses/zip.mk 411970 2016-03-27 01:23:25Z bapt $
+#
+# handle zip archives
+#
+# Feature: zip
+# Usage: USES=zip[:infozip]
+#
+# MAINTAINER: portmgr@FreeBSD.org
+
+.if !defined(_INCLUDE_USES_ZIP_MK)
+_INCLUDE_USES_ZIP_MK= yes
+
+EXTRACT_SUFX?= .zip
+
+EXTRACT_BEFORE_ARGS?= -qo
+EXTRACT_AFTER_ARGS?= -d ${EXTRACT_WRKDIR}
+
+.if empty(zip_ARGS)
+EXTRACT_CMD?= ${UNZIP_NATIVE_CMD}
+.elif ${zip_ARGS} == "infozip"
+EXTRACT_DEPENDS+= ${UNZIP_CMD}:archivers/unzip
+EXTRACT_CMD?= ${UNZIP_CMD}
+.else
+IGNORE= Incorrect 'USES+=zip:${zip_ARGS}' expecting 'USES+=zip[:infozip]'
+.endif
+
+.endif