30 lines
636 B
Makefile
30 lines
636 B
Makefile
# $OpenBSD: Makefile,v 1.18 2017/11/20 20:57:17 jeremy Exp $
|
|
|
|
COMMENT = Ruby-based DSL for text parsing and interpretation
|
|
|
|
DISTNAME = treetop-1.6.5
|
|
REVISION = 0
|
|
CATEGORIES = textproc
|
|
|
|
HOMEPAGE = https://github.com/cjheath/treetop
|
|
|
|
# MIT
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
MODULES = lang/ruby
|
|
|
|
BUILD_DEPENDS = ${RUN_DEPENDS}
|
|
RUN_DEPENDS = devel/ruby-polyglot,${MODRUBY_FLAVOR}>=0.3.1
|
|
|
|
CONFIGURE_STYLE = ruby gem
|
|
|
|
MODRUBY_TEST = rspec3
|
|
TEST_DEPENDS = devel/ruby-rr,${MODRUBY_FLAVOR}
|
|
|
|
SUBST_VARS += RUBY
|
|
|
|
pre-configure:
|
|
sed -i 's,\(system("ruby\),\1${MODRUBY_BINREV},g' ${WRKSRC}/spec/compiler/tt_compiler_spec.rb
|
|
|
|
.include <bsd.port.mk>
|