diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2018-03-24 00:46:05 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2018-03-24 00:46:05 +0800 |
commit | 4a6d5abcd55ae4fd61eabf6e3c36566872f08cc5 (patch) | |
tree | 488b21471f506bc681ac47e179998f4bb1f91e8c /www | |
parent | 5aa53fbea688fdd9d502370f00f9ace3173e4c7e (diff) | |
download | freebsd-ports-gnome-4a6d5abcd55ae4fd61eabf6e3c36566872f08cc5.tar.gz freebsd-ports-gnome-4a6d5abcd55ae4fd61eabf6e3c36566872f08cc5.tar.zst freebsd-ports-gnome-4a6d5abcd55ae4fd61eabf6e3c36566872f08cc5.zip |
Update to 2.0.1
- Fix RUN_DEPENDS:
- Remove unnecessary rubygem-backports
- Add missing rubygem-mustermann
- Remove rubygem-rack-test
- Fix version requirement
- Take maintainership
Changes: https://github.com/sinatra/sinatra/blob/master/CHANGELOG.md
https://github.com/sinatra/sinatra/commits/master
PR: 226784
Submitted by: sunpoet (myself)
Approved by: feld (maintainer)
Diffstat (limited to 'www')
-rw-r--r-- | www/rubygem-sinatra-contrib/Makefile | 23 | ||||
-rw-r--r-- | www/rubygem-sinatra-contrib/distinfo | 6 | ||||
-rw-r--r-- | www/rubygem-sinatra-contrib/files/patch-gemspec | 16 |
3 files changed, 16 insertions, 29 deletions
diff --git a/www/rubygem-sinatra-contrib/Makefile b/www/rubygem-sinatra-contrib/Makefile index cc198e293dab..738de3a8ac3d 100644 --- a/www/rubygem-sinatra-contrib/Makefile +++ b/www/rubygem-sinatra-contrib/Makefile @@ -1,27 +1,30 @@ # $FreeBSD$ PORTNAME= sinatra-contrib -PORTVERSION= 2.0.0 -PORTREVISION= 1 +PORTVERSION= 2.0.1 CATEGORIES= www rubygems MASTER_SITES= RG -MAINTAINER= feld@FreeBSD.org +MAINTAINER= sunpoet@FreeBSD.org 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 \ - rubygem-rack-protection>=0:www/rubygem-rack-protection \ - rubygem-rack-test>=0:www/rubygem-rack-test \ - rubygem-sinatra>=2.0:www/rubygem-sinatra \ - rubygem-tilt>=2.0:devel/rubygem-tilt +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> diff --git a/www/rubygem-sinatra-contrib/distinfo b/www/rubygem-sinatra-contrib/distinfo index b9ff55533819..9de6bbd9d47a 100644 --- a/www/rubygem-sinatra-contrib/distinfo +++ b/www/rubygem-sinatra-contrib/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1513260490 -SHA256 (rubygem/sinatra-contrib-2.0.0.gem) = ae3738592081f3dd2407aa71acee4819e9d615c29b47162c30637526665ac5f6 -SIZE (rubygem/sinatra-contrib-2.0.0.gem) = 31744 +TIMESTAMP = 1518889868 +SHA256 (rubygem/sinatra-contrib-2.0.1.gem) = 4880cc28bca78fcb667491b1d008e46cc74ae2662acccd7e31655492795d6633 +SIZE (rubygem/sinatra-contrib-2.0.1.gem) = 33792 diff --git a/www/rubygem-sinatra-contrib/files/patch-gemspec b/www/rubygem-sinatra-contrib/files/patch-gemspec deleted file mode 100644 index 30ddbe112179..000000000000 --- a/www/rubygem-sinatra-contrib/files/patch-gemspec +++ /dev/null @@ -1,16 +0,0 @@ ---- sinatra-contrib.gemspec.orig 2018-02-17 17:36:05 UTC -+++ sinatra-contrib.gemspec -@@ -22,11 +22,11 @@ Gem::Specification.new do |s| - s.specification_version = 4 - - if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then -- s.add_runtime_dependency(%q<sinatra>.freeze, ["= 2.0.0"]) -+ s.add_runtime_dependency(%q<sinatra>.freeze, [">= 2.0.0"]) - s.add_runtime_dependency(%q<mustermann>.freeze, ["~> 1.0"]) - s.add_runtime_dependency(%q<backports>.freeze, [">= 2.0"]) - s.add_runtime_dependency(%q<tilt>.freeze, ["< 3", ">= 1.3"]) -- s.add_runtime_dependency(%q<rack-protection>.freeze, ["= 2.0.0"]) -+ s.add_runtime_dependency(%q<rack-protection>.freeze, [">= 2.0.0"]) - s.add_runtime_dependency(%q<multi_json>.freeze, [">= 0"]) - s.add_development_dependency(%q<rspec>.freeze, ["~> 3.4"]) - s.add_development_dependency(%q<haml>.freeze, [">= 0"]) |