| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: rubygem.mk,v 1.14 2008/03/13 15:58:27 jlam Exp $ | | 1 | # $NetBSD: rubygem.mk,v 1.15 2008/03/13 18:29:20 jlam 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 | # GEM_BUILD | | 8 | # GEM_BUILD |
9 | # The method used to build the local gem. | | 9 | # The method used to build the local gem. |
10 | # | | 10 | # |
11 | # Possible: gemspec, rake | | 11 | # Possible: gemspec, rake |
12 | # Default: rake | | 12 | # Default: rake |
13 | # | | 13 | # |
14 | # GEM_NAME | | 14 | # GEM_NAME |
| @@ -49,27 +49,27 @@ PKG_DESTDIR_SUPPORT?= user-destdir | | | @@ -49,27 +49,27 @@ PKG_DESTDIR_SUPPORT?= user-destdir |
49 | | | 49 | |
50 | # Default to using rake to build the local gem from the unpacked files. | | 50 | # Default to using rake to build the local gem from the unpacked files. |
51 | GEM_BUILD?= rake | | 51 | GEM_BUILD?= rake |
52 | | | 52 | |
53 | # Build and run-time dependencies. | | 53 | # Build and run-time dependencies. |
54 | # | | 54 | # |
55 | # We need rubygems>=1.0.1nb1 to actually build the package, but the | | 55 | # We need rubygems>=1.0.1nb1 to actually build the package, but the |
56 | # resulting installed gem can run with older versions of rubygems. | | 56 | # resulting installed gem can run with older versions of rubygems. |
57 | # | | 57 | # |
58 | # If we're using rake to build the local gem, then include it as a | | 58 | # If we're using rake to build the local gem, then include it as a |
59 | # build tool. | | 59 | # build tool. |
60 | # | | 60 | # |
61 | BUILD_DEPENDS+= rubygems>=1.0.1nb1:../../misc/rubygems | | 61 | BUILD_DEPENDS+= rubygems>=1.0.1nb1:../../misc/rubygems |
62 | DEPENDS+= rubygems>=0.8.7:../../misc/rubygems | | 62 | DEPENDS+= rubygems>=0.9.4:../../misc/rubygems |
63 | .if ${GEM_BUILD} == "rake" | | 63 | .if ${GEM_BUILD} == "rake" |
64 | BUILD_DEPENDS+= rake-[0-9]*:../../devel/rake | | 64 | BUILD_DEPENDS+= rake-[0-9]*:../../devel/rake |
65 | .endif | | 65 | .endif |
66 | | | 66 | |
67 | # GEMFILE holds the filename of the Gem to install | | 67 | # GEMFILE holds the filename of the Gem to install |
68 | .if defined(DISTFILES) | | 68 | .if defined(DISTFILES) |
69 | GEMFILE?= ${DISTFILES} | | 69 | GEMFILE?= ${DISTFILES} |
70 | .else | | 70 | .else |
71 | GEMFILE?= ${DISTNAME}${EXTRACT_SUFX} | | 71 | GEMFILE?= ${DISTNAME}${EXTRACT_SUFX} |
72 | .endif | | 72 | .endif |
73 | | | 73 | |
74 | CATEGORIES+= ruby | | 74 | CATEGORIES+= ruby |
75 | MASTER_SITES?= http://gems.rubyforge.org/gems/ | | 75 | MASTER_SITES?= http://gems.rubyforge.org/gems/ |