mirror of
https://github.com/openbsd/ports.git
synced 2026-06-19 16:05:12 +02:00
0222b1234c
Delete a file in post-extract to fix a net-imap build issue.
58 lines
1.4 KiB
Makefile
58 lines
1.4 KiB
Makefile
VERSION = 3.2.9
|
|
DISTNAME = ruby-${VERSION}
|
|
SHARED_LIBS = ruby32 0.0
|
|
NEXTVER = 3.3
|
|
PKGSPEC-main ?= ruby->=3.2.0,<${NEXTVER}
|
|
|
|
PSEUDO_FLAVORS= no_ri_docs bootstrap
|
|
# Do not build the RI docs on slow arches
|
|
.if ${MACHINE_ARCH:Malpha} || ${MACHINE_ARCH:Marm} || ${MACHINE_ARCH:Mhppa}
|
|
FLAVOR?= no_ri_docs bootstrap
|
|
.else
|
|
FLAVOR?=
|
|
.endif
|
|
|
|
.if ${MACHINE_ARCH:Mamd64} || ${MACHINE_ARCH:Maarch64}
|
|
# Support YJIT JIT compiler on arches Ruby supports
|
|
MODULES += lang/rust
|
|
WANTLIB-main += c++abi
|
|
MAKE_ENV += LIBRUBY_DLDFLAGS="-lc++abi"
|
|
.endif
|
|
|
|
MULTI_PACKAGES = -main -ri_docs
|
|
.include <bsd.port.arch.mk>
|
|
|
|
.if ${BUILD_PACKAGES:M-ri_docs}
|
|
ALL_TARGET += rdoc
|
|
INSTALL_TARGET += install-doc
|
|
.endif
|
|
|
|
COMPILER = base-clang ports-gcc
|
|
|
|
# Fix path for JIT compiler to not use shims in ports obj bin dir
|
|
CONFIGURE_ENV += ac_cv_path_MJIT_CC=`which ${CC}`
|
|
|
|
GEM_EXTENSIONS_DIR = lib/ruby/gems/${REV}/extensions/${MACHINE_ARCH:S/i386/x86/:S/amd64/x86_64/}-openbsd
|
|
SUBST_VARS += GEM_EXTENSIONS_DIR
|
|
|
|
WANTLIB-main += curses readline
|
|
|
|
TEST_ENV = RUBYGEMS_SYSTEM_UPDATE_MESSAGE=enable
|
|
TEST_TARGET = check TESTOPTS="-v -q"
|
|
|
|
post-extract:
|
|
${POST_EXTRACT}
|
|
rm ${WRKSRC}/.bundle/gems/net-imap-0.3.9/net-imap.gemspec
|
|
|
|
pre-configure:
|
|
${FIX_RIPPER}
|
|
|
|
pre-install:
|
|
${PRE_INSTALL}
|
|
|
|
post-install:
|
|
rm -rf ${PREFIX}/lib/ruby/gems/${REV}/gems/{debug,rbs}-*/ext/
|
|
${FIX_RBCONFIG}
|
|
|
|
.include <bsd.port.mk>
|