Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Oct 2022 17:12:31 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: c6ae15317631 - main - www/rubygem-sinatra2: Add rubygem-sinatra2 2.2.2 (copied from rubygem-sinatra)
Message-ID:  <202210031712.293HCVRp011619@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c6ae15317631fec3a2f6f3ea929a27db091f495b

commit c6ae15317631fec3a2f6f3ea929a27db091f495b
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-10-03 16:56:44 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-10-03 17:10:14 +0000

    www/rubygem-sinatra2: Add rubygem-sinatra2 2.2.2 (copied from rubygem-sinatra)
    
    - Change RUN_DEPENDS from rubygem-rack-protection to rubygem-rack-protection2
    - Add PORTSCOUT
---
 www/Makefile                             |  1 +
 www/rubygem-sinatra2/Makefile            | 28 ++++++++++++++++++++++++++++
 www/rubygem-sinatra2/distinfo            |  3 +++
 www/rubygem-sinatra2/files/patch-gemspec | 11 +++++++++++
 www/rubygem-sinatra2/pkg-descr           |  4 ++++
 www/rubygem-sinatra2/pkg-message         | 14 ++++++++++++++
 6 files changed, 61 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 63d8794f892d..c89f35733c6e 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -2137,6 +2137,7 @@
     SUBDIR += rubygem-sinatra-r18n
     SUBDIR += rubygem-sinatra-respond_to
     SUBDIR += rubygem-sinatra1
+    SUBDIR += rubygem-sinatra2
     SUBDIR += rubygem-sitemap_generator
     SUBDIR += rubygem-smashing
     SUBDIR += rubygem-socksify
diff --git a/www/rubygem-sinatra2/Makefile b/www/rubygem-sinatra2/Makefile
new file mode 100644
index 000000000000..d97c85cd0156
--- /dev/null
+++ b/www/rubygem-sinatra2/Makefile
@@ -0,0 +1,28 @@
+PORTNAME=	sinatra
+PORTVERSION=	2.2.2
+CATEGORIES=	www rubygems
+MASTER_SITES=	RG
+PKGNAMESUFFIX=	2
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Classy web development framework in ruby
+WWW=		http://www.sinatrarb.com/
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	rubygem-mustermann>=2.0:devel/rubygem-mustermann \
+		rubygem-rack>=2.2,3<3,3:www/rubygem-rack \
+		rubygem-rack-protection2>=${PORTVERSION}<${PORTVERSION}_99:www/rubygem-rack-protection2 \
+		rubygem-tilt>=2.0<3:devel/rubygem-tilt
+
+USES=		cpe gem
+USE_RUBY=	yes
+
+NO_ARCH=	yes
+
+CPE_VENDOR=	sinatrarb
+
+PORTSCOUT=	limit:^2\.
+
+.include <bsd.port.mk>
diff --git a/www/rubygem-sinatra2/distinfo b/www/rubygem-sinatra2/distinfo
new file mode 100644
index 000000000000..ccff7dad8982
--- /dev/null
+++ b/www/rubygem-sinatra2/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1659161337
+SHA256 (rubygem/sinatra-2.2.2.gem) = 7f335aa51fbe8e70452606e1c1c42b65bee3f58fa865154d3ab80cdfcab97255
+SIZE (rubygem/sinatra-2.2.2.gem) = 383488
diff --git a/www/rubygem-sinatra2/files/patch-gemspec b/www/rubygem-sinatra2/files/patch-gemspec
new file mode 100644
index 000000000000..7fc6531b17a1
--- /dev/null
+++ b/www/rubygem-sinatra2/files/patch-gemspec
@@ -0,0 +1,11 @@
+--- sinatra.gemspec.orig	2022-09-11 06:39:09 UTC
++++ sinatra.gemspec
+@@ -29,7 +29,7 @@ Gem::Specification.new do |s|
+     s.add_runtime_dependency(%q<rack>.freeze, ["~> 2.2"])
+     s.add_runtime_dependency(%q<tilt>.freeze, ["~> 2.0"])
+     s.add_runtime_dependency(%q<rack-protection>.freeze, ["= 2.2.2"])
+-    s.add_runtime_dependency(%q<mustermann>.freeze, ["~> 2.0"])
++    s.add_runtime_dependency(%q<mustermann>.freeze, [">= 2.0"])
+   else
+     s.add_dependency(%q<rack>.freeze, ["~> 2.2"])
+     s.add_dependency(%q<tilt>.freeze, ["~> 2.0"])
diff --git a/www/rubygem-sinatra2/pkg-descr b/www/rubygem-sinatra2/pkg-descr
new file mode 100644
index 000000000000..8fae27543e0a
--- /dev/null
+++ b/www/rubygem-sinatra2/pkg-descr
@@ -0,0 +1,4 @@
+Sinatra is a DSL for quickly creating web-applications in Ruby
+with minimal effort.  It sits on top of Rack, a minimal standard
+interface for Ruby web frameworks.  For templating, the choices
+include erb, haml, sass and Builder.
diff --git a/www/rubygem-sinatra2/pkg-message b/www/rubygem-sinatra2/pkg-message
new file mode 100644
index 000000000000..12315e90d3e8
--- /dev/null
+++ b/www/rubygem-sinatra2/pkg-message
@@ -0,0 +1,14 @@
+[
+{ type: install
+  message: <<EOM
+        Sinatra optionally integrates with haml/sass or Builder
+        for templating and mongrel or thin as an HTTP server.
+        To use them, install the respective ports separately:
+
+                www/rubygem-haml
+                devel/rubygem-builder
+                www/rubygem-mongrel
+                www/rubygem-thin
+EOM
+}
+]



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