Skip to Content.
Sympa Menu

sm-commit - [[SM-Commit] ] GIT changes to master grimoire by Ismael Luceno (19dd61d60963b22789211a841a7074e35f1e8929)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Ismael Luceno <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org, sm-commit AT lists.sourcemage.org
  • Subject: [[SM-Commit] ] GIT changes to master grimoire by Ismael Luceno (19dd61d60963b22789211a841a7074e35f1e8929)
  • Date: Fri, 20 Dec 2024 22:38:23 +0000

GIT changes to master grimoire by Ismael Luceno <ismael AT sourcemage.org>:

ChangeLog
| 7 ++
graphics-libs/libsvgtiny-pixbuf/DEPENDS
| 1
graphics-libs/libsvgtiny-pixbuf/DETAILS
| 17 ++++++
graphics-libs/libsvgtiny-pixbuf/FINAL
| 3 +
graphics-libs/libsvgtiny-pixbuf/HISTORY
| 2
graphics-libs/libsvgtiny/BUILD
| 6 ++
graphics-libs/libsvgtiny/DEPENDS
| 3 +
graphics-libs/libsvgtiny/DETAILS
| 23 ++++++++
graphics-libs/libsvgtiny/HISTORY
| 2
graphics-libs/libsvgtiny/INSTALL
| 1
graphics-libs/libsvgtiny/PRE_BUILD
| 3 +

graphics-libs/libsvgtiny/patches/0001-Squash-Wcalloc-transposed-args-gcc-14-.patch
| 28 ++++++++++
12 files changed, 96 insertions(+)

New commits:
commit 19dd61d60963b22789211a841a7074e35f1e8929
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

libsvgtiny-pixbuf: new spell, SVG pixbuf loader based on libsvgtiny

commit 8f0e226496e08fe5a4a66aa0767dd86c8f8e3d2a
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

libsvgtiny: new spell, an implementation of SVG Tiny

