aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Brodin <antoine@FreeBSD.org>2025-04-21 06:48:43 +0000
committerAntoine Brodin <antoine@FreeBSD.org>2025-04-21 06:48:43 +0000
commit78d57397cf31fc8d10da751d0ebf0a289e6e1f28 (patch)
tree42a3a6dc75a83799ba50ac65714a7a80a17b0d4d
parent6738c0773cbb806f9d028bbda69b47dad6a65a00 (diff)
www/rubygem-sinatra3: new port
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.
-rw-r--r--www/Makefile1
-rw-r--r--www/rubygem-sinatra3/Makefile28
-rw-r--r--www/rubygem-sinatra3/distinfo3
-rw-r--r--www/rubygem-sinatra3/pkg-descr4
-rw-r--r--www/rubygem-sinatra3/pkg-message14
5 files changed, 50 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index d752ee17a1b7..bf53162365ad 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -2376,6 +2376,7 @@
SUBDIR += rubygem-sinatra-respond_to
SUBDIR += rubygem-sinatra1
SUBDIR += rubygem-sinatra2
+ SUBDIR += rubygem-sinatra3
SUBDIR += rubygem-sitemap_generator
SUBDIR += rubygem-smashing
SUBDIR += rubygem-socksify
diff --git a/www/rubygem-sinatra3/Makefile b/www/rubygem-sinatra3/Makefile
new file mode 100644
index 000000000000..9400624883df
--- /dev/null
+++ b/www/rubygem-sinatra3/Makefile
@@ -0,0 +1,28 @@
+PORTNAME= sinatra
+PORTVERSION= 3.2.0
+CATEGORIES= www rubygems
+MASTER_SITES= RG
+PKGNAMESUFFIX= 3
+
+MAINTAINER= ruby@FreeBSD.org
+COMMENT= Classy web development framework in ruby
+WWW= https://sinatrarb.com/ \
+ https://github.com/sinatra/sinatra
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= rubygem-mustermann>=3.0<4:devel/rubygem-mustermann \
+ rubygem-rack22>=2.2,3<3,3:www/rubygem-rack22 \
+ rubygem-rack-protection3>=3.2<4:www/rubygem-rack-protection3 \
+ rubygem-tilt>=2.0<3:devel/rubygem-tilt
+
+USES= cpe gem
+
+NO_ARCH= yes
+
+CPE_VENDOR= sinatrarb
+
+PORTSCOUT= limit:^3\.
+
+.include <bsd.port.mk>
diff --git a/www/rubygem-sinatra3/distinfo b/www/rubygem-sinatra3/distinfo
new file mode 100644
index 000000000000..eef8a2c543b2
--- /dev/null
+++ b/www/rubygem-sinatra3/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1745004041
+SHA256 (rubygem/sinatra-3.2.0.gem) = 6e727f4d034e87067d9aab37f328021d7c16722ffd293ef07b6e968915109807
+SIZE (rubygem/sinatra-3.2.0.gem) = 134656
diff --git a/www/rubygem-sinatra3/pkg-descr b/www/rubygem-sinatra3/pkg-descr
new file mode 100644
index 000000000000..8fae27543e0a
--- /dev/null
+++ b/www/rubygem-sinatra3/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-sinatra3/pkg-message b/www/rubygem-sinatra3/pkg-message
new file mode 100644
index 000000000000..12315e90d3e8
--- /dev/null
+++ b/www/rubygem-sinatra3/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
+}
+]