Subject: [bug#54827] [PATCH 1/1] gnu: Add emacs-cpreproc.

From: Fredrik Salomonsson <[email-masked]>
Date: Sat, 9 Apr 2022 20:42:10 +0000

* gnu/packages/emacs-xyz.scm (emacs-cpreproc): New variable.
---
 gnu/packages/emacs-xyz.scm | 26 +++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 005f34e569..761dc64144 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -74,7 +74,7 @@
 ;;; Copyright © 2020, 2021, 2022 Vinicius Monego <[email-masked]>
 ;;; Copyright © 2020 Ryan Desfosses <[email-masked]>
 ;;; Copyright © 2020 Marcin Karpezo <[email-masked]>
-;;; Copyright © 2020 Fredrik Salomonsson <[email-masked]>
+;;; Copyright © 2020, 2022 Fredrik Salomonsson <[email-masked]>
 ;;; Copyright © 2020 Eric Bavier <[email-masked]>
 ;;; Copyright © 2020, 2021 Morgan Smith <[email-masked]>
 ;;; Copyright © 2020 Peng Mei Yu <[email-masked]>
@@ -22095,6 +22095,30 @@ (define-public emacs-ccls
 and @code{C++} files through the @code{ccls} language server.")
       (license license:expat))))
 
+(define-public emacs-cpreproc
+  (package
+   (name "emacs-cpreproc")
+   (version "1.0.0")
+   (source
+    (origin
+     (method git-fetch)
+     (uri (git-reference
+           (url "https://git.sr.ht/~plattfot/cpreproc")
+           (commit version)))
+     (sha256
+      (base32
+       "0n4lhj9bbnkbzvifrj9q6z3j7z6jqzkaa36y239cfxdcc7i86c1c"))
+     (file-name (git-file-name name version))))
+   (build-system emacs-build-system)
+   (home-page "https://sr.ht/~plattfot/cpreproc")
+   (synopsis "Wrap @code{C}/@code{C++} code in preprocessor macros.")
+   (description
+    "Aim for this project is to make it easier to generate preprocessor
+macros from Emacs for @code{C}/@code{C++} code that needs to be build
+against multiple incompatible versions of third party libraries or
+@code{C++} standards.")
+   (license license:gpl3+)))
+
 (define-public emacs-org-brain
   (package
     (name "emacs-org-brain")
-- 
2.34.0