kn 7c1cbf5f19 Switch github.com/<commit>.diff URLs to .patch in PATCHFILES
The latter includes the original commit message which we then
get to see in "make patch" output.
2020-11-05 20:21:35 +00:00

54 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.7 2020/11/05 20:21:35 kn Exp $
VERSION = 2.7.2
DISTNAME = ruby-${VERSION}
SHARED_LIBS = ruby27 0.0
NEXTVER = 2.8
PKGSPEC-main ?= ruby->=2.7.0,<${NEXTVER}
REVISION-main = 0
MASTER_SITES0 = https://github.com/jeremyevans/ruby/commit/
PATCHFILES = ruby-2.7-copy-coro-fix{7008ca3838d33bd2d594251fc8c7f4ce52dde72d}.patch:0 \
ruby-2.7-ffi-closure-fix{040cfc89b9a110cd0fb2abdcd35e8215b4a71f60}.patch:0
PATCH_DIST_STRIP = -p1
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
MULTI_PACKAGES = -main -gdbm -ri_docs
.include <bsd.port.arch.mk>
.if ${BUILD_PACKAGES:M-ri_docs}
ALL_TARGET += rdoc
INSTALL_TARGET += install-doc
.endif
# Fix path for JIT compiler to not use shims in ports obj bin dir
CONFIGURE_ENV += ac_cv_path_MJIT_CC=`which ${CC}` \
rb_cv_function_name_string=__func__
WANTLIB-main += curses yaml-0
post-extract:
${POST_EXTRACT}
pre-configure:
${FIX_RIPPER}
pre-install:
${PRE_INSTALL}
post-install:
${FIX_RBCONFIG}
do-test:
cd ${WRKSRC} && make check
.include <bsd.port.mk>