commit:     30744c2709ef988a58b89c8988ca0bc2872c0f98
Author:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 10 15:06:03 2025 +0000
Commit:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
CommitDate: Tue Jun 10 15:06:03 2025 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=30744c27

gkbuilds: add json-c-0.18

Same as 0.17 but still separate from the unversioned one for now.

Bug: https://bugs.gentoo.org/957178
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>

 gkbuilds/json-c-0.18.gkbuild | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gkbuilds/json-c-0.18.gkbuild b/gkbuilds/json-c-0.18.gkbuild
new file mode 100644
index 00000000..9d898525
--- /dev/null
+++ b/gkbuilds/json-c-0.18.gkbuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+#
+src_configure() {
+       mkdir ../${P}_build
+       cd ../${P}_build
+
+       gkexec "cmake \
+               -DCMAKE_INSTALL_PREFIX=/usr \
+               -DBUILD_APPS=OFF \
+               -DDISABLE_EXTRA_LIBS=ON \
+               -DDISABLE_WERROR=ON \
+               -DENABLE_RDRAND=no \
+               -DENABLE_THREADING=no \
+               -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+               -DCMAKE_INSTALL_LIBDIR=lib \
+               ../${P}"
+}
+
+src_compile() {
+       cd ../${P}_build
+       gkmake
+}
+
+src_install() {
+       cd ../${P}_build
+       gkmake DESTDIR="${D}" install
+}

Reply via email to