pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/misc/rubygems For brevity, rename the do-gem-* targets...
details: https://anonhg.NetBSD.org/pkgsrc/rev/ed30207aa987
branches: trunk
changeset: 539780:ed30207aa987
user: jlam <jlam%pkgsrc.org@localhost>
date: Thu Mar 13 15:48:32 2008 +0000
description:
For brevity, rename the do-gem-* targets to just "gem-*".
diffstat:
misc/rubygems/rubygem.mk | 36 ++++++++++++++++++------------------
1 files changed, 18 insertions(+), 18 deletions(-)
diffs (84 lines):
diff -r 982115229256 -r ed30207aa987 misc/rubygems/rubygem.mk
--- a/misc/rubygems/rubygem.mk Thu Mar 13 15:45:59 2008 +0000
+++ b/misc/rubygems/rubygem.mk Thu Mar 13 15:48:32 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: rubygem.mk,v 1.11 2008/03/13 15:45:59 jlam Exp $
+# $NetBSD: rubygem.mk,v 1.12 2008/03/13 15:48:32 jlam Exp $
#
# This Makefile fragment is intended to be included by packages that build
# and install Ruby gems.
@@ -114,17 +114,17 @@
{ gsub(/${GEM_HOME:S|${PREFIX}/||:S|/|\\/|g}/, "$${GEM_HOME}"); print; next; }
###
-### do-gem-extract
+### gem-extract
###
-### The do-gem-extract target extracts a standard gem file. A standard
+### The gem-extract target extracts a standard gem file. A standard
### gem file contains:
###
### data.tar.gz contains the actual files to build, install, etc.
### metadata.gz YAML specification file
###
-.PHONY: do-gem-extract
-do-extract: do-gem-extract
-do-gem-extract:
+.PHONY: gem-extract
+do-extract: gem-extract
+gem-extract:
${RUN} cd ${WRKDIR} && ${EXTRACTOR} -f tar ${_DISTDIR:Q}/${GEMFILE:Q}
${RUN} mkdir ${WRKSRC}
${RUN} cd ${WRKSRC} && ${EXTRACTOR} -f tar ${WRKDIR:Q}/data.tar.gz
@@ -132,27 +132,27 @@
${RUN} rm -f ${WRKDIR:Q}/data.tar.gz ${WRKDIR:Q}/metadata.gz
###
-### do-gem-build
+### gem-build
###
-### The do-gem-build target builds a new local gem from the extracted
+### The gem-build target builds a new local gem from the extracted
### gem's contents. The new gem as created as ${WRKSRC}/${GEMFILE}.
###
-.PHONY: do-gem-build do-gem-gemspec-build do-gem-rake-build
-do-build: do-gem-build
+.PHONY: gem-build gem-gemspec-build gem-rake-build
+do-build: gem-build
-do-gem-build: do-gem-${GEM_BUILD}-build
+gem-build: gem-${GEM_BUILD}-build
-do-gem-gemspec-build:
+gem-gemspec-build:
${RUN} cd ${WRKSRC} && ${RUBYGEM} build metadata
-do-gem-rake-build:
+gem-rake-build:
${RUN} cd ${WRKSRC} && ${RAKE} gem
${RUN} cd ${WRKSRC} && ln -fs pkg/${GEMFILE} .
###
-### do-gem-install
+### gem-install
###
-### The do-gem-install target installs the local gem in ${WRKDIR} into
+### The gem-install target installs the local gem in ${WRKDIR} into
### the gem repository. We this this as a staged installation
### (independent of PKG_DESTDIR_SUPPORT) because it can potentially
### build software and we want that to happen within ${WRKDIR}.
@@ -178,11 +178,11 @@
_GEM_INSTALL_TARGETS+= _gem-install-cleanbuild
_GEM_INSTALL_TARGETS+= _gem-install-copy
-.PHONY: do-gem-install ${_GEM_INSTALL_TARGETS}
+.PHONY: gem-install ${_GEM_INSTALL_TARGETS}
.ORDER: ${_GEM_INSTALL_TARGETS}
-do-install: do-gem-install
-do-gem-install: ${_GEM_INSTALL_TARGETS}
+do-install: gem-install
+gem-install: ${_GEM_INSTALL_TARGETS}
_gem-install-buildroot:
@${STEP_MSG} "Installing gem into buildroot"
Home |
Main Index |
Thread Index |
Old Index