pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/extract Add support to extract using bsdtar.
details: https://anonhg.NetBSD.org/pkgsrc/rev/eb3d2b8ceb1e
branches: trunk
changeset: 542709:eb3d2b8ceb1e
user: joerg <joerg%pkgsrc.org@localhost>
date: Sun May 25 20:02:02 2008 +0000
description:
Add support to extract using bsdtar.
diffstat:
mk/extract/bsd.extract-vars.mk | 6 ++++--
mk/extract/extract.mk | 6 ++++--
2 files changed, 8 insertions(+), 4 deletions(-)
diffs (40 lines):
diff -r ee400927c7da -r eb3d2b8ceb1e mk/extract/bsd.extract-vars.mk
--- a/mk/extract/bsd.extract-vars.mk Sun May 25 19:50:24 2008 +0000
+++ b/mk/extract/bsd.extract-vars.mk Sun May 25 20:02:02 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.extract-vars.mk,v 1.9 2007/12/30 13:37:18 joerg Exp $
+# $NetBSD: bsd.extract-vars.mk,v 1.10 2008/05/25 20:02:02 joerg Exp $
#
# This Makefile fragment is included separately by bsd.pkg.mk and
# defines some variables which must be defined earlier than where
@@ -33,7 +33,9 @@
!empty(EXTRACT_ONLY:M*.tgz) || \
!empty(EXTRACT_ONLY:M*-tar.gz) || \
!empty(EXTRACT_ONLY:M*_tar.gz)
-. if !empty(EXTRACT_USING:Mgtar)
+. if !empty(EXTRACT_USING:Mbsdtar)
+USE_TOOLS+= bsdtar
+. elif !empty(EXTRACT_USING:Mgtar)
USE_TOOLS+= gtar
. elif !empty(EXTRACT_USING:Mnbtar)
USE_TOOLS+= tar
diff -r ee400927c7da -r eb3d2b8ceb1e mk/extract/extract.mk
--- a/mk/extract/extract.mk Sun May 25 19:50:24 2008 +0000
+++ b/mk/extract/extract.mk Sun May 25 20:02:02 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: extract.mk,v 1.26 2008/03/12 15:51:39 jlam Exp $
+# $NetBSD: extract.mk,v 1.27 2008/05/25 20:02:02 joerg Exp $
#
# The following variables may be set by the package Makefile and
# specify how extraction happens:
@@ -177,7 +177,9 @@
_EXTRACT_ENV+= ${TOOLS_UNZOO:D UNZOO=${TOOLS_UNZOO:Q}}
_EXTRACT_ENV+= ${EXTRACT_ENV}
-.if !empty(EXTRACT_USING:Mgtar)
+.if !empty(EXTRACT_USING:Mbsdtar)
+_EXTRACT_TAR= ${TOOLS_PATH.bsdtar}
+.elif !empty(EXTRACT_USING:Mgtar)
_EXTRACT_TAR= ${TOOLS_PATH.gtar}
.elif !empty(EXTRACT_USING:Mnbtar)
_EXTRACT_TAR= ${TOOLS_TAR}
Home |
Main Index |
Thread Index |
Old Index