diff options
author | minskim <minskim@pkgsrc.org> | 2006-10-15 01:56:06 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2006-10-15 01:56:06 +0000 |
commit | 3cc5058c861dcc743ffd6daccffb04b11cd6c4d4 (patch) | |
tree | f1f50de027b11ded392f1559a2ee47fdfec4ef85 /mk/extract | |
parent | 980fbcd31308eeb1b43df52c12f8bfaf0b8c8e90 (diff) | |
download | pkgsrc-3cc5058c861dcc743ffd6daccffb04b11cd6c4d4.tar.gz |
Teach how to unpack .gem files.
Diffstat (limited to 'mk/extract')
-rw-r--r-- | mk/extract/bsd.extract-vars.mk | 5 | ||||
-rwxr-xr-x | mk/extract/extract | 8 |
2 files changed, 11 insertions, 2 deletions
diff --git a/mk/extract/bsd.extract-vars.mk b/mk/extract/bsd.extract-vars.mk index 5b8d1ddb7ae..cc7076b83ae 100644 --- a/mk/extract/bsd.extract-vars.mk +++ b/mk/extract/bsd.extract-vars.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.extract-vars.mk,v 1.5 2006/09/13 11:10:36 joerg Exp $ +# $NetBSD: bsd.extract-vars.mk,v 1.6 2006/10/15 01:56:06 minskim Exp $ # # This Makefile fragment is included separately by bsd.pkg.mk and # defines some variables which must be defined earlier than where @@ -65,3 +65,6 @@ USE_TOOLS+= unzoo .if !empty(EXTRACT_ONLY:M*.rar) USE_TOOLS+= unrar .endif +.if !empty(EXTRACT_ONLY:M*.gem) +USE_TOOLS+= gem +.endif diff --git a/mk/extract/extract b/mk/extract/extract index 7600d947b8c..d0dd57cc5d5 100755 --- a/mk/extract/extract +++ b/mk/extract/extract @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: extract,v 1.3 2006/09/13 11:10:36 joerg Exp $ +# $NetBSD: extract,v 1.4 2006/10/15 01:56:06 minskim Exp $ # # Copyright (c) 2006 The NetBSD Foundation, Inc. # All rights reserved. @@ -100,6 +100,7 @@ set -u # treat undefined variables as errors : ${CAT:=cat} : ${CP:=cp} : ${ECHO:=echo} +: ${GEM:="gem unpack"} : ${GZCAT:="gzip -cd"} : ${LHA:=lha} : ${MKDIR:=mkdir} @@ -191,6 +192,7 @@ case "$distfile" in *.zoo) _format=zoo ;; *.rar) _format=rar ;; *.bin) _format=jre-bin ;; +*.gem) _format=gem ;; *) _format=none ;; esac ${TEST} -n "$format" || format="$_format" @@ -305,6 +307,10 @@ jre-bin) ${ECHO} yes | "$distfile" ${EXTRACT_OPTS_BIN} >/dev/null ;; +gem) + ${GEM} "$distfile" + ;; + none) # By default, copy the distfile over to the current working directory. ${CP} "$distfile" . |