# $OpenBSD: Makefile,v 1.7 2011/11/18 00:07:19 jeremy Exp $ COMMENT = ruby-unicorn for sleepy apps and slow clients DISTNAME = rainbows-4.3.1 CATEGORIES = www HOMEPAGE = http://rainbows.rubyforge.org/ MAINTAINER = Jeremy Evans # Ruby/GPLv2 PERMIT_PACKAGE_CDROM = Yes PERMIT_PACKAGE_FTP = Yes PERMIT_DISTFILES_CDROM = Yes PERMIT_DISTFILES_FTP = Yes MODULES = lang/ruby BUILD_DEPENDS = ${RUN_DEPENDS} RUN_DEPENDS = devel/ruby-kgio,${MODRUBY_FLAVOR}>=2.5,<3.0 \ www/ruby-unicorn,${MODRUBY_FLAVOR}>=4.1,<5.0 \ www/ruby-rack,${MODRUBY_FLAVOR}>=1.1.0,<2.0 CONFIGURE_STYLE = ruby gem ext post-install: cd ${WRKINST}/${LOCALBASE}/${GEM_LIB}/gems/${DISTNAME}/man/man1 && \ mv rainbows.1 ${WRKINST}/${LOCALBASE}/man/man1/rainbows${GEM_MAN_SUFFIX}.1 rm -r ${WRKINST}/${LOCALBASE}/${GEM_LIB}/gems/${DISTNAME}/man # Regress fails for various different reasons, # many of which are due to nonportable test code REGRESS_DEPENDS = devel/gmake \ devel/ruby-isolate,${MODRUBY_FLAVOR}>=3.0.0 \ net/socat \ net/curl # Limit to a single test file/model (which still fails), until the test suite # is fixed. do-regress: cd ${WRKSRC}/t && RUBYLIB=$$(dirname `${GEM} which rack`) RUBYOPT=-rubygems \ RUBY=${RUBY} MRI=${RUBY} MAKE="gmake -ek" gmake -ek \ ThreadSpawn.t0000-simple-http.sh .include