diff options
| author | Shokara Kou <kou@13f0.net> | 2024-03-03 15:44:35 -0500 |
|---|---|---|
| committer | Shokara Kou <kou@13f0.net> | 2024-03-03 15:44:35 -0500 |
| commit | 922ff388a6e889a881324b8c4539c0be8c8b9769 (patch) | |
| tree | d78dd0d3f1f7115f289a30f9c4a14f89e3b404a4 /lang/ruby/3.2/Makefile | |
| parent | 05eab0a7a1b89b975ead468d39b280806c2915ed (diff) | |
import lang/ruby/3.2
Diffstat (limited to 'lang/ruby/3.2/Makefile')
| -rw-r--r-- | lang/ruby/3.2/Makefile | 55 |
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 @@ | |||
| 1 | VERSION = 3.2.3 | ||
| 2 | DISTNAME = ruby-${VERSION} | ||
| 3 | SHARED_LIBS = ruby32 0.0 | ||
| 4 | NEXTVER = 3.3 | ||
| 5 | PKGSPEC-main ?= ruby->=3.2.0,<${NEXTVER} | ||
| 6 | |||
| 7 | PSEUDO_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} | ||
| 10 | FLAVOR?= no_ri_docs bootstrap | ||
| 11 | .else | ||
| 12 | FLAVOR?= | ||
| 13 | .endif | ||
| 14 | |||
| 15 | .if ${MACHINE_ARCH:Mamd64} || ${MACHINE_ARCH:Maarch64} | ||
| 16 | # Support YJIT JIT compiler on arches Ruby supports | ||
| 17 | MODULES += lang/rust | ||
| 18 | WANTLIB-main += c++abi | ||
| 19 | MAKE_ENV += LIBRUBY_DLDFLAGS="-lc++abi" | ||
| 20 | .endif | ||
| 21 | |||
| 22 | MULTI_PACKAGES = -main -ri_docs | ||
| 23 | .include <bsd.port.arch.mk> | ||
| 24 | |||
| 25 | .if ${BUILD_PACKAGES:M-ri_docs} | ||
| 26 | ALL_TARGET += rdoc | ||
| 27 | INSTALL_TARGET += install-doc | ||
| 28 | .endif | ||
| 29 | |||
| 30 | COMPILER = base-clang ports-gcc | ||
| 31 | |||
| 32 | # Fix path for JIT compiler to not use shims in ports obj bin dir | ||
| 33 | CONFIGURE_ENV += ac_cv_path_MJIT_CC=`which ${CC}` | ||
| 34 | |||
| 35 | GEM_EXTENSIONS_DIR = lib/ruby/gems/${REV}/extensions/${MACHINE_ARCH:S/i386/x86/:S/amd64/x86_64/}-openbsd | ||
| 36 | SUBST_VARS += GEM_EXTENSIONS_DIR | ||
| 37 | |||
| 38 | WANTLIB-main += curses readline | ||
| 39 | |||
| 40 | TEST_ENV = RUBYGEMS_SYSTEM_UPDATE_MESSAGE=enable | ||
| 41 | TEST_TARGET = check TESTOPTS="-v -q" | ||
| 42 | |||
| 43 | post-extract: | ||
| 44 | ${POST_EXTRACT} | ||
| 45 | |||
| 46 | pre-configure: | ||
| 47 | ${FIX_RIPPER} | ||
| 48 | |||
| 49 | pre-install: | ||
| 50 | ${PRE_INSTALL} | ||
| 51 | |||
| 52 | post-install: | ||
| 53 | ${FIX_RBCONFIG} | ||
| 54 | |||
| 55 | .include <bsd.port.mk> | ||
