# $OpenBSD: Makefile,v 1.31 2011/12/13 17:50:23 jeremy Exp $

COMMENT =	eases web-request routing, handling, and response

VERSION =	3.1.3
DISTNAME =	actionpack-${VERSION}
CATEGORIES =	devel

# MIT License
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-activesupport,${MODRUBY_FLAVOR}=${VERSION} \
		devel/ruby-activemodel,${MODRUBY_FLAVOR}=${VERSION} \
		devel/ruby-i18n,${MODRUBY_FLAVOR}>=0.6,<1.0 \
		devel/ruby-sprockets,${MODRUBY_FLAVOR}>=2.0.3,<2.1 \
		www/ruby-rack,${MODRUBY_FLAVOR}>=1.3.5,<1.4 \
		www/ruby-rack-cache,${MODRUBY_FLAVOR}>=1.1,<2.0 \
		www/ruby-rack-mount,${MODRUBY_FLAVOR}>=0.8.2,<0.9 \
		www/ruby-rack-test,${MODRUBY_FLAVOR}>=0.6.1,<0.7 \
		textproc/ruby-builder,${MODRUBY_FLAVOR}>=3.0.0,<3.1 \
		textproc/ruby-erubis,${MODRUBY_FLAVOR}>=2.7.0,<2.8

CONFIGURE_STYLE =	ruby gem

post-extract:
	@find ${WRKSRC} -name '*~' | xargs -r rm -f

REGRESS_DEPENDS =	devel/ruby-mocha,${MODRUBY_FLAVOR}>=0.9.7 \
			databases/ruby-activerecord,${MODRUBY_FLAVOR}
MODRUBY_REGRESS =	rake

.include <bsd.port.mk>
