32 lines
863 B
Makefile
32 lines
863 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= sinatra-contrib
|
|
PORTVERSION= 2.0.4
|
|
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-activesupport5>=4.0.0:devel/rubygem-activesupport5 \
|
|
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
|
|
|
|
USES= gem
|
|
USE_RUBY= yes
|
|
|
|
NO_ARCH= yes
|
|
REINPLACE_ARGS= -i ''
|
|
|
|
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>
|