summaryrefslogtreecommitdiff
path: root/mk/tools
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2006-10-15 01:56:06 +0000
committerminskim <minskim@pkgsrc.org>2006-10-15 01:56:06 +0000
commit3cc5058c861dcc743ffd6daccffb04b11cd6c4d4 (patch)
treef1f50de027b11ded392f1559a2ee47fdfec4ef85 /mk/tools
parent980fbcd31308eeb1b43df52c12f8bfaf0b8c8e90 (diff)
downloadpkgsrc-3cc5058c861dcc743ffd6daccffb04b11cd6c4d4.tar.gz
Teach how to unpack .gem files.
Diffstat (limited to 'mk/tools')
-rw-r--r--mk/tools/defaults.mk3
-rw-r--r--mk/tools/replace.mk13
2 files changed, 14 insertions, 2 deletions
diff --git a/mk/tools/defaults.mk b/mk/tools/defaults.mk
index fe6d5f39a83..09dd9004f33 100644
--- a/mk/tools/defaults.mk
+++ b/mk/tools/defaults.mk
@@ -1,4 +1,4 @@
-# $NetBSD: defaults.mk,v 1.48 2006/07/13 15:27:57 jlam Exp $
+# $NetBSD: defaults.mk,v 1.49 2006/10/15 01:56:06 minskim Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -79,6 +79,7 @@ _TOOLS_VARNAME.fgrep= FGREP
_TOOLS_VARNAME.file= FILE_CMD
_TOOLS_VARNAME.find= FIND
_TOOLS_VARNAME.gawk= AWK
+_TOOLS_VARNAME.gem= GEM
_TOOLS_VARNAME.gm4= M4
_TOOLS_VARNAME.gmake= GMAKE
_TOOLS_VARNAME.grep= GREP
diff --git a/mk/tools/replace.mk b/mk/tools/replace.mk
index 94cc251d008..42b62ec8a99 100644
--- a/mk/tools/replace.mk
+++ b/mk/tools/replace.mk
@@ -1,4 +1,4 @@
-# $NetBSD: replace.mk,v 1.176 2006/09/27 15:18:15 joerg Exp $
+# $NetBSD: replace.mk,v 1.177 2006/10/15 01:56:06 minskim Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -342,6 +342,17 @@ TOOLS_PATH.gawk= ${TOOLS_PREFIX.gawk}/bin/${GNU_PROGRAM_PREFIX}awk
TOOLS_ALIASES.gawk= awk
.endif
+.if !defined(TOOLS_IGNORE.gem) && !empty(_USE_TOOLS:Mgem)
+. if !empty(PKGPATH:Mmisc/rubygems)
+MAKEFLAGS+= TOOLS_IGNORE.gem=
+. elif !empty(_TOOLS_USE_PKGSRC.gem:M[yY][eE][sS])
+TOOLS_DEPENDS.gem?= rubygems-[0-9]*:../../misc/rubygems
+TOOLS_CREATE+= gem
+TOOLS_FIND_PREFIX+= TOOLS_PREFIX.gem=gem
+TOOLS_PATH.gem= ${TOOLS_PREFIX.gem}/bin/gem
+. endif
+.endif
+
.if !defined(TOOLS_IGNORE.gm4) && !empty(_USE_TOOLS:Mgm4)
. if !empty(PKGPATH:Mdevel/m4)
MAKEFLAGS+= TOOLS_IGNORE.gm4=