mirror of
https://github.com/openbsd/ports.git
synced 2026-06-18 07:24:23 +02:00
7397c5463c
The 2.6 release doesn't build with llvm/22, so this broke with the change of the default MODCLANG_VERSION from 19 to 22. It builds fine with 21, so use that. I'll send out an update to 2.8.2 at some point.
54 lines
1.1 KiB
Makefile
54 lines
1.1 KiB
Makefile
COMMENT = ruby wrapper for comrak rust crate
|
|
|
|
DISTNAME = commonmarker-2.6.0
|
|
CATEGORIES = textproc
|
|
HOMEPAGE = https://github.com/gjtorikian/commonmarker
|
|
|
|
REVISION = 0
|
|
|
|
# MIT License
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
MODULES = devel/cargo \
|
|
lang/clang \
|
|
lang/ruby
|
|
|
|
WANTLIB += ${MODCARGO_WANTLIB} onig
|
|
|
|
BUILD_DEPENDS = devel/ruby-rb_sys,${MODRUBY_FLAVOR}>=0.9
|
|
LIB_DEPENDS = textproc/oniguruma
|
|
RUN_DEPENDS = devel/ruby-rb_sys,${MODRUBY_FLAVOR}>=0.9
|
|
|
|
CONFIGURE_STYLE = ruby gem ext cargo
|
|
|
|
# When updating:
|
|
# make clean extract
|
|
# make modcargo-gen-crates > crates.inc
|
|
# make makesum
|
|
# make clean configure
|
|
# make modcargo-gen-crates-licenses > crates.licenses.inc
|
|
# mv crates.licenses.inc crates.inc
|
|
|
|
MODCARGO_VENDOR_DIR = ${WRKDIR}/modcargo-crates
|
|
MODCARGO_BUILD = No
|
|
MODCARGO_INSTALL = No
|
|
|
|
MODCLANG_VERSION = 21
|
|
|
|
USE_GMAKE = Yes
|
|
CONFIGURE_ENV = MAKE=gmake
|
|
MAKE_ENV = MAKE=gmake \
|
|
RUBY=${RUBY} \
|
|
HOME=${WRKSRC} \
|
|
LIBCLANG_PATH=${PREFIX}/llvm${MODCLANG_VERSION}/lib \
|
|
RB_SYS_EXTRA_CARGO_ARGS=--verbose \
|
|
RB_SYS_VERBOSE=true \
|
|
CARGO_TERM_VERBOSE=true \
|
|
RUST_BACKTRACE=1 \
|
|
V=1 \
|
|
${MODCARGO_ENV}
|
|
|
|
.include "crates.inc"
|
|
|
|
.include <bsd.port.mk>
|