unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#70161] [PATCH 0/2] gnu: tomlc99: Update to 1.0-1.5221b3d.
@ 2024-04-03 11:19 Jean-Pierre De Jesus DIAZ
  2024-04-03 11:21 ` [bug#70161] [PATCH 1/2] " Jean-Pierre De Jesus DIAZ
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jean-Pierre De Jesus DIAZ @ 2024-04-03 11:19 UTC (permalink / raw)
  To: 70161; +Cc: Jean-Pierre De Jesus DIAZ

This updates the tomlc99 library to 1.0-1.5221b3d.

I've reviewed the last 2 commits since the last packaged version and it
seems only to fix the toml_json binary which are not installed and to
format the files with clang-format.

It install the pkg-config files too.

Jean-Pierre De Jesus DIAZ (2):
  gnu: tomlc99: Update to 1.0-1.5221b3d.
  gnu: tomlc99: Install pkg-config file.

 gnu/packages/c.scm | 41 +++++++++++++++++++++++++++--------------
 1 file changed, 27 insertions(+), 14 deletions(-)


base-commit: 1dbe492b993a7629df3b35146ce0272b52913776
-- 
2.41.0





^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#70161] [PATCH 1/2] gnu: tomlc99: Update to 1.0-1.5221b3d.
  2024-04-03 11:19 [bug#70161] [PATCH 0/2] gnu: tomlc99: Update to 1.0-1.5221b3d Jean-Pierre De Jesus DIAZ
@ 2024-04-03 11:21 ` Jean-Pierre De Jesus DIAZ
  2024-04-03 11:21 ` [bug#70161] [PATCH 2/2] gnu: tomlc99: Install pkg-config file Jean-Pierre De Jesus DIAZ
  2024-04-30 20:04 ` bug#70161: [PATCH 0/2] gnu: tomlc99: Update to 1.0-1.5221b3d Christopher Baines
  2 siblings, 0 replies; 4+ messages in thread
From: Jean-Pierre De Jesus DIAZ @ 2024-04-03 11:21 UTC (permalink / raw)
  To: 70161; +Cc: Jean-Pierre De Jesus DIAZ

* gnu/packages/c.scm (tomlc99): Update to 1.0-1.5221b3d.

Change-Id: Icb9c736fb7d49a097fe6db6451031637b7a01492
---
 gnu/packages/c.scm | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm
