aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Fechner <mfechner@FreeBSD.org>2026-05-14 05:11:57 +0000
committerMatthias Fechner <mfechner@FreeBSD.org>2026-05-14 06:35:07 +0000
commitea55b6c494865fd07f6a4f16367a424ccafefd3c (patch)
tree4844eaa5ec17fe1f3d70e421212513d8f5f3b328
parent6a1884685970bfc23e3556a680ab46fa69c17dad (diff)
devel/rubygem-rugged17: add new port
Required for gitlab 18.11.3. For more details have a look here: https://gitlab.com/gitlab-org/gitlab/-/work_items/598564 (cherry picked from commit fa4a006bcfa440af5a5492e86c71088103a944b8)
-rw-r--r--devel/Makefile1
-rw-r--r--devel/rubygem-rugged17/Makefile30
-rw-r--r--devel/rubygem-rugged17/distinfo3
-rw-r--r--devel/rubygem-rugged17/pkg-descr1
4 files changed, 35 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index a58c0fa00665..fe3471b032c7 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -8107,6 +8107,7 @@
SUBDIR += rubygem-rufo
SUBDIR += rubygem-rufus-scheduler
SUBDIR += rubygem-rugged
+ SUBDIR += rubygem-rugged17
SUBDIR += rubygem-runt
SUBDIR += rubygem-ruport
SUBDIR += rubygem-safe_yaml
diff --git a/devel/rubygem-rugged17/Makefile b/devel/rubygem-rugged17/Makefile
new file mode 100644
index 000000000000..a03b77bea524
--- /dev/null
+++ b/devel/rubygem-rugged17/Makefile
@@ -0,0 +1,30 @@
+# Also update devel/libgit2, devel/libgit2-glib, devel/py-pygit2
+
+PORTNAME= rugged
+PORTVERSION= 1.7.2
+CATEGORIES= devel rubygems
+MASTER_SITES= RG
+PKGNAMESUFFIX= 17
+
+MAINTAINER= mfechner@FreeBSD.org
+COMMENT= Ruby bindings to the libgit2 library
+WWW= https://github.com/libgit2/rugged
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+# switch to bundled libgit2 version as rugged does not support 1.8 version from ports (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282593)
+#BUILD_DEPENDS= libgit2>=${PORTVERSION:R}:devel/libgit2
+#LIB_DEPENDS= libgit2.so:devel/libgit2 \
+# libgmp.so:math/gmp
+#CONFIGURE_ARGS= --use-system-libraries
+#USES= gem pkgconfig
+LIB_DEPENDS= libssh2.so:security/libssh2
+
+CONFIGURE_ARGS= --with-ssh
+USES= cmake:indirect gem pkgconfig ssl
+
+post-install:
+ ${RM} -r ${STAGEDIR}${PREFIX}/${GEM_LIB_DIR}/vendor/libgit2/build
+
+.include <bsd.port.mk>
diff --git a/devel/rubygem-rugged17/distinfo b/devel/rubygem-rugged17/distinfo
new file mode 100644
index 000000000000..45861d759f0e
--- /dev/null
+++ b/devel/rubygem-rugged17/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1778734558
+SHA256 (rubygem/rugged-1.7.2.gem) = 9049b1f4c37f39d7b0e6fc5768815c5c5f470bf27d3fd725ab032258c2b38ce9
+SIZE (rubygem/rugged-1.7.2.gem) = 1835008
diff --git a/devel/rubygem-rugged17/pkg-descr b/devel/rubygem-rugged17/pkg-descr
new file mode 100644
index 000000000000..10359cc3c295
--- /dev/null
+++ b/devel/rubygem-rugged17/pkg-descr
@@ -0,0 +1 @@
+Rugged is a Ruby bindings to the libgit2 linkable C Git library.