diff --git a/ChangeLog b/ChangeLog
index b7b56d3..a1895f4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * graphics-libs/libsvgtiny-pixbuf: new spell, SVG pixbuf loader
+ based on libsvgtiny
+
+2024-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * graphics-libs/libsvgtiny: new spell, an implementation of SVG Tiny
+
2024-12-14 Pavel Vinogradov <public AT sourcemage.org>
* graphics-libs/libjxl: new spell, JPEG XL reference library
* wm-addons/hyprgraphics: new spell, Hyprland graphics / resource
utilities
diff --git a/graphics-libs/libsvgtiny-pixbuf/DEPENDS
b/graphics-libs/libsvgtiny-pixbuf/DEPENDS
new file mode 100755
index 0000000..4a59e7d
--- /dev/null
+++ b/graphics-libs/libsvgtiny-pixbuf/DEPENDS
@@ -0,0 +1 @@
+depends libsvgtiny
diff --git a/graphics-libs/libsvgtiny-pixbuf/DETAILS
b/graphics-libs/libsvgtiny-pixbuf/DETAILS
new file mode 100755
index 0000000..085b22a
--- /dev/null
+++ b/graphics-libs/libsvgtiny-pixbuf/DETAILS
@@ -0,0 +1,17 @@
+ SPELL=libsvgtiny-pixbuf
+ VERSION=0.0.2
+ SOURCE="$SPELL-$VERSION.tar.xz"
+ SOURCE_URL[0]=https://michael.orlitzky.com/code/releases/$SOURCE
+
SOURCE_HASH=sha512:bf657fd341cab1f9b7ff81f9d517096176e6b82d14c2d6be12e0b6a8420e787bd8c9d7324ecccad8c0a01c839b9de0ecf6f998996571dcba8e9b6c22c28bbe56
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$VERSION"
+ WEB_SITE="https://michael.orlitzky.com/code/libsvgtiny-pixbuf.xhtml";
+ LICENSE[0]="AGPL-3.0-or-later"
+ ENTERED=20241220
+ KEYWORDS=""
+ SHORT="SVG pixbuf loader based on libsvgtiny"
+cat << EOF
+A library that allows GTK to load SVG files without using librsvg. The
+main reason you would want to do that is because librsvg is a security
+nightmare. Nowadays librsvg is also less portable and more onerous to build
+than when it was written in C.
+EOF
diff --git a/graphics-libs/libsvgtiny-pixbuf/FINAL
b/graphics-libs/libsvgtiny-pixbuf/FINAL
new file mode 100755
index 0000000..4296a4e
--- /dev/null
+++ b/graphics-libs/libsvgtiny-pixbuf/FINAL
@@ -0,0 +1,3 @@
+install -v -d "$INSTALL_ROOT"/etc/gtk-{2,3}.0/ &&
+gdk-pixbuf-query-loaders |
+tee "$INSTALL_ROOT"/etc/gtk-{2,3}.0/gdk-pixbuf.loaders >/dev/null
diff --git a/graphics-libs/libsvgtiny-pixbuf/HISTORY
b/graphics-libs/libsvgtiny-pixbuf/HISTORY
new file mode 100644
index 0000000..e485337
--- /dev/null
+++ b/graphics-libs/libsvgtiny-pixbuf/HISTORY
@@ -0,0 +1,2 @@
+2024-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * DEPENDS, DETAILS, FINAL: spell created
diff --git a/graphics-libs/libsvgtiny/BUILD b/graphics-libs/libsvgtiny/BUILD
new file mode 100755
index 0000000..a1ffa01
--- /dev/null
+++ b/graphics-libs/libsvgtiny/BUILD
@@ -0,0 +1,6 @@
+# FIXME: for some reaon CCACHE_DIR isn't being exported, maybe run_compiler
+# or the variable are being overriden by netsurf's buildsystem.
+export CCACHE_DIR
+OPTS+=" COMPONENT_TYPE=lib-shared"
+OPTS+=" PREFIX=$INSTALL_ROOT/usr"
+make $OPTS
diff --git a/graphics-libs/libsvgtiny/DEPENDS
b/graphics-libs/libsvgtiny/DEPENDS
new file mode 100755
index 0000000..1be2a98
--- /dev/null
+++ b/graphics-libs/libsvgtiny/DEPENDS
@@ -0,0 +1,3 @@
+depends libdom &&
+depends libwapcaplet &&
+depends netsurf-buildsystem
diff --git a/graphics-libs/libsvgtiny/DETAILS
b/graphics-libs/libsvgtiny/DETAILS
new file mode 100755
index 0000000..cbec61f
--- /dev/null
+++ b/graphics-libs/libsvgtiny/DETAILS
@@ -0,0 +1,23 @@
+# Watch: https://source.netsurf-browser.org/libsvgtiny.git/
release/([0-9.]+)\.tar
+ SPELL=libsvgtiny
+ VERSION=0.1.8
+ SOURCE="$SPELL-release-$VERSION.tar.bz2"
+
SOURCE_URL[0]=https://source.netsurf-browser.org/$SPELL.git/snapshot/$SPELL-release/$VERSION.tar.bz2
+
SOURCE_HASH=sha512:a33bbaadfca8f4887107d335b0215368c86646514991769db02369ca626c54edff452f472df279a63506eedd888a68a08f74635f58ef96a175a25e288cf6ce3b
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-release/$VERSION"
+ WEB_SITE="https://www.netsurf-browser.org/projects/libsvgtiny/";
+ LICENSE[0]="MIT"
+ ENTERED=20241220
+ KEYWORDS=""
+ SHORT="an implementation of SVG Tiny"
+cat << EOF
+Libsvgtiny is a library for parsing SVG files for display.
+
+The overall idea of the library is to take some SVG as input, and return a
+list of paths and texts which can be rendered easily. The library does not
+do the actual rendering.
+
+All supported SVG objects, for example circles, lines, and gradient filled
+shapes, are converted to flat-filled paths or a fragment of text, and all
+coordinates are converted, transformed etc. to pixels.
+EOF
diff --git a/graphics-libs/libsvgtiny/HISTORY
b/graphics-libs/libsvgtiny/HISTORY
new file mode 100644
index 0000000..1d48e44
--- /dev/null
+++ b/graphics-libs/libsvgtiny/HISTORY
@@ -0,0 +1,2 @@
+2024-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD, DEPENDS, DETAILS, INSTALL, PRE_BUILD: spell created
diff --git a/graphics-libs/libsvgtiny/INSTALL
b/graphics-libs/libsvgtiny/INSTALL
new file mode 100755
index 0000000..8b8f583
--- /dev/null
+++ b/graphics-libs/libsvgtiny/INSTALL
@@ -0,0 +1 @@
+make $OPTS install
diff --git a/graphics-libs/libsvgtiny/PRE_BUILD
b/graphics-libs/libsvgtiny/PRE_BUILD
new file mode 100755
index 0000000..c230ad1
--- /dev/null
+++ b/graphics-libs/libsvgtiny/PRE_BUILD
@@ -0,0 +1,3 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+apply_patch_dir patches
diff --git
a/graphics-libs/libsvgtiny/patches/0001-Squash-Wcalloc-transposed-args-gcc-14-.patch

b/graphics-libs/libsvgtiny/patches/0001-Squash-Wcalloc-transposed-args-gcc-14-.patch
new file mode 100644
index 0000000..9748dca
--- /dev/null
+++
b/graphics-libs/libsvgtiny/patches/0001-Squash-Wcalloc-transposed-args-gcc-14-.patch
@@ -0,0 +1,28 @@
+From 9d14633496ae504557c95d124b97a71147635f04 Mon Sep 17 00:00:00 2001
+From: Michael Drake <tlsa AT netsurf-browser.org>
+Date: Fri, 24 May 2024 21:30:56 +0100
+Subject: Squash -Wcalloc-transposed-args (gcc-14)
+
+Origin: Upstream
+Upstream-Status: Backport
+Signed-off-by: Ismael Luceno <ismael AT sourcemage.org>
+---
+ src/svgtiny.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/svgtiny.c b/src/svgtiny.c
+index ee0c59c..6859fbd 100644
+--- a/src/svgtiny.c
++++ b/src/svgtiny.c
+@@ -586,7 +586,7 @@ struct svgtiny_diagram *svgtiny_create(void)
+ {
+ struct svgtiny_diagram *diagram;
+
+- diagram = calloc(sizeof(*diagram), 1);
++ diagram = calloc(1, sizeof(*diagram));
+ if (!diagram)
+ return 0;
+
+--
+cgit v1.2.3
+


  • [[SM-Commit] ] GIT changes to master grimoire by Ismael Luceno (19dd61d60963b22789211a841a7074e35f1e8929), Ismael Luceno, 12/20/2024

Archive powered by MHonArc 2.6.24.

Top of Page