Changeset View
Changeset View
Standalone View
Standalone View
lang/ruby26/Makefile
Show All 34 Lines | CONFIGURE_ARGS= ${RUBY_CONFIGURE_ARGS} \ | ||||
--with-vendordir="${PREFIX}/lib/ruby/vendor_ruby" | --with-vendordir="${PREFIX}/lib/ruby/vendor_ruby" | ||||
CONFIGURE_ENV= debugflags= | CONFIGURE_ENV= debugflags= | ||||
CPPFLAGS+= -I${LOCALBASE}/include | CPPFLAGS+= -I${LOCALBASE}/include | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
# Keep this, else ruby will fail to load libraries dependent of libpthread. | # Keep this, else ruby will fail to load libraries dependent of libpthread. | ||||
LIBS+= -lpthread -L${LOCALBASE}/lib | LIBS+= -lpthread -L${LOCALBASE}/lib | ||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
WRKSRC= ${RUBY_WRKSRC} | WRKSRC= ${RUBY_WRKSRC} | ||||
MAKE_JOBS_UNSAFE= yes | |||||
RUBY_VER= 2.5 | RUBY_VER= 2.6 | ||||
USE_RUBY= yes | USE_RUBY= yes | ||||
RUBY_NO_BUILD_DEPENDS= yes | RUBY_NO_BUILD_DEPENDS= yes | ||||
RUBY_NO_RUN_DEPENDS= yes | RUBY_NO_RUN_DEPENDS= yes | ||||
OPTIONS_DEFINE= CAPIDOCS DEBUG DOCS EXAMPLES GMP RDOC | OPTIONS_DEFINE= CAPIDOCS DEBUG DOCS EXAMPLES GMP RDOC | ||||
OPTIONS_DEFAULT= RDOC LIBEDIT | OPTIONS_DEFAULT= RDOC LIBEDIT | ||||
OPTIONS_SINGLE= EDIT | OPTIONS_SINGLE= EDIT | ||||
OPTIONS_SINGLE_EDIT= LIBEDIT READLINE | OPTIONS_SINGLE_EDIT= LIBEDIT READLINE | ||||
▲ Show 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | EXTDOCS= readline/README \ | ||||
ripper/README \ | ripper/README \ | ||||
stringio/README.md \ | stringio/README.md \ | ||||
syslog/syslog.txt | syslog/syslog.txt | ||||
# Macros to change variables in rbconfig.rb | # Macros to change variables in rbconfig.rb | ||||
RB_SET_CONF_VAR=${SH} -c '${REINPLACE_CMD} -E -e "s,(CONFIG\[\"$$0\"\][[:space:]]*=[[:space:]]*)(\(?)(.*)(\)?),\1\2$$1\4," ${WRKSRC}/rbconfig.rb' -- | RB_SET_CONF_VAR=${SH} -c '${REINPLACE_CMD} -E -e "s,(CONFIG\[\"$$0\"\][[:space:]]*=[[:space:]]*)(\(?)(.*)(\)?),\1\2$$1\4," ${WRKSRC}/rbconfig.rb' -- | ||||
post-patch: | post-patch: | ||||
@${FIND} ${WRKSRC}/ -name "*.orig" -delete | |||||
# We get these from other ports | # We get these from other ports | ||||
.for d in bin/rake doc/rake lib/rake test/rake man/rake.1 lib/rake.rb ext/win32ole bin/gem ext/gdbm | .for d in bin/bundle* lib/bundler* libexec/bundler* man/bundle* bin/gem man/gemfile* \ | ||||
ext/dbm ext/gdbm ext/win32ole | |||||
@${RM} -r ${BUILD_WRKSRC}/${d} | @${RM} -r ${BUILD_WRKSRC}/${d} | ||||
.endfor | .endfor | ||||
post-build: | post-build: | ||||
# | # | ||||
# Hack to allow modules to be installed into separate PREFIX and/or under user | # Hack to allow modules to be installed into separate PREFIX and/or under user | ||||
# privileges | # privileges | ||||
# | # | ||||
@${RB_SET_CONF_VAR} "prefix" "ENV['PREFIX'] || \3" | @${RB_SET_CONF_VAR} "prefix" "ENV['PREFIX'] || \3" | ||||
Show All 17 Lines | |||||
pre-install-RDOC-on: | pre-install-RDOC-on: | ||||
${MKDIR} ${STAGEDIR}${RUBY_RIDIR} | ${MKDIR} ${STAGEDIR}${RUBY_RIDIR} | ||||
${MKDIR} ${STAGEDIR}${RUBY_SITERIDIR} | ${MKDIR} ${STAGEDIR}${RUBY_SITERIDIR} | ||||
post-install: | post-install: | ||||
.if ${RUBY_VER} == ${RUBY_DEFAULT_VER} | .if ${RUBY_VER} == ${RUBY_DEFAULT_VER} | ||||
# | # | ||||
# Link just installed "ruby" to "ruby25", etc. | # Link just installed "ruby" to "ruby26", etc. | ||||
koobs: Maybe make these `rubyXY` to reduce diffs between versions | |||||
# | # | ||||
. for FILE in ${INSTALLED_SCRIPTS} | . for FILE in ${INSTALLED_SCRIPTS} | ||||
${LN} -fs ${FILE}${RUBY_SUFFIX} ${STAGEDIR}${PREFIX}/bin/${FILE} | ${LN} -fs ${FILE}${RUBY_SUFFIX} ${STAGEDIR}${PREFIX}/bin/${FILE} | ||||
. endfor | . endfor | ||||
# | # | ||||
# Link "ruby.1.gz" to "ruby25.1.gz", etc. | # Link "ruby.1.gz" to "ruby26.1.gz", etc. | ||||
Not Done Inline ActionsMaybe make these rubyXY to reduce diffs between versions koobs: Maybe make these `rubyXY` to reduce diffs between versions | |||||
# | # | ||||
. for FILE in ${INSTALLED_MANUALS} | . for FILE in ${INSTALLED_MANUALS} | ||||
${LN} -fs ${FILE}${RUBY_SUFFIX}.1.gz ${STAGEDIR}${MANPREFIX}/man/man1/${FILE}.1.gz | ${LN} -fs ${FILE}${RUBY_SUFFIX}.1.gz ${STAGEDIR}${MANPREFIX}/man/man1/${FILE}.1.gz | ||||
. endfor | . endfor | ||||
.endif | .endif | ||||
post-install-DEBUG-off: | post-install-DEBUG-off: | ||||
# | # | ||||
Show All 36 Lines |
Maybe make these rubyXY to reduce diffs between versions