openbsd-ports/devel/ruby-fastthread/Makefile
2013-03-11 10:50:00 +00:00

34 lines
632 B
Makefile

# $OpenBSD: Makefile,v 1.16 2013/03/11 10:50:29 espie Exp $
COMMENT= optimized replacement for Ruby thread.rb primitives
DISTNAME= fastthread-1.0.7
REVISION= 7
CATEGORIES= devel
# Ruby's license
PERMIT_PACKAGE_CDROM= Yes
MODULES= lang/ruby
CONFIGURE_STYLE=ruby gem ext
TEST_DEPENDS=${FULLPKGNAME}:${BUILD_PKGPATH}
MODRUBY_TEST=ruby
MODRUBY_TEST_TARGET=-rubygems test/test_all.rb
FLAVOR?=
.if ${FLAVOR:Mruby19} || empty(FLAVOR)
FASTTHREAD_EXT= .rb
.else
FASTTHREAD_EXT= .so
.endif
SUBST_VARS= FASTTHREAD_EXT
post-install:
touch ${GEM_ABS_PATH}/gems/fastthread-1.0.7/ext/fastthread/fastthread.{,s}o
.include <bsd.port.mk>