# $FreeBSD: head/www/rubygem-sinatra-contrib/Makefile 465384 2018-03-23 16:46:05Z sunpoet $

PORTNAME=	sinatra-contrib
PORTVERSION=	2.0.1
CATEGORIES=	www rubygems
MASTER_SITES=	RG

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Collection of useful Sinatra extensions

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

RUN_DEPENDS=	rubygem-multi_json>=0:devel/rubygem-multi_json \
		rubygem-mustermann>=1.0:devel/rubygem-mustermann \
		rubygem-rack-protection>=${PORTVERSION}:www/rubygem-rack-protection \
		rubygem-sinatra>=${PORTVERSION}:www/rubygem-sinatra \
		rubygem-tilt>=1.3:devel/rubygem-tilt

NO_ARCH=	yes
REINPLACE_ARGS=	-i ''
USE_RUBY=	yes
USES=		gem

post-patch:
# Remove backports
	@${REINPLACE_CMD} -e '/backports/d' ${WRKSRC}/${GEMSPEC}
	@${REINPLACE_CMD} -e '/require "backports"/d' ${WRKSRC}/lib/sinatra/*.rb ${WRKSRC}/lib/sinatra/contrib/setup.rb

.include <bsd.port.mk>
