diff options
author | bapt <bapt@FreeBSD.org> | 2014-03-12 17:17:06 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2014-03-12 17:17:06 +0800 |
commit | 7ef0e3435d016ed27e14fe0dbd7acdbbd842efa8 (patch) | |
tree | d6e76f5325a21119fdbe2459737f9f41582d71e1 | |
parent | 9176069a30b641a790bdaf35e56a49d1eb981f9b (diff) | |
download | freebsd-ports-gnome-7ef0e3435d016ed27e14fe0dbd7acdbbd842efa8.tar.gz freebsd-ports-gnome-7ef0e3435d016ed27e14fe0dbd7acdbbd842efa8.tar.zst freebsd-ports-gnome-7ef0e3435d016ed27e14fe0dbd7acdbbd842efa8.zip |
Two new USES added to finish handling distfiles formats a consistent way:
USES=tar[:[xz|bzip2|Z|tgz]] handles distributions files in format:
- plain tar
- tar.xz
- tar.bz2
- tar.Z
- tgz
USES=lha handles distributions files info LHA format
-rw-r--r-- | CHANGES | 14 | ||||
-rw-r--r-- | Mk/Uses/lha.mk | 22 | ||||
-rw-r--r-- | Mk/Uses/tar.mk | 28 | ||||
-rw-r--r-- | Mk/bsd.sanity.mk | 12 |
4 files changed, 76 insertions, 0 deletions
@@ -10,6 +10,20 @@ in the release notes and/or placed into UPDATING. All ports committers are allowed to commit to this file. +20140312: +AUTHOR: bapt@FreeBSD.org + + Two new USES were added to finish handling distfiles formats a consistent way: + + USES=tar[:[xz|bzip2|Z|tgz]] handles distributions files in format: + - plain tar + - tar.xz + - tar.bz2 + - tar.Z + - tgz + + USES=lha handles distributions files info LHA format + 20140307: AUTHOR: rene@FreeBSD.org diff --git a/Mk/Uses/lha.mk b/Mk/Uses/lha.mk new file mode 100644 index 000000000000..452896f754d8 --- /dev/null +++ b/Mk/Uses/lha.mk @@ -0,0 +1,22 @@ +# $FreeBSD$ +# +# handle lha archives +# +# Feature: lha +# Usage: USES=lha +# +.if !defined(_INCLUDE_USES_LHA_Mk) +_INCLUDE_USES_LHA_MK= yes + +EXTRACT_SUFX?= .lzh + +.if defined(lha_ARGS) +IGNORE= Incorrect 'USES+=lha:${lha_ARGS}' expecting 'USES+=lha' +.endif + +EXTRACT_DEPENDS+= lha:${PORTSDIR}/archivers/lha +EXTRACT_CMD?= ${LHA_CMD} +EXTRACT_BEFORE_ARGS?= xfpw=${WRKDIR} +EXTRACT_AFTER_ARGS?= + +.endif diff --git a/Mk/Uses/tar.mk b/Mk/Uses/tar.mk new file mode 100644 index 000000000000..3b4346b399f4 --- /dev/null +++ b/Mk/Uses/tar.mk @@ -0,0 +1,28 @@ +# $FreeBSD$ +# +# handle tar archives +# +# MAINTAINER: portmgr@FreeBSD.org +# +# Feature: tar +# Usage: USES=tar[:[xz|Z|bzip2|tgz]] +# +.if !defined(_INCLUDE_USES_TAR_Mk) +_INCLUDE_USES_TAR_MK= yes + +tar_ARGS?= none + +.if ${tar_ARGS} == xz +EXTRACT_SUFX?= .tar.xz +.elif ${tar_ARGS} == bzip2 +EXTRACT_SUFX?= .tar.bz2 +.elif ${tar_ARGS} == tgz +EXTRACT_SUFX?= .tgz +.elif ${tar_ARGS} == Z +EXTRACT_SUFX?= .tar.Z +.elif ${tar_ARGS} == none +EXTRACT_SUFX?= .tar +.else +IGNORE= Incorrect 'USES+=tar:${tar_ARGS}' +.endif +.endif diff --git a/Mk/bsd.sanity.mk b/Mk/bsd.sanity.mk index 21268af6f93e..dbbd4af27e57 100644 --- a/Mk/bsd.sanity.mk +++ b/Mk/bsd.sanity.mk @@ -175,3 +175,15 @@ DEV_ERROR+= "USE_MAKESELF is unsupported, please use USES=makeself" .if defined(USE_ZIP) DEV_ERROR+= 'USE_ZIP is unsupported, please use USES=zip' .endif + +.if defined(USE_LHA) +DEV_WARNING+= 'USE_LHA is deprecated, please use USES=lha' +.endif + +.if defined(USE_XZ) +DEV_WARNING+= 'USE_XZ is deprecated, please use USES=tar:xz' +.endif + +.if defined(USE_BZIP2) +DEV_WARNING+= 'USE_XZ is deprecated, please use USES=tar:bzip2' +.endif |