git: e05e837dbb76 - main - graphics/librsvg2: the port had been updated to version 2.40.23
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 30 Jul 2026 20:27:15 UTC
The branch main has been updated by danfe:
URL: https://cgit.FreeBSD.org/ports/commit/?id=e05e837dbb76347fca23bbc9b1b8315142167256
commit e05e837dbb76347fca23bbc9b1b8315142167256
Author: Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2026-07-30 20:25:02 +0000
Commit: Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2026-07-30 20:25:02 +0000
graphics/librsvg2: the port had been updated to version 2.40.23
- Switch to USE_GITLAB/GL_* because it is tagged-only release
- Drop needless GNU_CONFIGURE_MANPREFIX and `localbase' from
the USES list
- Rewrite regex in `post-patch' target so it produces identical
result, but is shorter and more correct (escape the dot)
- Drop the DOCS option which does nothing after HTML files and
images no longer come with the distfile and USES+=gnomeprefix
forces the --disable-gtk-doc anyway (however, dependency on
textproc/gtk-doc is required for GTK_DOC_CHECK macro in the
configure.ac, so keep it but adjust accordingly)
PR: 295743
Reviewed by: arrowd
---
graphics/librsvg2/Makefile | 30 +++++++++++++---------------
graphics/librsvg2/distinfo | 6 +++---
graphics/librsvg2/files/patch-rsvg-private.h | 10 ----------
graphics/librsvg2/pkg-plist | 22 +-------------------
4 files changed, 18 insertions(+), 50 deletions(-)
diff --git a/graphics/librsvg2/Makefile b/graphics/librsvg2/Makefile
index 9bc0e9c458be..aa7848a6b6fe 100644
--- a/graphics/librsvg2/Makefile
+++ b/graphics/librsvg2/Makefile
@@ -1,8 +1,6 @@
PORTNAME= librsvg
-PORTVERSION= 2.40.21
-PORTREVISION= 6
+PORTVERSION= 2.40.23
CATEGORIES= graphics gnome
-MASTER_SITES= GNOME
PKGNAMESUFFIX= 2
DIST_SUBDIR= gnome
@@ -13,26 +11,26 @@ WWW= https://live.gnome.org/LibRsvg
LICENSE= GPLv2 LGPL20
LICENSE_COMB= multi
+BUILD_DEPENDS= ${LOCALBASE}/share/gtk-doc/data/gtk-doc.make:textproc/gtk-doc
LIB_DEPENDS= libfreetype.so:print/freetype2 \
libfontconfig.so:x11-fonts/fontconfig \
libpng.so:graphics/png \
libcroco-0.6.so:textproc/libcroco
-USES= cpe gmake gnome libtool localbase pathfix pkgconfig tar:xz
-
+USES= autoreconf cpe gmake gnome libtool pathfix pkgconfig
+USE_GITLAB= yes
+GL_SITE= https://gitlab.gnome.org
+GL_ACCOUNT= GNOME
+GL_TAGNAME= ${PORTNAME}-gtk-${PORTVERSION}
USE_GNOME= cairo gnomeprefix gdkpixbuf introspection:build \
libxml2 pango
CPE_VENDOR= gnome
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
-GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
INSTALL_TARGET= install-strip
TEST_TARGET= check
CONFIGURE_ARGS= --disable-Bsymbolic
-DOCSDIR?= ${PREFIX}/share/doc
-GNOME_HTML_DIR= ${DOCSDIR}
-
PLIST_SUB+= PORTVERSION=${PORTVERSION}
CONFLICTS_INSTALL= librsvg2-rust
@@ -40,19 +38,19 @@ CONFLICTS_INSTALL= librsvg2-rust
# FreeBSD archs. So limit pure C version 2.40.x.
PORTSCOUT= limit:^2\.40\.
-OPTIONS_DEFINE= DOCS VAPI
-OPTIONS_DEFAULT= DOCS VAPI
+OPTIONS_DEFINE= VAPI
+OPTIONS_DEFAULT= VAPI
OPTIONS_SUB= yes
-DOCS_BUILD_DEPENDS= gtkdocize:textproc/gtk-doc
-DOCS_CONFIGURE_ENABLE= gtk-doc gtk-doc-html
-
VAPI_USES= vala:build
VAPI_CONFIGURE_ON= --enable-vala=yes
VAPI_CONFIGURE_OFF= --enable-vala=no
post-patch:
- @${REINPLACE_CMD} -e 's|GTK3_REQUIRED=3.[0-9][0-9].[0-9]|GTK3_REQUIRED=9.90.0|g' \
- ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e '/^GTK3_REQUIRED/s|=3\.[0-9]|=9.9|' \
+ ${WRKSRC}/configure.ac
+
+pre-test:
+ @${LN} -sf librsvg/rsvg.h ${WRKSRC}
.include <bsd.port.mk>
diff --git a/graphics/librsvg2/distinfo b/graphics/librsvg2/distinfo
index 6022f5fd9fcf..749d6a2c34cf 100644
--- a/graphics/librsvg2/distinfo
+++ b/graphics/librsvg2/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1750895954
-SHA256 (gnome/librsvg-2.40.21.tar.xz) = f7628905f1cada84e87e2b14883ed57d8094dca3281d5bcb24ece4279e9a92ba
-SIZE (gnome/librsvg-2.40.21.tar.xz) = 1655860
+TIMESTAMP = 1750149309
+SHA256 (gnome/librsvg-librsvg-gtk-2.40.23.tar.bz2) = db23386969df6c0d8fcaa840c17d963c94b49580081c6fdab23b24051a3421cf
+SIZE (gnome/librsvg-librsvg-gtk-2.40.23.tar.bz2) = 2020765
diff --git a/graphics/librsvg2/files/patch-rsvg-private.h b/graphics/librsvg2/files/patch-rsvg-private.h
deleted file mode 100644
index 9088e892fe56..000000000000
--- a/graphics/librsvg2/files/patch-rsvg-private.h
+++ /dev/null
@@ -1,10 +0,0 @@
---- rsvg-private.h.orig 2020-02-26 17:40:25 UTC
-+++ rsvg-private.h
-@@ -32,6 +32,7 @@
- #include "rsvg.h"
-
- #include <libxml/SAX.h>
-+#include <libxml/tree.h>
- #include <libxml/xmlmemory.h>
- #include <pango/pango.h>
- #include <glib.h>
diff --git a/graphics/librsvg2/pkg-plist b/graphics/librsvg2/pkg-plist
index afa92132c83d..ae25b73a4831 100644
--- a/graphics/librsvg2/pkg-plist
+++ b/graphics/librsvg2/pkg-plist
@@ -11,27 +11,7 @@ lib/librsvg-2.so
lib/librsvg-2.so.2
lib/librsvg-2.so.%%PORTVERSION%%
libdata/pkgconfig/librsvg-2.0.pc
-share/man/man1/rsvg-convert.1.gz
-%%PORTDOCS%%%%DOCSDIR%%/rsvg-2.0/RsvgHandle.html
-%%PORTDOCS%%%%DOCSDIR%%/rsvg-2.0/annotation-glossary.html
-%%PORTDOCS%%%%DOCSDIR%%/rsvg-2.0/api-index-full.html
-%%PORTDOCS%%%%DOCSDIR%%/rsvg-2.0/home.png
-%%PORTDOCS%%%%DOCSDIR%%/rsvg-2.0/index.html
-%%PORTDOCS%%%%DOCSDIR%%/rsvg-2.0/left-insensitive.png
-%%PORTDOCS%%%%DOCSDIR%%/rsvg-2.0/left.png
-%%PORTDOCS%%%%DOCSDIR%%/rsvg-2.0/licence.html
-%%PORTDOCS%%%%DOCSDIR%%/rsvg-2.0/object-tree.html
-%%PORTDOCS%%%%DOCSDIR%%/rsvg-2.0/right-insensitive.png
-%%PORTDOCS%%%%DOCSDIR%%/rsvg-2.0/right.png
-%%PORTDOCS%%%%DOCSDIR%%/rsvg-2.0/rsvg-2.0.devhelp2
-%%PORTDOCS%%%%DOCSDIR%%/rsvg-2.0/rsvg-Using-RSVG-with-GIO.html
-%%PORTDOCS%%%%DOCSDIR%%/rsvg-2.0/rsvg-Using-RSVG-with-GdkPixbuf.html
-%%PORTDOCS%%%%DOCSDIR%%/rsvg-2.0/rsvg-Using-RSVG-with-cairo.html
-%%PORTDOCS%%%%DOCSDIR%%/rsvg-2.0/rsvg-Version-check-and-feature-tests.html
-%%PORTDOCS%%%%DOCSDIR%%/rsvg-2.0/rsvg.html
-%%PORTDOCS%%%%DOCSDIR%%/rsvg-2.0/style.css
-%%PORTDOCS%%%%DOCSDIR%%/rsvg-2.0/up-insensitive.png
-%%PORTDOCS%%%%DOCSDIR%%/rsvg-2.0/up.png
share/gir-1.0/Rsvg-2.0.gir
+share/man/man1/rsvg-convert.1.gz
share/thumbnailers/librsvg.thumbnailer
%%VAPI%%share/vala/vapi/librsvg-2.0.vapi