openbsd-ports/devel/ruby-fastthread/Makefile
jeremy c3579f1baf Bump revisions for ruby gem/extconf ports after the switch to ruby 1.9
by default, since the ruby 1.8 version now has a ruby18 explicit FLAVOR.
2012-09-23 16:57:32 +00:00

37 lines
720 B
Makefile

# $OpenBSD: Makefile,v 1.14 2012/09/23 16:57:33 jeremy Exp $
COMMENT= optimized replacement for Ruby thread.rb primitives
DISTNAME= fastthread-1.0.7
REVISION= 6
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} || 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>