Changeset View
Changeset View
Standalone View
Standalone View
Mk/bsd.ruby.mk
Show All 9 Lines | |||||
Ruby_Include= bsd.ruby.mk | Ruby_Include= bsd.ruby.mk | ||||
Ruby_Include_MAINTAINER= ruby@FreeBSD.org | Ruby_Include_MAINTAINER= ruby@FreeBSD.org | ||||
# | # | ||||
# [variables that a user may define] | # [variables that a user may define] | ||||
# | # | ||||
# RUBY_VER - (See below) | # RUBY_VER - (See below) | ||||
# RUBY_DEFAULT_VER - Set to (e.g.) "1.9" if you want to refer to "ruby19" | # RUBY_DEFAULT_VER - Set to (e.g.) "2.0" if you want to refer to "ruby20" | ||||
# just as "ruby". | # just as "ruby". | ||||
# RUBY_ARCH - (See below) | # RUBY_ARCH - (See below) | ||||
# RUBY_RD_HTML - Define if you want HTML files generated from RD files. | # RUBY_RD_HTML - Define if you want HTML files generated from RD files. | ||||
# | # | ||||
# | # | ||||
# [variables that each port can define] | # [variables that each port can define] | ||||
# | # | ||||
# RUBY - Set to full path of ruby. If you set this, the values | # RUBY - Set to full path of ruby. If you set this, the values | ||||
▲ Show 20 Lines • Show All 140 Lines • ▼ Show 20 Lines | |||||
_RUBY_SYSLIBDIR!= ${_RUBY_CONFIG} 'puts C["libdir"]' | _RUBY_SYSLIBDIR!= ${_RUBY_CONFIG} 'puts C["libdir"]' | ||||
_RUBY_SITEDIR!= ${_RUBY_CONFIG} 'puts C["sitedir"]' | _RUBY_SITEDIR!= ${_RUBY_CONFIG} 'puts C["sitedir"]' | ||||
_RUBY_VENDORDIR!= ${_RUBY_CONFIG} 'puts C["vendordir"]' | _RUBY_VENDORDIR!= ${_RUBY_CONFIG} 'puts C["vendordir"]' | ||||
.else | .else | ||||
RUBY?= ${LOCALBASE}/bin/${RUBY_NAME} | RUBY?= ${LOCALBASE}/bin/${RUBY_NAME} | ||||
.if defined(RUBY_VER) | .if defined(RUBY_VER) | ||||
. if ${RUBY_VER} == 1.9 | . if ${RUBY_VER} == 2.0 | ||||
# | # | ||||
# Ruby 1.9 | |||||
# | |||||
RUBY_RELVERSION= 1.9.3 | |||||
RUBY_PORTREVISION= 2 | |||||
RUBY_PORTEPOCH= 1 | |||||
RUBY_PATCHLEVEL= 551 | |||||
RUBY19= "" # PLIST_SUB helpers | |||||
. elif ${RUBY_VER} == 2.0 | |||||
# | |||||
# Ruby 2.0 | # Ruby 2.0 | ||||
# | # | ||||
RUBY_RELVERSION= 2.0.0 | RUBY_RELVERSION= 2.0.0 | ||||
RUBY_PORTREVISION= 2 | RUBY_PORTREVISION= 2 | ||||
RUBY_PORTEPOCH= 1 | RUBY_PORTEPOCH= 1 | ||||
RUBY_PATCHLEVEL= 598 | RUBY_PATCHLEVEL= 598 | ||||
RUBY20= "" # PLIST_SUB helpers | RUBY20= "" # PLIST_SUB helpers | ||||
Show All 16 Lines | |||||
RUBY_PORTEPOCH= 1 | RUBY_PORTEPOCH= 1 | ||||
RUBY_PATCHLEVEL= 0 | RUBY_PATCHLEVEL= 0 | ||||
RUBY22= "" # PLIST_SUB helpers | RUBY22= "" # PLIST_SUB helpers | ||||
. else | . else | ||||
# | # | ||||
# Other versions | # Other versions | ||||
# | # | ||||
IGNORE= Only ruby 1.9, 2.0, 2.1 and 2.2 are supported | IGNORE= Only ruby 2.0, 2.1 and 2.2 are supported | ||||
. endif | . endif | ||||
.endif # defined(RUBY_VER) | .endif # defined(RUBY_VER) | ||||
RUBY19?= "@comment " | |||||
RUBY20?= "@comment " | RUBY20?= "@comment " | ||||
sunpoet: This can be removed. | |||||
RUBY21?= "@comment " | RUBY21?= "@comment " | ||||
RUBY22?= "@comment " | RUBY22?= "@comment " | ||||
.if ${RUBY_PATCHLEVEL} == 0 | .if ${RUBY_PATCHLEVEL} == 0 | ||||
RUBY_VERSION?= ${RUBY_RELVERSION} | RUBY_VERSION?= ${RUBY_RELVERSION} | ||||
RUBY_DISTVERSION?= ${RUBY_RELVERSION} | RUBY_DISTVERSION?= ${RUBY_RELVERSION} | ||||
.else | .else | ||||
RUBY_VERSION?= ${RUBY_RELVERSION}.${RUBY_PATCHLEVEL} | RUBY_VERSION?= ${RUBY_RELVERSION}.${RUBY_PATCHLEVEL} | ||||
▲ Show 20 Lines • Show All 113 Lines • ▼ Show 20 Lines | |||||
PLIST_SUB+= ${PLIST_RUBY_DIRS:C,DIR="(${LOCALBASE}|${PREFIX})/,DIR=",} \ | PLIST_SUB+= ${PLIST_RUBY_DIRS:C,DIR="(${LOCALBASE}|${PREFIX})/,DIR=",} \ | ||||
RUBY_VERSION="${RUBY_VERSION}" \ | RUBY_VERSION="${RUBY_VERSION}" \ | ||||
RUBY_VER="${RUBY_VER}" \ | RUBY_VER="${RUBY_VER}" \ | ||||
RUBY_SHLIBVER="${RUBY_SHLIBVER}" \ | RUBY_SHLIBVER="${RUBY_SHLIBVER}" \ | ||||
RUBY_ARCH="${RUBY_ARCH}" \ | RUBY_ARCH="${RUBY_ARCH}" \ | ||||
RUBY_SUFFIX="${RUBY_SUFFIX}" \ | RUBY_SUFFIX="${RUBY_SUFFIX}" \ | ||||
RUBY_NAME="${RUBY_NAME}" \ | RUBY_NAME="${RUBY_NAME}" \ | ||||
RUBY_DEFAULT_SUFFIX="${RUBY_DEFAULT_SUFFIX}" \ | RUBY_DEFAULT_SUFFIX="${RUBY_DEFAULT_SUFFIX}" \ | ||||
RUBY19=${RUBY19} \ | |||||
RUBY20=${RUBY20} \ | RUBY20=${RUBY20} \ | ||||
Not Done Inline ActionsThis can be removed. sunpoet: This can be removed. | |||||
RUBY21=${RUBY21} \ | RUBY21=${RUBY21} \ | ||||
RUBY22=${RUBY22} | RUBY22=${RUBY22} | ||||
.if defined(USE_RUBY_RDOC) | .if defined(USE_RUBY_RDOC) | ||||
MAKE_ENV+= RUBY_RDOC=${RUBY_RDOC} | MAKE_ENV+= RUBY_RDOC=${RUBY_RDOC} | ||||
.endif | .endif | ||||
# require check | # require check | ||||
▲ Show 20 Lines • Show All 209 Lines • ▼ Show 20 Lines | |||||
.if !defined(RUBY_NO_BUILD_DEPENDS) | .if !defined(RUBY_NO_BUILD_DEPENDS) | ||||
EXTRACT_DEPENDS+= ${DEPEND_RUBY} | EXTRACT_DEPENDS+= ${DEPEND_RUBY} | ||||
PATCH_DEPENDS+= ${DEPEND_RUBY} | PATCH_DEPENDS+= ${DEPEND_RUBY} | ||||
BUILD_DEPENDS+= ${DEPEND_RUBY} | BUILD_DEPENDS+= ${DEPEND_RUBY} | ||||
.endif | .endif | ||||
.if !defined(RUBY_NO_RUN_DEPENDS) | .if !defined(RUBY_NO_RUN_DEPENDS) | ||||
RUN_DEPENDS+= ${DEPEND_RUBY} | RUN_DEPENDS+= ${DEPEND_RUBY} | ||||
.endif | .endif | ||||
.endif | |||||
.if defined(USE_RUBY_FEATURES) | |||||
_use= ${USE_RUBY_FEATURES:Miconv} | |||||
.if !empty(_use) | |||||
.if (${RUBY_VER} == 1.9) | |||||
BUILD_DEPENDS+= ${DEPEND_RUBY_ICONV} | |||||
RUN_DEPENDS+= ${DEPEND_RUBY_ICONV} | |||||
.endif | |||||
.endif | |||||
.undef _use | |||||
.endif | .endif | ||||
.if defined(USE_RAKE) | .if defined(USE_RAKE) | ||||
BUILD_DEPENDS+= ${LOCALBASE}/bin/rake:${PORTSDIR}/devel/rubygem-rake | BUILD_DEPENDS+= ${LOCALBASE}/bin/rake:${PORTSDIR}/devel/rubygem-rake | ||||
RAKE_BIN= ${LOCALBASE}/bin/rake | RAKE_BIN= ${LOCALBASE}/bin/rake | ||||
.endif | .endif | ||||
# documents | # documents | ||||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |
This can be removed.