[blfs] 02/09: Added yyjson.

git Owner ([email protected] via blfs-book Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.beyond.book
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch trunk
in repository blfs.

commit 71a14165e34ba912abda1d746a2e877b79fadfeb
Author: zeckma-tech <[email protected]>
AuthorDate: Mon Jun 22 13:09:16 2026 -0600

    Added yyjson.
    
    Needed for Wayfire.
---
 general/genlib/genlib.xml          |   1 +
 general/genlib/yyjson.xml          | 156 +++++++++++++++++++++++++++++++++++++
 introduction/welcome/changelog.xml |   3 +
 packages.ent                       |   1 +
 4 files changed, 161 insertions(+)

diff --git a/general/genlib/genlib.xml b/general/genlib/genlib.xml
index 461e04f3a3..2cce08eacd 100644
--- a/general/genlib/genlib.xml
+++ b/general/genlib/genlib.xml
@@ -183,5 +183,6 @@
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="wayland-protocols.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="wv.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="xapian.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="yyjson.xml"/>
 
 </chapter>
diff --git a/general/genlib/yyjson.xml b/general/genlib/yyjson.xml
new file mode 100644
index 0000000000..9a1979a193
--- /dev/null
+++ b/general/genlib/yyjson.xml
@@ -0,0 +1,156 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+   "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../../general.ent">
+  %general-entities;
+
+  <!ENTITY yyjson-download-http
+    "https://github.com/ibireme/yyjson/archive/&yyjson-version;/yyjson-&yyjson-version;.tar.gz">
+  <!ENTITY yyjson-md5sum        "a0a4fe2ae717277125fdebc60630ddf1">
+  <!ENTITY yyjson-size          "1.6 MB">
+  <!ENTITY yyjson-buildsize     "22 MB (with tests)">
+  <!ENTITY yyjson-time          "0.4 SBU (with tests)">
+]>
+
+<sect1 id="yyjson" xreflabel="yyjson-&yyjson-version;">
+  <?dbhtml filename="yyjson.html"?>
+
+  <title>yyjson-&yyjson-version;</title>
+
+  <indexterm zone="yyjson">
+    <primary sortas="a-yyjson">yyjson</primary>
+  </indexterm>
+
+  <sect2 role="package">
+    <title>Introduction to yyjson</title>
+
+    <para>
+      The yyjson package contains a high performance JSON library written in C.
+    </para>
+
+    &lfs130_checked;
+
+    <bridgehead renderas="sect3">Package Information</bridgehead>
+    <itemizedlist spacing="compact">
+      <listitem>
+        <para>
+          Download (HTTP): <ulink url="&yyjson-download-http;"/>
+        </para>
+      </listitem>
+      <listitem>
+        <para>
+          Download MD5 sum: &yyjson-md5sum;
+        </para>
+      </listitem>
+      <listitem>
+        <para>
+          Download size: &yyjson-size;
+        </para>
+      </listitem>
+      <listitem>
+        <para>
+          Estimated disk space required: &yyjson-buildsize;
+        </para>
+      </listitem>
+      <listitem>
+        <para>
+          Estimated build time: &yyjson-time;
+        </para>
+      </listitem>
+    </itemizedlist>
+
+    <bridgehead renderas="sect3">yyjson Dependencies</bridgehead>
+
+    <bridgehead renderas="sect4">Required</bridgehead>
+    <para role="required">
+      <xref linkend="cmake"/>
+    </para>
+
+    <bridgehead renderas="sect4">Optional</bridgehead>
+    <para role="optional">
+      <xref linkend="doxygen"/>
+    </para>
+  </sect2>
+
+  <sect2 role="installation">
+    <title>Installation of yyjson</title>
+
+    <para>
+      Install yyjson by running the following
+      commands:
+    </para>
+
+<screen><userinput>mkdir build &amp;&amp;
+cd    build &amp;&amp;
+
+cmake -D CMAKE_INSTALL_PREFIX=/usr \
+      -D CMAKE_BUILD_TYPE=Release  \
+      -D BUILD_SHARED_LIBS=ON      \
+      -D YYJSON_BUILD_TESTS=ON     \
+      -G Ninja .. &amp;&amp;
+ninja</userinput></screen>
+
+    <para>
+      To run the test suite, issue <command>ninja test</command>.
+    </para>
+
+    <para>
+      Now, as the &root; user:
+    </para>
+
+<screen role="root"><userinput>ninja install</userinput></screen>
+
+  </sect2>
+
+  <sect2 role="commands">
+    <title>Command Explanations</title>
+
+    <para>
+      <parameter>-D YYJSON_BUILD_TESTS=ON</parameter>: This parameter enables
+      building the test suite. You may remove it if you don't want to run it.
+    </para>
+
+  </sect2>
+
+  <sect2 role="content">
+    <title>Contents</title>
+
+    <segmentedlist>
+      <segtitle>Installed Programs</segtitle>
+      <segtitle>Installed Libraries</segtitle>
+      <segtitle>Installed Directories</segtitle>
+
+      <seglistitem>
+        <seg>
+          None
+        </seg>
+        <seg>
+          libyyjson.so
+        </seg>
+        <seg>
+          /usr/include/yyjson and
+          /usr/lib/cmake/yyjson
+        </seg>
+      </seglistitem>
+    </segmentedlist>
+
+    <variablelist>
+      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
+      <?dbfo list-presentation="list"?>
+      <?dbhtml list-presentation="table"?>
+
+      <varlistentry id="libyyjson">
+        <term><filename class="libraryfile">libyyjson.so</filename></term>
+        <listitem>
+          <para>
+            contains functions that provide a high performance JSON
+            implementation in C
+          </para>
+          <indexterm zone="yyjson libyyjson">
+            <primary sortas="c-libyyjson">libyyjson.so</primary>
+          </indexterm>
+        </listitem>
+      </varlistentry>
+    </variablelist>
+  </sect2>
+</sect1>
diff --git a/introduction/welcome/changelog.xml b/introduction/welcome/changelog.xml
index 248f354d93..7eb849ce21 100644
--- a/introduction/welcome/changelog.xml
+++ b/introduction/welcome/changelog.xml
@@ -42,6 +42,9 @@
     <listitem>
       <para>June 22nd, 2026</para>
       <itemizedlist>
+        <listitem>
+          <para>[zeckma] - Added yyjson.</para>
+        </listitem>
         <listitem>
           <para>[zeckma] - Added nlohmann-json.</para>
         </listitem>
diff --git a/packages.ent b/packages.ent
index c7691d3842..723436c663 100644
--- a/packages.ent
+++ b/packages.ent
@@ -224,6 +224,7 @@
 <!ENTITY wpebackend-fdo-version       "1.14.2">
 <!ENTITY wv-version                   "1.2.9">
 <!ENTITY xapian-version               "2.0.0">
+<!ENTITY yyjson-version               "0.12.0">
 
 <!-- Chapter 10 -->
 <!ENTITY aalib-version                "1.4rc5">

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

-- 
http://lists.linuxfromscratch.org/sympa/info/blfs-book
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.