Annotation of pkgsrc/lang/ruby/rubyversion.mk, revision 1.51

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

CVSweb <webmaster@jp.NetBSD.org>