summaryrefslogtreecommitdiff
path: root/lang/ruby/3.2/Makefile
diff options
context:
space:
mode:
authorShokara Kou <kou@13f0.net>2024-03-03 15:44:35 -0500
committerShokara Kou <kou@13f0.net>2024-03-03 15:44:35 -0500
commit922ff388a6e889a881324b8c4539c0be8c8b9769 (patch)
treed78dd0d3f1f7115f289a30f9c4a14f89e3b404a4 /lang/ruby/3.2/Makefile
parent05eab0a7a1b89b975ead468d39b280806c2915ed (diff)
import lang/ruby/3.2
Diffstat (limited to 'lang/ruby/3.2/Makefile')
-rw-r--r--lang/ruby/3.2/Makefile55
1 files changed, 55 insertions, 0 deletions
diff --git a/lang/ruby/3.2/Makefile b/lang/ruby/3.2/Makefile
new file mode 100644
index 0000000..c754056
--- /dev/null
+++ b/lang/ruby/3.2/Makefile
@@ -0,0 +1,55 @@
1VERSION = 3.2.3
2DISTNAME = ruby-${VERSION}
3SHARED_LIBS = ruby32 0.0
4NEXTVER = 3.3
5PKGSPEC-main ?= ruby->=3.2.0,<${NEXTVER}
6
7PSEUDO_FLAVORS= no_ri_docs bootstrap
8# Do not build the RI docs on slow arches
9.if ${MACHINE_ARCH:Malpha} || ${MACHINE_ARCH:Marm} || ${MACHINE_ARCH:Mhppa}
10FLAVOR?= no_ri_docs bootstrap
11.else
12FLAVOR?=
13.endif
14
15.if ${MACHINE_ARCH:Mamd64} || ${MACHINE_ARCH:Maarch64}
16# Support YJIT JIT compiler on arches Ruby supports
17MODULES += lang/rust
18WANTLIB-main += c++abi
19MAKE_ENV += LIBRUBY_DLDFLAGS="-lc++abi"
20.endif
21
22MULTI_PACKAGES = -main -ri_docs
23.include <bsd.port.arch.mk>
24
25.if ${BUILD_PACKAGES:M-ri_docs}
26ALL_TARGET += rdoc
27INSTALL_TARGET += install-doc
28.endif
29
30COMPILER = base-clang ports-gcc
31
32# Fix path for JIT compiler to not use shims in ports obj bin dir
33CONFIGURE_ENV += ac_cv_path_MJIT_CC=`which ${CC}`
34
35GEM_EXTENSIONS_DIR = lib/ruby/gems/${REV}/extensions/${MACHINE_ARCH:S/i386/x86/:S/amd64/x86_64/}-openbsd
36SUBST_VARS += GEM_EXTENSIONS_DIR
37
38WANTLIB-main += curses readline
39
40TEST_ENV = RUBYGEMS_SYSTEM_UPDATE_MESSAGE=enable
41TEST_TARGET = check TESTOPTS="-v -q"
42
43post-extract:
44 ${POST_EXTRACT}
45
46pre-configure:
47 ${FIX_RIPPER}
48
49pre-install:
50 ${PRE_INSTALL}
51
52post-install:
53 ${FIX_RBCONFIG}
54
55.include <bsd.port.mk>