index c004aade73..6e98c34af6 100644
--- a/gnu/packages/c.scm
+++ b/gnu/packages/c.scm
@@ -19,7 +19,7 @@
 ;;; Copyright © 2022 ( <paren@disroot.org>
 ;;; Copyright © 2022 Antero Mejr <antero@mailbox.org>
 ;;; Copyright © 2023 zamfofex <zamfofex@twdb.moe>
-;;; Copyright © 2023 Foundation Devices, Inc. <hello@foundationdevices.com>
+;;; Copyright © 2023, 2024 Foundation Devices, Inc. <hello@foundation.xyz>
 ;;; Copyright © 2023, 2024 David Elsing <david.elsing@posteo.net>
 ;;;
 ;;; This file is part of GNU Guix.
@@ -245,8 +245,8 @@ (define-public tcc
       (license license:lgpl2.1+))))
 
 (define-public tomlc99
-  (let ((revision "0")
-        (commit "52e9c039c5418a100605c2db1282590511fa891b"))
+  (let ((revision "1")
+        (commit "5221b3d3d66c25a1dc6f0372b4f824f1202fe398"))
     (package
       (name "tomlc99")
       (version (git-version "1.0" revision commit))
@@ -258,7 +258,7 @@ (define-public tomlc99
                 (file-name (git-file-name name version))
                 (sha256
                  (base32
-                  "1zrn5mmd1ysxma96jzrq50xqypbs3rhk6dwlj1wcjpjz1a4h9wgg"))))
+                  "1r443cpwy7f1f8imyfykpggkihrvv9fvdlgl95liiqmzqz9snqnd"))))
       (build-system gnu-build-system)
       (arguments
        (list #:make-flags #~(list (string-append "CC="
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#70161] [PATCH 2/2] gnu: tomlc99: Install pkg-config file.
  2024-04-03 11:19 [bug#70161] [PATCH 0/2] gnu: tomlc99: Update to 1.0-1.5221b3d Jean-Pierre De Jesus DIAZ
  2024-04-03 11:21 ` [bug#70161] [PATCH 1/2] " Jean-Pierre De Jesus DIAZ
@ 2024-04-03 11:21 ` Jean-Pierre De Jesus DIAZ
  2024-04-30 20:04 ` bug#70161: [PATCH 0/2] gnu: tomlc99: Update to 1.0-1.5221b3d Christopher Baines
  2 siblings, 0 replies; 4+ messages in thread
From: Jean-Pierre De Jesus DIAZ @ 2024-04-03 11:21 UTC (permalink / raw)
  To: 70161; +Cc: Jean-Pierre De Jesus DIAZ

* gnu/packages/c.scm (tomlc99) <arguments>: Add phase to install
pkg-config file.

Change-Id: Id09f22912fe7e4dcac6a0377e4a78d3d34346106
---
 gnu/packages/c.scm | 33 +++++++++++++++++++++++----------
 1 file changed, 23 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm
index 6e98c34af6..1b168d2ca8 100644
--- a/gnu/packages/c.scm
+++ b/gnu/packages/c.scm
@@ -265,16 +265,29 @@ (define-public tomlc99
                                                  #$(cc-for-target))
                                   (string-append "prefix="
                                                  #$output))
-             #:phases #~(modify-phases %standard-phases
-                          (delete 'configure)
-                          (replace 'check
-                            (lambda* (#:key tests? make-flags
-                                      #:allow-other-keys)
-                              (when tests?
-                                (apply invoke
-                                       `("make" "-C" "unittest"
-                                         ,@make-flags))
-                                (invoke "./unittest/t1")))))))
+             #:phases
+             #~(modify-phases %standard-phases
+                 (delete 'configure)
+                 (replace 'check
+                   (lambda* (#:key tests? make-flags
+                             #:allow-other-keys)
+                     (when tests?
+                       (apply invoke
+                              `("make" "-C" "unittest"
+                                ,@make-flags))
+                       (invoke "./unittest/t1"))))
+                 ;; The Makefile checks for libtoml.pc and only installs if
+                 ;; the prefix is /usr/local.
+                 (add-after 'install 'install-pkg-config
+                   (lambda _
+                     (rename-file "libtoml.pc.sample" "libtoml.pc")
+                     (substitute* "libtoml.pc"
+                       (("^prefix=.*")
+                        (string-append "prefix=" #$output "\n")))
+
+                     (let ((pc (string-append #$output "/lib/pkgconfig")))
+                       (mkdir-p pc)
+                       (install-file "libtoml.pc" pc)))))))
       (home-page "https://github.com/cktan/tomlc99")
       (synopsis "TOML library for C")
       (description
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#70161: [PATCH 0/2] gnu: tomlc99: Update to 1.0-1.5221b3d.
  2024-04-03 11:19 [bug#70161] [PATCH 0/2] gnu: tomlc99: Update to 1.0-1.5221b3d Jean-Pierre De Jesus DIAZ
  2024-04-03 11:21 ` [bug#70161] [PATCH 1/2] " Jean-Pierre De Jesus DIAZ
  2024-04-03 11:21 ` [bug#70161] [PATCH 2/2] gnu: tomlc99: Install pkg-config file Jean-Pierre De Jesus DIAZ
@ 2024-04-30 20:04 ` Christopher Baines
  2 siblings, 0 replies; 4+ messages in thread
From: Christopher Baines @ 2024-04-30 20:04 UTC (permalink / raw)
  To: Jean-Pierre De Jesus DIAZ; +Cc: 70161-done

[-- Attachment #1: Type: text/plain, Size: 687 bytes --]

Jean-Pierre De Jesus DIAZ <jean@foundation.xyz> writes:

> This updates the tomlc99 library to 1.0-1.5221b3d.
>
> I've reviewed the last 2 commits since the last packaged version and it
> seems only to fix the toml_json binary which are not installed and to
> format the files with clang-format.
>
> It install the pkg-config files too.
>
> Jean-Pierre De Jesus DIAZ (2):
>   gnu: tomlc99: Update to 1.0-1.5221b3d.
>   gnu: tomlc99: Install pkg-config file.
>
>  gnu/packages/c.scm | 41 +++++++++++++++++++++++++++--------------
>  1 file changed, 27 insertions(+), 14 deletions(-)

Thanks for the patches, I've pushed these to master as
91647ba87b065dd054f3b38a4aea2de33f2e12a7.

Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-04-30 20:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-03 11:19 [bug#70161] [PATCH 0/2] gnu: tomlc99: Update to 1.0-1.5221b3d Jean-Pierre De Jesus DIAZ
2024-04-03 11:21 ` [bug#70161] [PATCH 1/2] " Jean-Pierre De Jesus DIAZ
2024-04-03 11:21 ` [bug#70161] [PATCH 2/2] gnu: tomlc99: Install pkg-config file Jean-Pierre De Jesus DIAZ
2024-04-30 20:04 ` bug#70161: [PATCH 0/2] gnu: tomlc99: Update to 1.0-1.5221b3d Christopher Baines

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).