openbsd-ports/devel/ruby-fastthread/Makefile
jeremy cc238f3f83 Allow packaging on ruby 1.9. This library is a no-op on ruby 1.9,
but is still a dependency of some packages that run on both ruby
1.8 and 1.9.
2011-12-13 18:10:55 +00:00

37 lines
703 B
Makefile

# $OpenBSD: Makefile,v 1.13 2011/12/13 18:10:55 jeremy Exp $
COMMENT= optimized replacement for Ruby thread.rb primitives
DISTNAME= fastthread-1.0.7
REVISION= 5
CATEGORIES= devel
# Ruby's license
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MODULES= lang/ruby
CONFIGURE_STYLE=ruby gem ext
REGRESS_DEPENDS=${FULLPKGNAME}:${BUILD_PKGPATH}
MODRUBY_REGRESS=ruby
MODRUBY_REGRESS_TARGET=-rubygems test/test_all.rb
FLAVOR?=
.if ${FLAVOR:Mruby19}
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>