Annotation of pkgsrc/lang/ruby/rubyversion.mk, revision 1.88
1.88 ! cheusov 1: # $NetBSD: rubyversion.mk,v 1.87 2012/09/16 15:27:42 taca Exp $
1.64 taca 2: #
3:
4: # This file determines which Ruby version is used as a dependency for
5: # a package.
6: #
7: #
8: # === User-settable variables ===
9: #
10: # RUBY_VERSION_DEFAULT
11: # The preferered Ruby version to use.
12: #
1.87 taca 13: # Possible values: 18 193
1.77 taca 14: # Default: 193
1.64 taca 15: #
16: # RUBY_BUILD_RDOC
17: # Build rdoc of this package and so that install formated
18: # documentation. It is also used in each package.
19: #
20: # Possible values: Yes No
21: # Default: Yes
22: #
23: # RUBY_BUILD_RI
24: # Build ri format of this package so that ri command would be
25: # display class/module definitions. It is also used in each package.
26: #
27: # Possible values: Yes No
28: # Default: Yes
29: #
1.88 ! cheusov 30: # RUBY_VERSION_REQD
! 31: # Ruby version to use. This is a user variable and
! 32: # should not be set in packages.
! 33: # Normally it is used by bulk build tools.
! 34: #
! 35: # Possible values: ${RUBY_VERSION_SUPPORTED}
! 36: # Default: ${RUBY_VERSION_DEFAULT}
1.64 taca 37: #
38: # === Package-settable variables ===
39: #
40: # RUBY_VERSION_SUPPORTED
41: # The Ruby versions that are acceptable for the package.
42: #
1.87 taca 43: # Possible values: 18 193
44: # Default: 18 193
1.64 taca 45: #
46: # RUBY_NOVERSION
47: # If "Yes", the package dosen't depend on any version of Ruby, such
48: # as editing mode for emacs. In this case, package's name would begin
49: # with "ruby-". Otherwise, the package's name is begin with
1.87 taca 50: # ${RUBY_PKGPREFIX}; "ruby18" or "ruby193".
1.64 taca 51: #
52: # Possible values: Yes No
53: # Default: No
54: #
55: # RUBY_DYNAMIC_DIRS
56: # Build dynamic PLIST from directories.
57: #
58: # Default: (empty)
59: #
60: # RUBY_ENCODING_ARG
61: #
62: # Optional encoding argument for shbang line.
63: #
64: # Default: (empty)
65: #
66: # === Defined variables ===
67: #
68: # RUBY_VER
1.87 taca 69: # Really selected version of ruby.
1.64 taca 70: #
1.87 taca 71: # Possible values: 18 193
1.64 taca 72: #
73: # Use this variable in pkgsrc's Makefile
74: #
75: # RUBY_PKGPREFIX
76: # Prefix part for ruby based packages. It is recommended that to
77: # use RUBY_PKGPREFIX with ruby related packages since you can supply
78: # different binary packages as each version of Ruby.
79: #
80: # RUBY_ABI_VERSION
81: # Ruby's ABI version.
82: #
83: # RUBY_DLEXT
84: # Suffix of extention library.
85: #
86: # RUBY_SLEXT
87: # Suffix of shared library.
88: #
89: # RUBY
90: # Full path of ruby command.
91: #
92: # RDOC
93: # Full path of rdoc command.
94: #
95: # RUBY_NAME
96: # Name of ruby command.
97: #
98: # RUBYGEM_NAME
99: # Name of gem command.
100: #
101: # RAKE_NAME
102: # Name of rake command.
103: #
104: # RUBY_SUFFIX
105: # Extra string for each ruby commands; ruby, irb and so on.
106: #
107: # RUBY_VERSION
108: # Version of real Ruby's version excluding patchlevel.
109: #
110: # RUBY_VERSION_FULL
111: # Version of Ruby including patchlevel.
112: #
113: # RUBY_BASE
114: # Name of ruby base package's name.
115: #
116: # RUBY_SRCDIR
117: # Directory of base ruby package.
118: #
119: # RUBY_SHLIBVER
120: # Suffix of libruby shared library's version.
121: #
122: # RUBY_SHLIB
123: # String after libruby shared library.
124: #
125: # RUBY_SHLIBALIAS
126: # Symblic link with libruby shared library with major version only.
127: #
128: # RUBY_STATICLIB
129: # Name of libruby static library.
130: #
131: # RUBY_VER_DIR
132: # Name of version directory under each library (and more) directories.
133: #
134: # RUBY_ARCH
135: # Name of architecture-dependent directory name.
136: #
137: # RUBY_INC
138: # machine independent include directory of ruby.
139: #
140: # RUBY_ARCHINC
141: # machine dependent include directory of ruby.
142: #
143: # RUBY_LIB_BASE
144: # common relative path of ruby's library.
145: #
146: # RUBY_LIB
147: # version specific relative path of ruby's library.
148: #
149: # RUBY_ARCHLIB
150: # version specific and machine dependent relative path of ruby's library.
151: #
152: # RUBY_SITELIB_BASE
153: # common site local directory.
154: #
155: # RUBY_SITELIB
156: # version specific site local directory.
157: #
158: # RUBY_SITEARCHLIB
159: # version specific and machine dependent site local directory.
160: #
161: # RUBY_VENDORLIB_BASE
162: # common vendor (pkgsrc) directory.
163: #
164: # RUBY_VENDORLIB
165: # version specific vendor local directory.
166: #
167: # RUBY_VENDORARCHLIB
168: # version specific and machine dependent vendor local directory.
169: #
170: # RUBY_DOC
171: # version specific document direcotry.
172: #
173: # RUBY_EG
174: # version specific examples direcotry.
175: #
176: # RUBY_GEM_BASE
177: # common GEM directory.
178: #
179: # GEM_HOME
180: # version specific GEM directory.
181: #
182: # RUBY_RIDIR
183: # common ri directory.
184: #
185: # RUBY_BASERIDIR
186: # version specific ri directory.
187: #
188: # RUBY_SYSRIDIR
189: # version specific system ri directory.
190: #
191: # RUBY_SITERIDIR
192: # version specific site ri directory.
193: #
194: # Keywords: ruby
1.1 taca 195: #
196:
1.18 rillig 197: .if !defined(_RUBYVERSION_MK)
1.1 taca 198: _RUBYVERSION_MK= # defined
199:
200: .include "../../mk/bsd.prefs.mk"
201:
202: # current supported Ruby's version
1.40 taca 203: RUBY18_VERSION= 1.8.7
1.64 taca 204: RUBY193_VERSION= 1.9.3
1.23 taca 205:
1.32 taca 206: # patch
1.82 taca 207: RUBY18_PATCHLEVEL= pl370
1.78 taca 208: RUBY193_PATCHLEVEL= p194
1.49 taca 209:
1.59 taca 210: # current API compatible version; used for version of shared library
1.49 taca 211: RUBY18_API_VERSION= 1.8.7
1.64 taca 212: RUBY193_API_VERSION= 1.9.1
1.1 taca 213:
214: #
1.77 taca 215: RUBY_VERSION_DEFAULT?= 193
1.64 taca 216:
1.86 taca 217: RUBY_VERSION_SUPPORTED?= 193 18
1.64 taca 218: RUBY_VER?= ${RUBY_VERSION_DEFAULT}
219:
220: # If package support only one version, use it.
221: .if ${RUBY_VERSION_SUPPORTED:[\#]} == 1
1.80 taca 222: RUBY_VER= ${RUBY_VERSION_SUPPORTED}
223: RUBY_VERSION_DEFAULT= ${RUBY_VERSION_SUPPORTED}
1.64 taca 224: .endif
1.1 taca 225:
1.52 joerg 226: .if defined(RUBY_VERSION_REQD)
1.64 taca 227: . for rv in ${RUBY_VERSION_SUPPORTED}
228: . if ${rv} == ${RUBY_VERSION_REQD}
229: RUBY_VER= ${rv}
1.52 joerg 230: . endif
1.64 taca 231: . endfor
1.1 taca 232: .endif
1.29 taca 233:
1.81 obache 234: RUBY_VER:= ${RUBY_VER_MAP.${RUBY_VER}:U${RUBY_VER}}
1.67 joerg 235:
1.64 taca 236: .if ${RUBY_VER} == "18"
237: RUBY_VERSION= ${RUBY18_VERSION}
238: RUBY_VERSION_FULL= ${RUBY_VERSION}${RUBY_PATCHLEVEL:S/pl/./}
239: RUBY_ABI_VERSION= ${RUBY18_API_VERSION}
240: .elif ${RUBY_VER} == "193"
241: RUBY_VERSION= ${RUBY193_VERSION}
242: RUBY_VERSION_FULL= ${RUBY_VERSION}${RUBY_PATCHLEVEL}
243: RUBY_ABI_VERSION= ${RUBY_VERSION}
244: .else
245: PKG_FAIL_REASON+= "Unknown Ruby version specified: ${RUBY_VER}."
1.32 taca 246: .endif
1.1 taca 247:
1.64 taca 248: RUBY_PATCHLEVEL= ${RUBY${RUBY_VER}_PATCHLEVEL}
249: RUBY_API_VERSION= ${RUBY${RUBY_VER}_API_VERSION}
250:
1.60 wiz 251: # Variable assignment for multi-ruby packages
1.64 taca 252: MULTI+= RUBY_VER=${RUBY_VERS:U${RUBY_VERSION_DEFAULT}}
1.4 taca 253:
1.1 taca 254: # RUBY_NOVERSION should be set to "Yes" if the package dosen't depend on
255: # any specific version of ruby command. In this case, package's
256: # name begin with "ruby-".
257: # If RUBY_NOVERSION is "No" (default), the package's name is begin
1.87 taca 258: # with ${RUBY_NAME}; "ruby18", "ruby193", and so on.
1.1 taca 259: #
1.53 taca 260: # It also affects to RUBY_DOC, RUBY_EG...
1.1 taca 261: #
262: RUBY_NOVERSION?= No
263:
1.29 taca 264: # _RUBY_VER_MAJOR, _RUBY_VER_MINOR, _RUBY_VER_TEENY and _RUBY_PATCHLEVEL
265: # is defined from version of Ruby. It should not be used in packages'
266: # Makefile.
267: #
1.64 taca 268: _RUBY_VER_MAJOR= ${RUBY_VERSION:C/([0-9]+)\.([0-9]+)\.([0-9]+)/\1/}
269: _RUBY_VER_MINOR= ${RUBY_VERSION:C/([0-9]+)\.([0-9]+)\.([0-9]+)/\2/}
270: _RUBY_VER_TEENY= ${RUBY_VERSION:C/([0-9]+)\.([0-9]+)\.([0-9]+)/\3/}
1.1 taca 271:
1.64 taca 272: _RUBY_API_MAJOR= ${RUBY_API_VERSION:C/([0-9]+)\.([0-9]+)\.([0-9]+)/\1\2/}
273: _RUBY_API_MINOR= ${RUBY_API_VERSION:C/([0-9]+)\.([0-9]+)\.([0-9]+)/\3/}
1.1 taca 274:
1.64 taca 275: RUBY_SUFFIX= ${RUBY_VER}
1.49 taca 276:
1.64 taca 277: RUBY_NAME= ruby${RUBY_SUFFIX}
278: RUBYGEM_NAME= gem${RUBY_SUFFIX}
279: RAKE_NAME= rake${RUBY_SUFFIX}
1.1 taca 280:
1.49 taca 281: RUBY_ENCODING_ARG?=
282:
1.10 taca 283: RUBY_BASE= ruby${RUBY_VER}-base
284:
1.1 taca 285: RUBY_PKGPREFIX?= ${RUBY_NAME}
286:
1.87 taca 287: .if ${RUBY_VER} == "18"
1.64 taca 288: RUBY_VER_DIR= ${_RUBY_VER_MAJOR}.${_RUBY_VER_MINOR}
289: .else
290: RUBY_VER_DIR= ${RUBY_VERSION}
1.1 taca 291: .endif
292:
293: .if empty(RUBY_NOVERSION:M[nN][oO])
294: RUBY_SUFFIX=
295: RUBY_NAME= ruby
296: .endif
297:
1.64 taca 298: RUBY_BUILD_RDOC?= Yes
299: RUBY_BUILD_RI?= Yes
1.49 taca 300:
1.15 taca 301: RUBY?= ${PREFIX}/bin/${RUBY_NAME}
302: RDOC?= ${PREFIX}/bin/rdoc${RUBY_VER}
1.1 taca 303:
304: RUBY_ARCH?= ${LOWER_ARCH}-${LOWER_OPSYS}${APPEND_ELF}${LOWER_OPSYS_VERSUFFIX}
305:
306: #
1.53 taca 307: # Ruby shared and static library version handling.
1.10 taca 308: #
1.49 taca 309: RUBY_SHLIBVER?= ${RUBY_API_VERSION}
1.53 taca 310: RUBY_SHLIB?= ${RUBY_VER}.${RUBY_SLEXT}.${RUBY_SHLIBVER}
311: RUBY_SHLIBALIAS?= @comment
312: RUBY_STATICLIB?= ${RUBY_VER}-static.a
1.10 taca 313:
314: .if ${OPSYS} == "NetBSD" || ${OPSYS} == "Interix"
1.64 taca 315: RUBY_SHLIBVER= ${_RUBY_API_MAJOR}.${_RUBY_API_MINOR}
316: _RUBY_SHLIBALIAS= ${RUBY_VER}.${RUBY_SLEXT}.${_RUBY_API_MAJOR}
1.12 jlam 317: .elif ${OPSYS} == "FreeBSD" || ${OPSYS} == "DragonFly"
1.87 taca 318: .if ${RUBY_VER} == "18"
1.12 jlam 319: RUBY_SHLIBVER= ${RUBY_VER}
1.75 marino 320: .else
321: RUBY_SHLIBVER= ${_RUBY_VER_MAJOR}${_RUBY_VER_MINOR}${_RUBY_API_MINOR}
322: .endif
1.83 bsiegert 323: .elif ${OPSYS} == "OpenBSD" || ${OPSYS} == "MirBSD"
1.64 taca 324: RUBY_SHLIBVER= ${_RUBY_VER_MAJOR}.${_RUBY_VER_MINOR}${_RUBY_API_MINOR}
1.53 taca 325: .elif ${OPSYS} == "Darwin"
326: RUBY_SHLIB= ${RUBY_VER}.${RUBY_SHLIBVER}.${RUBY_SLEXT}
327: .if ${RUBY_VER} == "18"
328: _RUBY_SHLIBALIAS= ${RUBY_VER}.${_RUBY_VER_MAJOR}.${_RUBY_VER_MINOR}.${RUBY_SLEXT}
329: .else
330: _RUBY_SHLIBALIAS= .${_RUBY_VER_MAJOR}.${_RUBY_VER_MINOR}.${RUBY_SLEXT}
331: RUBY_STATICLIB= ${RUBY_VER}.${RUBY_API_VERSION}-static.a
332: .endif
1.10 taca 333: .elif ${OPSYS} == "Linux"
1.54 taca 334: _RUBY_SHLIBALIAS= ${RUBY_VER}.${RUBY_SLEXT}.${_RUBY_VER_MAJOR}.${_RUBY_VER_MINOR}
1.56 taca 335: .elif ${OPSYS} == "SunOS"
336: RUBY_SHLIBVER= ${_RUBY_VER_MAJOR}
1.64 taca 337: _RUBY_SHLIBALIAS= ${RUBY_VER}.${RUBY_SLEXT}.${_RUBY_VER_MAJOR}.${_RUBY_VER_MINOR}.${_RUBY_API_MINOR}
1.10 taca 338: .endif
339:
1.53 taca 340: .if !empty(_RUBY_SHLIBALIAS)
341: RUBY_SHLIBALIAS= lib/libruby${_RUBY_SHLIBALIAS}
1.10 taca 342: .endif
343:
1.64 taca 344: .if ${_OPSYS_SHLIB_TYPE} == "dylib"
1.5 taca 345: RUBY_DLEXT= bundle
1.53 taca 346: RUBY_SLEXT= dylib
1.5 taca 347: .else
348: RUBY_DLEXT= so
1.53 taca 349: RUBY_SLEXT= so
1.5 taca 350: .endif
351:
352: #
1.71 taca 353: # Ruby distribution file, few package need it.
354: #
355: _RUBY_PATCHLEVEL= ${RUBY_PATCHLEVEL:S/pl/p/:S/pre/preview/}
356:
357: .if !empty(_RUBY_PATCHLEVEL)
358: RUBY_DISTNAME?= ruby-${RUBY_VERSION}-${_RUBY_PATCHLEVEL}
359: .else
360: RUBY_DISTNAME?= ruby-${RUBY_VERSION}
361: .endif
362:
363: #
1.26 taca 364: # Use pthread library with Ruby
365: #
1.64 taca 366: .if !empty(MACHINE_PLATFORM:MDarwin-9.*-powerpc)
1.42 minskim 367: # Workaround for Ruby Bug #193
368: # http://redmine.ruby-lang.org/issues/show/193
369: RUBY_USE_PTHREAD?= no
1.26 taca 370: .else
371: RUBY_USE_PTHREAD?= yes
372: .endif
373:
1.23 taca 374: RUBY_DYNAMIC_DIRS?= # empty
375:
1.10 taca 376: RUBY_SRCDIR?= ${_PKGSRC_TOPDIR}/lang/${RUBY_BASE}
377:
378: #
1.23 taca 379: # common paths
1.1 taca 380: #
1.49 taca 381: RUBY_INC= include/ruby-${RUBY_VER_DIR}
382: RUBY_ARCHINC= ${RUBY_INC}/${RUBY_ARCH}
383: RUBY_LIB_BASE= lib/ruby
384: RUBY_LIB?= ${RUBY_LIB_BASE}/${RUBY_VER_DIR}
1.40 taca 385: RUBY_ARCHLIB?= ${RUBY_LIB}/${RUBY_ARCH}
1.49 taca 386: RUBY_SITELIB_BASE?= ${RUBY_LIB_BASE}/site_ruby
1.40 taca 387: RUBY_SITELIB?= ${RUBY_SITELIB_BASE}/${RUBY_VER_DIR}
388: RUBY_SITEARCHLIB?= ${RUBY_SITELIB}/${RUBY_ARCH}
1.49 taca 389: RUBY_VENDORLIB_BASE?= ${RUBY_LIB_BASE}/vendor_ruby
1.40 taca 390: RUBY_VENDORLIB?= ${RUBY_VENDORLIB_BASE}/${RUBY_VER_DIR}
391: RUBY_VENDORARCHLIB?= ${RUBY_VENDORLIB}/${RUBY_ARCH}
1.49 taca 392:
1.40 taca 393: RUBY_DOC?= share/doc/${RUBY_NAME}
394: RUBY_EG?= share/examples/${RUBY_NAME}
395:
1.64 taca 396:
1.49 taca 397: RUBY_GEM_BASE?= ${RUBY_LIB_BASE}/gems
398: GEM_HOME?= ${RUBY_GEM_BASE}/${RUBY_VER_DIR}
1.31 taca 399:
400: #
401: # ri database relative path
402: #
403: RUBY_RIDIR?= share/ri
1.15 taca 404: RUBY_BASERIDIR?= ${RUBY_RIDIR}/${RUBY_VER_DIR}
405: RUBY_SYSRIDIR?= ${RUBY_BASERIDIR}/system
406: RUBY_SITERIDIR?= ${RUBY_BASERIDIR}/site
1.1 taca 407:
408: #
409: # MAKE_ENV
410: #
1.18 rillig 411: MAKE_ENV+= RUBY=${RUBY:Q} RUBY_VER=${RUBY_VER:Q} \
412: RUBY_VERSION_DEFAULT=${RUBY_VERSION_DEFAULT:Q}
1.15 taca 413:
1.64 taca 414: MAKEFLAGS+= RUBY_VERSION_DEFAULT=${RUBY_VERSION_DEFAULT:Q}
1.15 taca 415:
1.49 taca 416: #
1.1 taca 417: # PLIST
418: #
1.86 taca 419: PLIST_VARS+= ruby18 ruby19 ruby193
1.49 taca 420: .if ${RUBY_VER} == "18"
421: PLIST.ruby18= yes
1.64 taca 422: .elif ${RUBY_VER} == "193"
423: PLIST.ruby19= yes
424: PLIST.ruby193= yes
1.49 taca 425: .endif
426:
427: PLIST_RUBY_DIRS= RUBY_INC=${RUBY_INC:Q} RUBY_ARCHINC=${RUBY_ARCHINC:Q} \
428: RUBY_LIB_BASE=${RUBY_LIB_BASE:Q} \
429: RUBY_LIB=${RUBY_LIB:Q} \
430: RUBY_ARCHLIB=${RUBY_ARCHLIB:Q} \
1.40 taca 431: RUBY_SITELIB_BASE=${RUBY_SITELIB_BASE:Q} \
1.49 taca 432: RUBY_SITELIB=${RUBY_SITELIB:Q} \
433: RUBY_SITEARCHLIB=${RUBY_SITEARCHLIB:Q} \
1.40 taca 434: RUBY_VENDORLIB_BASE=${RUBY_VENDORLIB_BASE:Q} \
435: RUBY_VENDORLIB=${RUBY_VENDORLIB:Q} \
436: RUBY_VENDORARCHLIB=${RUBY_VENDORARCHLIB:Q} \
1.49 taca 437: RUBY_DOC=${RUBY_DOC:Q} \
438: RUBY_EG=${RUBY_EG:Q} \
439: RUBY_GEM_BASE=${RUBY_GEM_BASE:Q} \
440: GEM_HOME=${GEM_HOME:Q} \
441: RUBY_RIDIR=${RUBY_RIDIR:Q} \
442: RUBY_BASERIDIR=${RUBY_BASERIDIR:Q} \
443: RUBY_SYSRIDIR=${RUBY_SYSRIDIR:Q} \
444: RUBY_SITERIDIR=${RUBY_SITERIDIR:Q}
1.1 taca 445:
1.14 taca 446: #
447: # substitutions
448: #
1.18 rillig 449: FILES_SUBST+= RUBY=${RUBY:Q} RUBY_NAME=${RUBY_NAME:Q} \
450: RUBY_PKGPREFIX=${RUBY_PKGPREFIX:Q} \
451: RUBY_VER=${RUBY_VER:Q} \
1.15 taca 452: ${PLIST_RUBY_DIRS}
1.14 taca 453:
1.15 taca 454: MESSAGE_SUBST+= RUBY="${RUBY}" RUBY_VER="${RUBY_VER}" \
1.14 taca 455: RUBY_VERSION="${RUBY_VERSION}" \
1.15 taca 456: RUBY_PKGPREFIX="${RUBY_PKGPREFIX}" \
457: ${PLIST_RUBY_DIRS:S,DIR="${PREFIX}/,DIR=",}
1.14 taca 458:
1.18 rillig 459: PLIST_SUBST+= RUBY=${RUBY:Q} RUBY_VER=${RUBY_VER:Q} \
1.49 taca 460: RUBY_PKGPREFIX=${RUBY_PKGPREFIX} \
1.18 rillig 461: RUBY_VERSION=${RUBY_VERSION:Q} \
462: RUBY_VER_DIR=${RUBY_VER_DIR:Q} \
1.53 taca 463: RUBY_DLEXT=${RUBY_DLEXT:Q} RUBY_SLEXT=${RUBY_SLEXT:Q} \
464: RUBY_SHLIB=${RUBY_SHLIB:Q} \
465: RUBY_SHLIBALIAS=${RUBY_SHLIBALIAS:Q} \
466: RUBY_STATICLIB=${RUBY_STATICLIB:Q} \
1.39 jlam 467: RUBY_ARCH=${RUBY_ARCH:Q} \
1.58 taca 468: ${PLIST_RUBY_DIRS:S,DIR="${PREFIX}/,DIR=",}
1.1 taca 469:
1.22 taca 470: #
1.23 taca 471: # make dynamic PLIST
1.22 taca 472: #
1.23 taca 473: .if !empty(RUBY_DYNAMIC_DIRS)
474:
475: RUBY_PLIST_DYNAMIC= ${WRKDIR}/PLIST.work
476:
477: .if !defined(PLIST_SRC)
478: . if exists(${PKGDIR}/PLIST.common)
479: PLIST_SRC+= ${PKGDIR}/PLIST.common
480: . elif exists(${PKGDIR}/PLIST)
481: PLIST_SRC+= ${PKGDIR}/PLIST
482: . endif
483:
484: PLIST_SRC+= ${RUBY_PLIST_DYNAMIC}
485:
486: . if exists(${PKGDIR}/PLIST.common_end)
487: PLIST_SRC+= ${PKGDIR}/PLIST.common_end
488: . endif
489:
490: .endif
491:
492: RUBY_PLIST_COMMENT_CMD= \
493: ${ECHO} "@comment The following lines are automatically generated"
1.37 obache 494: RUBY_PLIST_FILES_CMD= ( cd ${DESTDIR}${PREFIX}; \
1.23 taca 495: ${FIND} ${RUBY_DYNAMIC_DIRS} \( -type f -o -type l \) -print ) | \
496: ${SORT} -u
497: RUBY_GENERATE_PLIST = ( \
498: ${RUBY_PLIST_COMMENT_CMD}; \
1.47 joerg 499: ${RUBY_PLIST_FILES_CMD} ) > ${RUBY_PLIST_DYNAMIC}
1.22 taca 500: .endif
1.23 taca 501:
1.53 taca 502: PRINT_PLIST_AWK+= /lib\/libruby${RUBY_STATICLIB}$$/ \
503: { sub(/${RUBY_STATICLIB}/, "$${RUBY_STATICLIB}"); }
504: PRINT_PLIST_AWK+= /lib\/libruby${RUBY_VER}\.${RUBY_SLEXT}/ \
505: { sub(/${RUBY_VER}\.${RUBY_SLEXT}$$/, \
506: "$${RUBY_VER}.$${RUBY_SLEXT}"); }
507: PRINT_PLIST_AWK+= /${RUBY_SHLIB}$$/ \
508: { sub(/${RUBY_SHLIB}$$/, "$${RUBY_SHLIB}"); }
509: PRINT_PLIST_AWK+= /${RUBY_SLEXT}\.${RUBY_SHLIBVER}$$/ \
510: { sub(/${RUBY_SLEXT}\.${RUBY_SHLIBVER}$$/, \
511: "$${RUBY_SLEXT}.$${RUBY_SHLIBVER}"); }
512: .if ${RUBY_SHLIBALIAS} != "@comment"
513: PRINT_PLIST_AWK+= /${RUBY_SHLIBALIAS:S/\//\\\//}$$/ \
514: { sub(/${RUBY_SHLIBALIAS:S/\//\\\//}$$/, \
515: "$${RUBY_SHLIBALIAS}"); }
1.49 taca 516: .endif
517: PRINT_PLIST_AWK+= /^${RUBY_ARCHINC:S|/|\\/|g}/ \
518: { gsub(/${RUBY_ARCHINC:S|/|\\/|g}/, "$${RUBY_ARCHINC}"); \
519: print; next; }
520: PRINT_PLIST_AWK+= /^${RUBY_INC:S|/|\\/|g}/ \
521: { gsub(/${RUBY_INC:S|/|\\/|g}/, "$${RUBY_INC}"); \
522: print; next; }
1.40 taca 523: PRINT_PLIST_AWK+= /\.${RUBY_DLEXT}$$/ \
524: { gsub(/${RUBY_DLEXT}$$/, "$${RUBY_DLEXT}") }
1.47 joerg 525: PRINT_PLIST_AWK+= /^${RUBY_ARCHLIB:S|/|\\/|g}/ \
1.40 taca 526: { gsub(/${RUBY_ARCHLIB:S|/|\\/|g}/, "$${RUBY_ARCHLIB}"); \
527: print; next; }
1.47 joerg 528: PRINT_PLIST_AWK+= /^${RUBY_VENDORARCHLIB:S|/|\\/|g}/ \
1.40 taca 529: { gsub(/${RUBY_VENDORARCHLIB:S|/|\\/|g}/, "$${RUBY_VENDORARCHLIB}"); \
530: print; next; }
1.47 joerg 531: PRINT_PLIST_AWK+= /^${RUBY_VENDORLIB:S|/|\\/|g}/ \
1.40 taca 532: { gsub(/${RUBY_VENDORLIB:S|/|\\/|g}/, "$${RUBY_VENDORLIB}"); \
533: print; next; }
1.47 joerg 534: PRINT_PLIST_AWK+= /^${RUBY_SITEARCHLIB:S|/|\\/|g}/ \
1.40 taca 535: { gsub(/${RUBY_SITEARCHLIB:S|/|\\/|g}/, "$${RUBY_SITEARCHLIB}"); \
536: print; next; }
1.47 joerg 537: PRINT_PLIST_AWK+= /^${RUBY_SITELIB:S|/|\\/|g}/ \
1.40 taca 538: { gsub(/${RUBY_SITELIB:S|/|\\/|g}/, "$${RUBY_SITELIB}"); \
539: print; next; }
1.49 taca 540: PRINT_PLIST_AWK+= /^${RUBY_SITELIB_BASE:S|/|\\/|g}/ \
1.40 taca 541: { gsub(/${RUBY_SITELIB_BASE:S|/|\\/|g}/, "$${RUBY_SITELIB_BASE}"); \
542: print; next; }
1.49 taca 543: PRINT_PLIST_AWK+= /^${RUBY_VENDORLIB_BASE:S|/|\\/|g}/ \
1.40 taca 544: { gsub(/${RUBY_VENDORLIB_BASE:S|/|\\/|g}/, "$${RUBY_VENDORLIB_BASE}"); \
545: print; next; }
1.47 joerg 546: PRINT_PLIST_AWK+= /^${RUBY_LIB:S|/|\\/|g}/ \
1.40 taca 547: { gsub(/${RUBY_LIB:S|/|\\/|g}/, "$${RUBY_LIB}"); \
548: print; next; }
1.47 joerg 549: PRINT_PLIST_AWK+= /^${RUBY_DOC:S|/|\\/|g}/ \
1.40 taca 550: { gsub(/${RUBY_DOC:S|/|\\/|g}/, "$${RUBY_DOC}"); \
551: print; next; }
1.47 joerg 552: PRINT_PLIST_AWK+= /^${RUBY_EG:S|/|\\/|g}/ \
1.40 taca 553: { gsub(/${RUBY_EG:S|/|\\/|g}/, "$${RUBY_EG}"); \
554: print; next; }
1.47 joerg 555: PRINT_PLIST_AWK+= /^${RUBY_SITERIDIR:S|/|\\/|g}/ \
1.40 taca 556: { gsub(/${RUBY_SITERIDIR:S|/|\\/|g}/, "$${RUBY_SITERIDIR}"); \
557: print; next; }
1.49 taca 558: PRINT_PLIST_AWK+= /^${RUBY_SYSRIDIR:S|/|\\/|g}\// \
559: { next; }
560: PRINT_PLIST_AWK+= /\/${RUBY_NAME}/ \
561: { sub(/${RUBY_NAME}/, "$${RUBY_NAME}"); }
1.65 taca 562: PRINT_PLIST_AWK+= /^${GEM_HOME:S|/|\\/|g:S|.|\\.|g}/ \
563: { gsub(/${GEM_HOME:S|/|\\/|g}/, "$${GEM_HOME}"); }
1.40 taca 564:
1.1 taca 565: .endif # _RUBY_MK
CVSweb <webmaster@jp.NetBSD.org>