48 lines
1.3 KiB
Makefile
48 lines
1.3 KiB
Makefile
# $OpenBSD: Makefile,v 1.9 2012/10/13 10:50:14 jeremy Exp $
|
|
|
|
COMMENT = ruby-unicorn for sleepy apps and slow clients
|
|
|
|
DISTNAME = rainbows-4.4.1
|
|
CATEGORIES = www
|
|
|
|
HOMEPAGE = http://rainbows.rubyforge.org/
|
|
|
|
MAINTAINER = Jeremy Evans <jeremy@openbsd.org>
|
|
|
|
# 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 <bsd.port.mk>
|