| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: rubygem.mk,v 1.43 2009/06/14 18:12:48 minskim Exp $ | | 1 | # $NetBSD: rubygem.mk,v 1.44 2009/06/14 22:34:19 minskim Exp $ |
2 | # | | 2 | # |
3 | # This Makefile fragment is intended to be included by packages that build | | 3 | # This Makefile fragment is intended to be included by packages that build |
4 | # and install Ruby gems. | | 4 | # and install Ruby gems. |
5 | # | | 5 | # |
6 | # Package-settable variables: | | 6 | # Package-settable variables: |
7 | # | | 7 | # |
8 | # BUILD_TARGET | | 8 | # BUILD_TARGET |
9 | # The Rakefile target that creates a local gem if using the | | 9 | # The Rakefile target that creates a local gem if using the |
10 | # ``rake'' GEM_BUILD method. | | 10 | # ``rake'' GEM_BUILD method. |
11 | # | | 11 | # |
12 | # Default: gem | | 12 | # Default: gem |
13 | # | | 13 | # |
14 | # GEM_BUILD | | 14 | # GEM_BUILD |
| @@ -244,29 +244,27 @@ _gem-build-cleanbuild: | | | @@ -244,29 +244,27 @@ _gem-build-cleanbuild: |
244 | .endif | | 244 | .endif |
245 | | | 245 | |
246 | ### | | 246 | ### |
247 | ### gem-install | | 247 | ### gem-install |
248 | ### | | 248 | ### |
249 | ### The gem-install target installs the gem in ${_RUBY_INSTALL_ROOT} into | | 249 | ### The gem-install target installs the gem in ${_RUBY_INSTALL_ROOT} into |
250 | ### the actual gem repository. | | 250 | ### the actual gem repository. |
251 | ### | | 251 | ### |
252 | GENERATE_PLIST+= ${RUBYGEM_GENERATE_PLIST} | | 252 | GENERATE_PLIST+= ${RUBYGEM_GENERATE_PLIST} |
253 | RUBYGEM_GENERATE_PLIST= \ | | 253 | RUBYGEM_GENERATE_PLIST= \ |
254 | ${ECHO} "@comment The following lines are automatically generated." && \ | | 254 | ${ECHO} "@comment The following lines are automatically generated." && \ |
255 | ( cd ${_RUBYGEM_INSTALL_ROOT}${PREFIX} && \ | | 255 | ( cd ${_RUBYGEM_INSTALL_ROOT}${PREFIX} && \ |
256 | ${FIND} ${GEM_DOCDIR:S|${PREFIX}/||} \! -type d -print | \ | | 256 | ${FIND} ${GEM_DOCDIR:S|${PREFIX}/||} \! -type d -print | \ |
257 | ${SORT} && \ | | 257 | ${SORT} ); |
258 | ${FIND} ${GEM_DOCDIR:S|${PREFIX}/||} -type d -print | \ | | | |
259 | ${SORT} -r | ${SED} -e "s,^,@dirrm ," ); | | | |
260 | | | 258 | |
261 | _GEM_INSTALL_TARGETS= _gem-build-install-root | | 259 | _GEM_INSTALL_TARGETS= _gem-build-install-root |
262 | _GEM_INSTALL_TARGETS+= _gem-build-install-root-check | | 260 | _GEM_INSTALL_TARGETS+= _gem-build-install-root-check |
263 | .if !empty(GEM_CLEANBUILD) | | 261 | .if !empty(GEM_CLEANBUILD) |
264 | _GEM_INSTALL_TARGETS+= _gem-build-cleanbuild | | 262 | _GEM_INSTALL_TARGETS+= _gem-build-cleanbuild |
265 | .endif | | 263 | .endif |
266 | _GEM_INSTALL_TARGETS+= _gem-install | | 264 | _GEM_INSTALL_TARGETS+= _gem-install |
267 | | | 265 | |
268 | .ORDER: ${_GEM_INSTALL_TARGETS} | | 266 | .ORDER: ${_GEM_INSTALL_TARGETS} |
269 | | | 267 | |
270 | USE_TOOLS+= pax | | 268 | USE_TOOLS+= pax |
271 | | | 269 | |
272 | do-install: ${_GEM_INSTALL_TARGETS} | | 270 | do-install: ${_GEM_INSTALL_TARGETS} |