Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Apr 2018 09:52:23 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r466329 - head/www/rubygem-sinatra-contrib1
Message-ID:  <201804030952.w339qNiZ096411@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Tue Apr  3 09:52:22 2018
New Revision: 466329
URL: https://svnweb.freebsd.org/changeset/ports/466329

Log:
  Remove unnecessary rubygem-backports
  
  - Bump PORTREVISION for dependency and package change
  
  PR:		226786
  Submitted by:	sunpoet (myself)
  Approved by:	maintainer (timeout, 14 days)

Modified:
  head/www/rubygem-sinatra-contrib1/Makefile

Modified: head/www/rubygem-sinatra-contrib1/Makefile
==============================================================================
--- head/www/rubygem-sinatra-contrib1/Makefile	Tue Apr  3 09:52:17 2018	(r466328)
+++ head/www/rubygem-sinatra-contrib1/Makefile	Tue Apr  3 09:52:22 2018	(r466329)
@@ -2,7 +2,7 @@
 
 PORTNAME=	sinatra-contrib
 PORTVERSION=	1.4.7
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	www rubygems
 MASTER_SITES=	RG
 PKGNAMESUFFIX=	1
@@ -13,8 +13,7 @@ COMMENT=	Collection of useful Sinatra extensions
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-RUN_DEPENDS=	rubygem-backports>=2.0:devel/rubygem-backports \
-		rubygem-multi_json>=0:devel/rubygem-multi_json \
+RUN_DEPENDS=	rubygem-multi_json>=0:devel/rubygem-multi_json \
 		rubygem-rack-protection>=0:www/rubygem-rack-protection \
 		rubygem-rack-test>=0:www/rubygem-rack-test \
 		rubygem-sinatra1>=1.4:www/rubygem-sinatra1 \
@@ -23,8 +22,14 @@ RUN_DEPENDS=	rubygem-backports>=2.0:devel/rubygem-back
 PORTSCOUT=	limit:^1\.
 
 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 ${WRKSRC}/spec/streaming_spec.rb
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804030952.w339qNiZ096411>