openbsd-ports/lang/mruby/Makefile
2018-12-20 18:41:45 +00:00

43 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.11 2018/12/20 18:41:45 jeremy Exp $
COMMENT = lightweight, embeddable implementation of ruby
VERSION = 2.0.0
DISTNAME = mruby-${VERSION}
REVISION = 0
CATEGORIES = lang
HOMEPAGE = https://github.com/mruby/mruby
# MIT
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += c curses m readline
MASTER_SITES = https://github.com/mruby/mruby/archive/
DISTFILES = ${DISTNAME}-${VERSION}.tar.gz{${VERSION}.tar.gz}
MODULES = lang/ruby
BUILD_DEPENDS = devel/bison \
lang/ruby/${MODRUBY_REV}
MAKE_ENV = CC="${CC}" \
LD="${CC}"
NO_CONFIGURE = Yes
SUBST_VARS = RUBY
do-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${RUBY} ./minirake --verbose
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/* ${PREFIX}/bin/
${INSTALL_DATA_DIR} ${PREFIX}/{lib,include,share/doc}/mruby/
cp -R ${WRKSRC}/mrb{lib,gems} ${PREFIX}/lib/mruby/
cp -R ${WRKSRC}/include/* ${PREFIX}/include
${INSTALL_DATA} ${WRKSRC}/doc/guides/* ${PREFIX}/share/doc/mruby/
do-test:
cd ${WRKSRC} && RUBY=${RUBY} ${RUBY} ./minirake test
.include <bsd.port.mk>