Annotation of pkgsrc/lang/ruby/rubyversion.mk, revision 1.52
1.52 ! joerg 1: # $NetBSD: rubyversion.mk,v 1.51 2010/09/24 07:44:29 taca Exp $
1.1 taca 2: #
3:
1.18 rillig 4: .if !defined(_RUBYVERSION_MK)
1.1 taca 5: _RUBYVERSION_MK= # defined
6:
7: .include "../../mk/bsd.prefs.mk"
8:
9: # current supported Ruby's version
1.40 taca 10: RUBY18_VERSION= 1.8.7
1.49 taca 11: RUBY19_VERSION= 1.9.2
1.23 taca 12:
1.32 taca 13: # patch
1.49 taca 14: RUBY18_PATCHLEVEL= pl302
15: RUBY19_PATCHLEVEL= pl0
16:
17: # current API compatible version.
18: RUBY18_API_VERSION= 1.8.7
19: RUBY19_API_VERSION= 1.9.1
1.1 taca 20:
21: # RUBY_VERSION_DEFAULT defines default version for Ruby related
1.51 taca 22: # packages and user can define in mk.conf. (1.8 or 1.9)
1.1 taca 23: #
24: RUBY_VERSION_DEFAULT?= 1.8
1.52 ! joerg 25: _RUBY_VERSION_DEFAULT= ${RUBY_VERSION_DEFAULT:S/.//}
1.1 taca 26:
27: # RUBY_VERSION defines the specific Ruby's version which is supported
28: # by the package. It should be defined by packages whose distfiles
29: # are contained by Ruby's release distribution.
30: #
31: # Default value is set to ${RUBY_VERSION_DEFAULT}
32: #
1.52 ! joerg 33: .if defined(RUBY_VERSION_REQD)
! 34: . if ${RUBY_VERSION_REQD} == "18"
1.1 taca 35: RUBY_VERSION?= ${RUBY18_VERSION}
1.49 taca 36: RUBY_API_VERSION?= ${RUBY18_API_VERSION}
1.52 ! joerg 37: . elif ${RUBY_VERSION_REQD} == "19"
1.49 taca 38: RUBY_VERSION?= ${RUBY19_VERSION}
39: RUBY_API_VERSION?= ${RUBY19_API_VERSION}
1.52 ! joerg 40: . else
! 41: RUBY_VERSION?= ${RUBY18_VERSION}
! 42: RUBY_API_VERSION?= ${RUBY18_API_VERSION}
! 43: PKG_FAIL_REASON+= "Unknown value for ${RUBY_VERSION_REQD}"
! 44: . endif
! 45: .else
! 46: . if ${RUBY_VERSION_DEFAULT} == "1.8"
! 47: RUBY_VERSION?= ${RUBY18_VERSION}
! 48: RUBY_API_VERSION?= ${RUBY18_API_VERSION}
! 49: . elif ${RUBY_VERSION_DEFAULT} == "1.9"
! 50: RUBY_VERSION?= ${RUBY19_VERSION}
! 51: RUBY_API_VERSION?= ${RUBY19_API_VERSION}
! 52: . endif
1.1 taca 53: .endif
1.29 taca 54:
1.49 taca 55: RUBY_PATCH_LEVEL= ${RUBY${RUBY_VER}_PATCHLEVEL}
56: .if ${RUBY_VERSION} == ${RUBY18_VERSION}
57: RUBY_VERSION_SUFFIX= ${RUBY_VERSION}${RUBY_PATCH_LEVEL:S/pl/./}
58: .elif ${RUBY_VERSION} == ${RUBY19_VERSION}
59: RUBY_VERSION_SUFFIX= ${RUBY_VERSION}${RUBY_PATCH_LEVEL}
1.32 taca 60: .endif
1.1 taca 61:
62: # RUBY_VERSION_SUPPORTED defines the list of ${RUBY_VER} which is
1.19 abs 63: # supported by the package. It should be defined by the packages
64: # for specific Ruby versions.
1.1 taca 65: #
1.50 taca 66: RUBY_VERSION_SUPPORTED?= 18 19
1.1 taca 67:
1.4 taca 68: # RUBY_VERSION_LIST defines the list of ${RUBY_VER} which is known to
69: # this framework.
70: #
1.50 taca 71: RUBY_VERSION_LIST= 18 19
1.4 taca 72:
1.1 taca 73: # RUBY_NOVERSION should be set to "Yes" if the package dosen't depend on
74: # any specific version of ruby command. In this case, package's
75: # name begin with "ruby-".
76: # If RUBY_NOVERSION is "No" (default), the package's name is begin
1.16 taca 77: # with ${RUBY_NAME}; "ruby18", "ruby19", and so on.
1.1 taca 78: #
79: # It also affects to RUBY_DOCDIR, RUBY_EXAMPLESDIR...
80: #
81: RUBY_NOVERSION?= No
82:
1.29 taca 83: # _RUBY_VER_MAJOR, _RUBY_VER_MINOR, _RUBY_VER_TEENY and _RUBY_PATCHLEVEL
84: # is defined from version of Ruby. It should not be used in packages'
85: # Makefile.
86: #
87: _RUBY_VER= ${RUBY_VERSION:C/(-.*)//}
88: _RUBY_VER_MAJOR= ${_RUBY_VER:C/([0-9]+)\.([0-9]+)\.([0-9]+)/\1/}
89: _RUBY_VER_MINOR= ${_RUBY_VER:C/([0-9]+)\.([0-9]+)\.([0-9]+)/\2/}
90: _RUBY_VER_TEENY= ${_RUBY_VER:C/([0-9]+)\.([0-9]+)\.([0-9]+)/\3/}
1.1 taca 91:
92: # RUBY_VER defines Ruby base release.
93: #
94: RUBY_VER= ${_RUBY_VER_MAJOR}${_RUBY_VER_MINOR}
95:
1.49 taca 96: # RUBY_API_TEENY is used by shared library version after Ruby 1.9.1
1.3 taca 97: #
1.49 taca 98: .if ${RUBY_VER} == "19"
99: RUBY_API_TEENY= 1
100: .else
101: RUBY_API_TEENY= ${_RUBY_VER_TEENY}
102: .endif
103:
1.6 taca 104: # RUBY_REQD Minimum required Ruby's version
1.3 taca 105: #
1.49 taca 106: RUBY_REQD?= ${RUBY_VERSION}
1.3 taca 107:
1.1 taca 108: # RUBY_SUFFIX is appended to Ruby's commands; ruby, irb and so on.
109: #
110: RUBY_SUFFIX?= ${RUBY_VER}
111:
112: # RUBY_NAME defines executable's name of Ruby itself.
113: #
114: RUBY_NAME?= ruby${RUBY_SUFFIX}
115:
1.49 taca 116: # Optional encoding argument for shbang line
117: RUBY_ENCODING_ARG?=
118:
119: # Name of gem and rake command
120: RUBYGEM_NAME= gem${RUBY_SUFFIX}
121: RAKE_NAME= rake${RUBY_SUFFIX}
122:
1.10 taca 123: # RUBY_BASE is base of ruby package's name
124: #
125: RUBY_BASE= ruby${RUBY_VER}-base
126:
1.1 taca 127: # RUBY_PKGPREFIX is prefix part for ruby based packages.
128: #
129: RUBY_PKGPREFIX?= ${RUBY_NAME}
130:
131: # RUBY_VER_DIR is used as part of Ruby's library directories.
132: #
1.49 taca 133: #.if ${RUBY_VER} == "18"
1.1 taca 134: RUBY_VER_DIR?= ${_RUBY_VER_MAJOR}.${_RUBY_VER_MINOR}
1.49 taca 135: #.else
136: #RUBY_VER_DIR?= ${RUBY_VERSION}
137: #.endif
138:
139: RUBY_SITE_SUBDIR?= ${_RUBY_VER_MAJOR}.${_RUBY_VER_MINOR}
1.1 taca 140:
141: # Simple check for package availability with Ruby's version.
142: #
143: .if empty(RUBY_VERSION_SUPPORTED:M${RUBY_VER})
144: PKG_FAIL_REASON+= "This package isn't supported by ${RUBY_NAME}."
145: .endif
146:
147: # RUBY_NOVERSION specifies that package dosen't depends on any
148: # version of Ruby.
149: #
150: .if empty(RUBY_NOVERSION:M[nN][oO])
151: RUBY_SUFFIX=
152: RUBY_NAME= ruby
153: .endif
154:
1.49 taca 155: # Build rdoc
156: RUBY_BUILD_RDOC?= YES
157:
158: # Build ri, index for ri command
159: RUBY_BUILD_RI?= YES
160:
1.1 taca 161: # RUBY related command's full pathname.
162: #
1.15 taca 163: RUBY?= ${PREFIX}/bin/${RUBY_NAME}
164: RDOC?= ${PREFIX}/bin/rdoc${RUBY_VER}
1.1 taca 165:
166: #
1.17 minskim 167: # RUBY_ARCH is used as architecture-dependent directory name.
1.1 taca 168: #
169: RUBY_ARCH?= ${LOWER_ARCH}-${LOWER_OPSYS}${APPEND_ELF}${LOWER_OPSYS_VERSUFFIX}
170:
171: #
1.10 taca 172: # Ruby shared library version handling.
173: #
174: RUBY_SHLIBMAJOR?= ${_RUBY_VER_MAJOR}
1.49 taca 175: RUBY_SHLIBVER?= ${RUBY_API_VERSION}
1.10 taca 176:
177: .if ${OPSYS} == "NetBSD" || ${OPSYS} == "Interix"
178: RUBY_SHLIBMAJOR= ${RUBY_VER}
1.49 taca 179: RUBY_SHLIBVER= ${RUBY_VER}.${RUBY_API_TEENY}
1.12 jlam 180: .elif ${OPSYS} == "FreeBSD" || ${OPSYS} == "DragonFly"
1.10 taca 181: RUBY_SHLIBMAJOR= # unused
1.12 jlam 182: RUBY_SHLIBVER= ${RUBY_VER}
1.10 taca 183: .elif ${OPSYS} == "OpenBSD"
184: RUBY_SHLIBMAJOR= # unused
1.49 taca 185: RUBY_SHLIBVER= ${_RUBY_VER_MAJOR}.${_RUBY_VER_MINOR}${RUBY_API_TEENY}
1.10 taca 186: .elif ${OPSYS} == "IRIX"
187: RUBY_SHLIBMAJOR= # unused
188: .elif ${OPSYS} == "Linux"
189: RUBY_SHLIBMAJOR= ${_RUBY_VER_MAJOR}.${_RUBY_VER_MINOR}
190: .endif
191:
192: .if empty(RUBY_SHLIBMAJOR)
193: RUBY_NOSHLIBMAJOR= "@comment "
194: .else
195: RUBY_NOSHLIBMAJOR=
196: .endif
197:
198: #
1.5 taca 199: # RUBY_DLEXT is suffix of extention library.
200: #
201: .if ${OPSYS} == "Darwin"
202: RUBY_DLEXT= bundle
203: .else
204: RUBY_DLEXT= so
205: .endif
206:
207: #
1.26 taca 208: # Use pthread library with Ruby
209: #
210: .if ${OPSYS} == "NetBSD" && !empty(OS_VERSION:M1.[0-9].*)
211: RUBY_USE_PTHREAD?= no
1.42 minskim 212: .elif !empty(MACHINE_PLATFORM:MDarwin-9.*-powerpc)
213: # Workaround for Ruby Bug #193
214: # http://redmine.ruby-lang.org/issues/show/193
215: RUBY_USE_PTHREAD?= no
1.26 taca 216: .else
217: RUBY_USE_PTHREAD?= yes
218: PTHREAD_OPTS+= native
1.27 taca 219: PTHREAD_AUTO_VARS= yes
1.26 taca 220: .endif
221:
222: #
1.23 taca 223: # Dynamic PLIST directories
224: #
225: RUBY_DYNAMIC_DIRS?= # empty
226:
227: #
1.10 taca 228: # source directory
229: #
230: RUBY_SRCDIR?= ${_PKGSRC_TOPDIR}/lang/${RUBY_BASE}
231:
232: #
1.23 taca 233: # common paths
1.1 taca 234: #
1.49 taca 235: RUBY_INC= include/ruby-${RUBY_VER_DIR}
236: RUBY_ARCHINC= ${RUBY_INC}/${RUBY_ARCH}
237: RUBY_LIB_BASE= lib/ruby
238: RUBY_LIB?= ${RUBY_LIB_BASE}/${RUBY_VER_DIR}
1.40 taca 239: RUBY_ARCHLIB?= ${RUBY_LIB}/${RUBY_ARCH}
1.49 taca 240: RUBY_SITELIB_BASE?= ${RUBY_LIB_BASE}/site_ruby
1.40 taca 241: RUBY_SITELIB?= ${RUBY_SITELIB_BASE}/${RUBY_VER_DIR}
242: RUBY_SITEARCHLIB?= ${RUBY_SITELIB}/${RUBY_ARCH}
1.49 taca 243: RUBY_VENDORLIB_BASE?= ${RUBY_LIB_BASE}/vendor_ruby
1.40 taca 244: RUBY_VENDORLIB?= ${RUBY_VENDORLIB_BASE}/${RUBY_VER_DIR}
245: RUBY_VENDORARCHLIB?= ${RUBY_VENDORLIB}/${RUBY_ARCH}
1.49 taca 246:
1.40 taca 247: RUBY_DOC?= share/doc/${RUBY_NAME}
248: RUBY_EG?= share/examples/${RUBY_NAME}
249:
1.49 taca 250: # RUBY_GEM_BASE
251: # The base path of the gem repository.
1.40 taca 252: #
1.49 taca 253: RUBY_GEM_BASE?= ${RUBY_LIB_BASE}/gems
254:
255: # GEM_HOME
256: # The path of the gem repository.
1.40 taca 257: #
1.49 taca 258: GEM_HOME?= ${RUBY_GEM_BASE}/${RUBY_VER_DIR}
1.31 taca 259:
260: #
261: # ri database relative path
262: #
263: RUBY_RIDIR?= share/ri
1.15 taca 264: RUBY_BASERIDIR?= ${RUBY_RIDIR}/${RUBY_VER_DIR}
265: RUBY_SYSRIDIR?= ${RUBY_BASERIDIR}/system
266: RUBY_SITERIDIR?= ${RUBY_BASERIDIR}/site
1.1 taca 267:
268: #
269: # MAKE_ENV
270: #
1.18 rillig 271: MAKE_ENV+= RUBY=${RUBY:Q} RUBY_VER=${RUBY_VER:Q} \
272: RUBY_VERSION=${RUBY_VERSION:Q} \
273: RUBY_VERSION_DEFAULT=${RUBY_VERSION_DEFAULT:Q}
1.15 taca 274:
1.18 rillig 275: MAKEFLAGS+= RUBY_VERSION=${RUBY_VERSION:Q} \
276: RUBY_VERSION_DEFAULT=${RUBY_VERSION_DEFAULT:Q}
1.15 taca 277:
1.49 taca 278: #
1.1 taca 279: # PLIST
280: #
1.49 taca 281: PLIST_VARS+= ruby18 ruby19
282: .if ${RUBY_VER} == "18"
283: PLIST.ruby18= yes
284: .elif ${RUBY_VER} == "19"
285: PLIST.ruby19= yes
286: .endif
287:
288: PLIST_RUBY_DIRS= RUBY_INC=${RUBY_INC:Q} RUBY_ARCHINC=${RUBY_ARCHINC:Q} \
289: RUBY_LIB_BASE=${RUBY_LIB_BASE:Q} \
290: RUBY_LIB=${RUBY_LIB:Q} \
291: RUBY_ARCHLIB=${RUBY_ARCHLIB:Q} \
1.40 taca 292: RUBY_SITELIB_BASE=${RUBY_SITELIB_BASE:Q} \
1.49 taca 293: RUBY_SITELIB=${RUBY_SITELIB:Q} \
294: RUBY_SITEARCHLIB=${RUBY_SITEARCHLIB:Q} \
1.40 taca 295: RUBY_VENDORLIB_BASE=${RUBY_VENDORLIB_BASE:Q} \
296: RUBY_VENDORLIB=${RUBY_VENDORLIB:Q} \
297: RUBY_VENDORARCHLIB=${RUBY_VENDORARCHLIB:Q} \
1.49 taca 298: RUBY_DOC=${RUBY_DOC:Q} \
299: RUBY_EG=${RUBY_EG:Q} \
300: RUBY_GEM_BASE=${RUBY_GEM_BASE:Q} \
301: GEM_HOME=${GEM_HOME:Q} \
302: RUBY_RIDIR=${RUBY_RIDIR:Q} \
303: RUBY_BASERIDIR=${RUBY_BASERIDIR:Q} \
304: RUBY_SYSRIDIR=${RUBY_SYSRIDIR:Q} \
305: RUBY_SITERIDIR=${RUBY_SITERIDIR:Q}
1.1 taca 306:
1.14 taca 307: #
308: # substitutions
309: #
1.18 rillig 310: FILES_SUBST+= RUBY=${RUBY:Q} RUBY_NAME=${RUBY_NAME:Q} \
311: RUBY_PKGPREFIX=${RUBY_PKGPREFIX:Q} \
312: RUBY_VER=${RUBY_VER:Q} \
1.15 taca 313: ${PLIST_RUBY_DIRS}
1.14 taca 314:
1.15 taca 315: MESSAGE_SUBST+= RUBY="${RUBY}" RUBY_VER="${RUBY_VER}" \
1.14 taca 316: RUBY_VERSION="${RUBY_VERSION}" \
1.15 taca 317: RUBY_PKGPREFIX="${RUBY_PKGPREFIX}" \
318: ${PLIST_RUBY_DIRS:S,DIR="${PREFIX}/,DIR=",}
1.14 taca 319:
1.18 rillig 320: PLIST_SUBST+= RUBY=${RUBY:Q} RUBY_VER=${RUBY_VER:Q} \
1.49 taca 321: RUBY_PKGPREFIX=${RUBY_PKGPREFIX} \
1.18 rillig 322: RUBY_VERSION=${RUBY_VERSION:Q} \
323: RUBY_VER_DIR=${RUBY_VER_DIR:Q} \
324: RUBY_DLEXT=${RUBY_DLEXT:Q} \
1.39 jlam 325: RUBY_ARCH=${RUBY_ARCH:Q} \
1.49 taca 326: ${PLIST_RUBY_DIRS:S,DIR="${PREFIX}/,DIR=",} \
327: GEM_HOME=${GEM_HOME:Q}
1.1 taca 328:
1.22 taca 329: #
1.23 taca 330: # make dynamic PLIST
1.22 taca 331: #
1.23 taca 332: .if !empty(RUBY_DYNAMIC_DIRS)
333:
334: RUBY_PLIST_DYNAMIC= ${WRKDIR}/PLIST.work
335:
336: .if !defined(PLIST_SRC)
337: . if exists(${PKGDIR}/PLIST.common)
338: PLIST_SRC+= ${PKGDIR}/PLIST.common
339: . elif exists(${PKGDIR}/PLIST)
340: PLIST_SRC+= ${PKGDIR}/PLIST
341: . endif
342:
343: PLIST_SRC+= ${RUBY_PLIST_DYNAMIC}
344:
345: . if exists(${PKGDIR}/PLIST.common_end)
346: PLIST_SRC+= ${PKGDIR}/PLIST.common_end
347: . endif
348:
349: .endif
350:
351: RUBY_PLIST_COMMENT_CMD= \
352: ${ECHO} "@comment The following lines are automatically generated"
1.37 obache 353: RUBY_PLIST_FILES_CMD= ( cd ${DESTDIR}${PREFIX}; \
1.23 taca 354: ${FIND} ${RUBY_DYNAMIC_DIRS} \( -type f -o -type l \) -print ) | \
355: ${SORT} -u
356: RUBY_GENERATE_PLIST = ( \
357: ${RUBY_PLIST_COMMENT_CMD}; \
1.47 joerg 358: ${RUBY_PLIST_FILES_CMD} ) > ${RUBY_PLIST_DYNAMIC}
1.22 taca 359: .endif
1.23 taca 360:
361: .if !empty(RUBY_NOVERSION:M[nN][oO])
1.26 taca 362: .if empty(RUBY_USE_PTHREAD:M[nN][oO])
1.22 taca 363: .include "../../mk/pthread.buildlink3.mk"
1.23 taca 364: .endif
365: .include "../../mk/bdb.buildlink3.mk"
1.28 taca 366: .include "../../converters/libiconv/buildlink3.mk"
1.22 taca 367: .include "../../devel/zlib/buildlink3.mk"
368: .include "../../security/openssl/buildlink3.mk"
1.23 taca 369: .include "../../mk/dlopen.buildlink3.mk"
1.22 taca 370: .endif
371:
1.49 taca 372: .if ${RUBY_VER} == "19"
373: PRINT_PLIST_AWK+= /${RUBY_DLEXT}\.${RUBY_SHLIBVER:S|.|\\.|}$$/ \
374: { sub(/${RUBY_DLEXT}\.${RUBY_SHLIBVER:S|.|\\.|}$$/, \
375: "$${RUBY_DLEXT}.$${RUBY_SHLIBVER}"); }
376: PRINT_PLIST_AWK+= /${RUBY_DLEXT}\.${RUBY_SHLIBMAJOR}$$/ \
377: { sub(/${RUBY_DLEXT}\.${RUBY_SHLIBMAJOR}$$/, \
378: "$${RUBY_DLEXT}.$${RUBY_SHLIBMAJOR}"); }
379: .endif
380: PRINT_PLIST_AWK+= /^${RUBY_ARCHINC:S|/|\\/|g}/ \
381: { gsub(/${RUBY_ARCHINC:S|/|\\/|g}/, "$${RUBY_ARCHINC}"); \
382: print; next; }
383: PRINT_PLIST_AWK+= /^${RUBY_INC:S|/|\\/|g}/ \
384: { gsub(/${RUBY_INC:S|/|\\/|g}/, "$${RUBY_INC}"); \
385: print; next; }
1.40 taca 386: PRINT_PLIST_AWK+= /\.${RUBY_DLEXT}$$/ \
387: { gsub(/${RUBY_DLEXT}$$/, "$${RUBY_DLEXT}") }
1.47 joerg 388: PRINT_PLIST_AWK+= /^${RUBY_ARCHLIB:S|/|\\/|g}/ \
1.40 taca 389: { gsub(/${RUBY_ARCHLIB:S|/|\\/|g}/, "$${RUBY_ARCHLIB}"); \
390: print; next; }
1.47 joerg 391: PRINT_PLIST_AWK+= /^${RUBY_VENDORARCHLIB:S|/|\\/|g}/ \
1.40 taca 392: { gsub(/${RUBY_VENDORARCHLIB:S|/|\\/|g}/, "$${RUBY_VENDORARCHLIB}"); \
393: print; next; }
1.47 joerg 394: PRINT_PLIST_AWK+= /^${RUBY_VENDORLIB:S|/|\\/|g}/ \
1.40 taca 395: { gsub(/${RUBY_VENDORLIB:S|/|\\/|g}/, "$${RUBY_VENDORLIB}"); \
396: print; next; }
1.47 joerg 397: PRINT_PLIST_AWK+= /^${RUBY_SITEARCHLIB:S|/|\\/|g}/ \
1.40 taca 398: { gsub(/${RUBY_SITEARCHLIB:S|/|\\/|g}/, "$${RUBY_SITEARCHLIB}"); \
399: print; next; }
1.47 joerg 400: PRINT_PLIST_AWK+= /^${RUBY_SITELIB:S|/|\\/|g}/ \
1.40 taca 401: { gsub(/${RUBY_SITELIB:S|/|\\/|g}/, "$${RUBY_SITELIB}"); \
402: print; next; }
1.49 taca 403: PRINT_PLIST_AWK+= /^${RUBY_SITELIB_BASE:S|/|\\/|g}/ \
1.40 taca 404: { gsub(/${RUBY_SITELIB_BASE:S|/|\\/|g}/, "$${RUBY_SITELIB_BASE}"); \
405: print; next; }
1.49 taca 406: PRINT_PLIST_AWK+= /^${RUBY_VENDORLIB_BASE:S|/|\\/|g}/ \
1.40 taca 407: { gsub(/${RUBY_VENDORLIB_BASE:S|/|\\/|g}/, "$${RUBY_VENDORLIB_BASE}"); \
408: print; next; }
1.47 joerg 409: PRINT_PLIST_AWK+= /^${RUBY_LIB:S|/|\\/|g}/ \
1.40 taca 410: { gsub(/${RUBY_LIB:S|/|\\/|g}/, "$${RUBY_LIB}"); \
411: print; next; }
1.47 joerg 412: PRINT_PLIST_AWK+= /^${RUBY_DOC:S|/|\\/|g}/ \
1.40 taca 413: { gsub(/${RUBY_DOC:S|/|\\/|g}/, "$${RUBY_DOC}"); \
414: print; next; }
1.47 joerg 415: PRINT_PLIST_AWK+= /^${RUBY_EG:S|/|\\/|g}/ \
1.40 taca 416: { gsub(/${RUBY_EG:S|/|\\/|g}/, "$${RUBY_EG}"); \
417: print; next; }
1.47 joerg 418: PRINT_PLIST_AWK+= /^${RUBY_SITERIDIR:S|/|\\/|g}/ \
1.40 taca 419: { gsub(/${RUBY_SITERIDIR:S|/|\\/|g}/, "$${RUBY_SITERIDIR}"); \
420: print; next; }
1.49 taca 421: PRINT_PLIST_AWK+= /^${RUBY_SYSRIDIR:S|/|\\/|g}\// \
422: { next; }
423: PRINT_PLIST_AWK+= /\/${RUBY_NAME}/ \
424: { sub(/${RUBY_NAME}/, "$${RUBY_NAME}"); }
1.40 taca 425:
1.1 taca 426: .endif # _RUBY_MK
CVSweb <webmaster@jp.NetBSD.org>