| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: rubygem.mk,v 1.38 2008/09/14 17:34:28 minskim Exp $ | | 1 | # $NetBSD: rubygem.mk,v 1.39 2008/09/15 08:42:37 taca 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 |
| @@ -54,26 +54,30 @@ | | | @@ -54,26 +54,30 @@ |
54 | # | | 54 | # |
55 | # RUBYGEM_PKGPREFIX | | 55 | # RUBYGEM_PKGPREFIX |
56 | # The recommended prefix for the PKGNAME. | | 56 | # The recommended prefix for the PKGNAME. |
57 | # | | 57 | # |
58 | # RUBYGEM | | 58 | # RUBYGEM |
59 | # The path to the rubygems ``gem'' script. | | 59 | # The path to the rubygems ``gem'' script. |
60 | # | | 60 | # |
61 | | | 61 | |
62 | PRIVILEGED_STAGES+= clean | | 62 | PRIVILEGED_STAGES+= clean |
63 | | | 63 | |
64 | # By default, assume that gems are capable of user-destdir installation. | | 64 | # By default, assume that gems are capable of user-destdir installation. |
65 | PKG_DESTDIR_SUPPORT?= user-destdir | | 65 | PKG_DESTDIR_SUPPORT?= user-destdir |
66 | | | 66 | |
| | | 67 | # replace interpeter bin default |
| | | 68 | REPLACE_RUBY_DIRS?= bin |
| | | 69 | REPLACE_RUBY_PAT?= * |
| | | 70 | |
67 | # Include this early in case some of its target are needed | | 71 | # Include this early in case some of its target are needed |
68 | .include "../../lang/ruby/modules.mk" | | 72 | .include "../../lang/ruby/modules.mk" |
69 | | | 73 | |
70 | # Default to using rake to build the local gem from the unpacked files. | | 74 | # Default to using rake to build the local gem from the unpacked files. |
71 | GEM_BUILD?= rake | | 75 | GEM_BUILD?= rake |
72 | | | 76 | |
73 | # Build and run-time dependencies. | | 77 | # Build and run-time dependencies. |
74 | # | | 78 | # |
75 | # We need rubygems>=1.1.0 to actually build the package, but the | | 79 | # We need rubygems>=1.1.0 to actually build the package, but the |
76 | # resulting installed gem can run with older versions of rubygems. | | 80 | # resulting installed gem can run with older versions of rubygems. |
77 | # | | 81 | # |
78 | # If we're using rake to build the local gem, then include it as a | | 82 | # If we're using rake to build the local gem, then include it as a |
79 | # build tool. | | 83 | # build tool. |