[PATCH] gnu: Add 'maven-doxia-test-docs' and some Doxia modules

OpenSubmitted by Artyom V. Poptsov.
Details
One participant
  • Artyom V. Poptsov
Owner
unassigned
Severity
normal
A
A
Artyom V. Poptsov wrote on 26 Jun 08:55 +0200
(address . guix-patches@gnu.org)
87sfnr3od8.fsf@gmail.com
Hello,

this patchset adds 'maven-doxia-test-docs' and the following Doxia
modules:
- 'maven-doxia-module-apt'
- 'maven-doxia-module-xdoc'
- 'maven-doxia-module-xhtml'
- 'maven-doxia-module-xhtml5'
From 47508fa7b17bc6957e18f7c547c6ffc1339e551c Mon Sep 17 00:00:00 2001
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Sun, 26 Jun 2022 09:15:44 +0300
Subject: [PATCH 1/5] gnu: Add maven-doxia-test-docs.

* gnu/packages/maven.scm (maven-doxia-test-docs): New variable.
---
gnu/packages/maven.scm | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)

Toggle diff (37 lines)
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index f84f1ae177..f26a1acda4 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -3965,3 +3965,30 @@ techniques for generating static and dynamic content, supporting a variety of
 markup languages.
 
 This package contains Doxia core classes and interfaces.")))
+
+(define-public maven-doxia-test-docs
+  (package
+    (inherit maven-doxia-sink-api)
+    (name "maven-doxia-test-docs")
+    (arguments
+     `(#:jar-name "doxia-test-docs.jar"
+       #:tests? #f ; no tests.
+       #:source-dir "doxia-test-docs/src/main/"
+       #:phases (modify-phases %standard-phases
+                  (add-before 'build 'copy-resources
+                    (lambda _
+                      (mkdir-p "build/classes")
+                      (copy-recursively "doxia-test-docs/src/main/resources"
+                                        "build/classes")
+                      #t))
+                  (replace 'install
+                    (install-from-pom "doxia-test-docs/pom.xml")))))
+    (propagated-inputs (list maven-doxia-parent-pom))
+    (synopsis "Several test documents to check syntax structures under Doxia")
+    (description
+     "Doxia is a content generation framework that provides powerful
+techniques for generating static and dynamic content, supporting a variety of
+markup languages.
+
+This package contains several test documents to check syntax structures under
+Doxia.")))
-- 
2.25.1
From e20493b649abe268adf6755c82cc9c5d33f1deb4 Mon Sep 17 00:00:00 2001
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Sun, 26 Jun 2022 04:08:35 +0300
Subject: [PATCH 2/5] gnu: Add maven-doxia-module-apt.

* gnu/packages/maven.scm (maven-doxia-module-apt): New variable.
(maven-doxia-modules-parent-pom): New private variable.
---
gnu/packages/maven.scm | 47 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)

Toggle diff (57 lines)
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index f26a1acda4..ac5b6bc3bc 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -3992,3 +3992,50 @@ markup languages.
 
 This package contains several test documents to check syntax structures under
 Doxia.")))
+
+(define maven-doxia-modules-parent-pom
+  (package
+    (inherit maven-doxia-sink-api)
+    (name "maven-doxia-modules-parent-pom")
+    (arguments
+     `(#:tests? #f
+       #:phases (modify-phases %standard-phases
+                  (delete 'configure)
+                  (delete 'build)
+                  (replace 'install
+                    (install-pom-file "doxia-modules/pom.xml")))))
+    (propagated-inputs
+     (list maven-doxia-parent-pom
+           maven-doxia-sink-api
+           maven-doxia-core))
+    (synopsis "Content generation framework")
+    (description "@samp{Doxia} is a content generation framework that provides
+powerful techniques for generating static and dynamic content, supporting a
+variety of markup languages.
+
+This package contains the parent POM of all Doxia modules.")))
+
+(define-public maven-doxia-module-apt
+  (package
+    (inherit maven-doxia-sink-api)
+    (name "maven-doxia-module-apt")
+    (arguments
+     `(#:jar-name "doxia-module-apt.jar"
+       #:source-dir "doxia-modules/doxia-module-apt/src/main/java"
+       #:test-dir "doxia-modules/doxia-module-apt/src/test/java"
+       #:tests? #f ;tests require JUnit5
+       #:phases (modify-phases %standard-phases
+                  (replace 'install
+                    (install-from-pom "doxia-modules/doxia-module-apt/pom.xml")))))
+    (native-inputs (list maven-doxia-test-docs
+                         java-junit
+                         java-guice
+                         java-xmlunit
+                         java-xmlunit-matchers
+                         java-slf4j-simple))
+    (propagated-inputs (list maven-doxia-modules-parent-pom java-slf4j-api
+                             java-javax-inject java-plexus-utils))
+    (synopsis "Doxia module for APT source documents")
+    (description "A Doxia module for Almost Plain Text source documents.  APT
+format is supported both as source and target formats.")))
+
-- 
2.25.1
From e4e292e99ff5ee9d2ba8a53f429d2b1e14d37658 Mon Sep 17 00:00:00 2001
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Sun, 26 Jun 2022 09:44:40 +0300
Subject: [PATCH 3/5] gnu: Add maven-doxia-module-xdoc.

* gnu/packages/maven.scm (maven-doxia-module-xdoc): New variable.
---
gnu/packages/maven.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)

Toggle diff (34 lines)
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index ac5b6bc3bc..520652812a 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -4039,3 +4039,27 @@ This package contains the parent POM of all Doxia modules.")))
     (description "A Doxia module for Almost Plain Text source documents.  APT
 format is supported both as source and target formats.")))
 
+(define-public maven-doxia-module-xdoc
+  (package
+    (inherit maven-doxia-sink-api)
+    (name "maven-doxia-module-xdoc")
+    (arguments
+     `(#:jar-name "doxia-module-xdoc.jar"
+       #:source-dir "doxia-modules/doxia-module-xdoc/src/main/java"
+       #:test-dir "doxia-modules/doxia-module-xdoc/src/test/java"
+       #:tests? #f ;tests require JUnit5
+       #:phases (modify-phases %standard-phases
+                  (replace 'install
+                    (install-from-pom "doxia-modules/doxia-module-xdoc/pom.xml")))))
+    (native-inputs (list maven-doxia-test-docs
+                         java-junit
+                         java-guice
+                         java-xmlunit
+                         java-xmlunit-matchers
+                         java-slf4j-simple))
+    (propagated-inputs (list maven-doxia-modules-parent-pom java-slf4j-api
+                             java-javax-inject java-plexus-utils))
+    (synopsis "Doxia module for Xdoc source documents")
+    (description "A Doxia module for Xdoc source documents.  Xdoc format is
+supported both as source and target formats.")))
+
-- 
2.25.1
From 7674444b9d93c2f4827c34ed072b15f0adf49324 Mon Sep 17 00:00:00 2001
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Sun, 26 Jun 2022 09:46:36 +0300
Subject: [PATCH 4/5] gnu: Add maven-doxia-module-xhtml.

* gnu/packages/maven.scm (maven-doxia-module-xhtml): New variable.
---
gnu/packages/maven.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)

Toggle diff (34 lines)
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index 520652812a..536ec8bda6 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -4063,3 +4063,27 @@ format is supported both as source and target formats.")))
     (description "A Doxia module for Xdoc source documents.  Xdoc format is
 supported both as source and target formats.")))
 
+(define-public maven-doxia-module-xhtml
+  (package
+    (inherit maven-doxia-sink-api)
+    (name "maven-doxia-module-xhtml")
+    (arguments
+     `(#:jar-name "doxia-module-xhtml.jar"
+       #:source-dir "doxia-modules/doxia-module-xhtml/src/main/java"
+       #:test-dir "doxia-modules/doxia-module-xhtml/src/test/java"
+       #:tests? #f ;tests require JUnit5
+       #:phases (modify-phases %standard-phases
+                  (replace 'install
+                    (install-from-pom "doxia-modules/doxia-module-xhtml/pom.xml")))))
+    (native-inputs (list maven-doxia-test-docs
+                         java-junit
+                         java-guice
+                         java-xmlunit
+                         java-xmlunit-matchers
+                         java-slf4j-simple))
+    (propagated-inputs (list maven-doxia-modules-parent-pom java-slf4j-api
+                             java-javax-inject java-plexus-utils))
+    (synopsis "Doxia module for Xhtml source documents")
+    (description "A Doxia module for Xhtml source documents.  Xhtml format is
+supported both as source and target formats.")))
+
-- 
2.25.1
From d3460af65680529ae678b95a68ddb511b88b84ce Mon Sep 17 00:00:00 2001
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Sun, 26 Jun 2022 09:49:39 +0300
Subject: [PATCH 5/5] gnu: Add maven-doxia-module-xhtml5.

* gnu/packages/maven.scm (maven-doxia-module-xhtml5): New variable.
---
gnu/packages/maven.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)

Toggle diff (34 lines)
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index 536ec8bda6..fbe5f5b62f 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -4087,3 +4087,27 @@ supported both as source and target formats.")))
     (description "A Doxia module for Xhtml source documents.  Xhtml format is
 supported both as source and target formats.")))
 
+(define-public maven-doxia-module-xhtml5
+  (package
+    (inherit maven-doxia-sink-api)
+    (name "maven-doxia-module-xhtml5")
+    (arguments
+     `(#:jar-name "doxia-module-xhtml5.jar"
+       #:source-dir "doxia-modules/doxia-module-xhtml5/src/main/java"
+       #:test-dir "doxia-modules/doxia-module-xhtml5/src/test/java"
+       #:tests? #f ;tests require JUnit5
+       #:phases (modify-phases %standard-phases
+                  (replace 'install
+                    (install-from-pom "doxia-modules/doxia-module-xhtml5/pom.xml")))))
+    (native-inputs (list maven-doxia-test-docs
+                         java-junit
+                         java-guice
+                         java-xmlunit
+                         java-xmlunit-matchers
+                         java-slf4j-simple))
+    (propagated-inputs (list maven-doxia-modules-parent-pom java-slf4j-api
+                             java-javax-inject java-plexus-utils))
+    (synopsis "Doxia module for Xhtml5 source documents")
+    (description "A Doxia module for Xhtml5 source documents.  Xhtml5 format is
+supported both as source and target formats.")))
+
-- 
2.25.1
Thanks,

- Artyom

--
Artyom "avp" Poptsov <poptsov.artyom@gmail.com>
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEE0MLqwTMQgi2Y3rV86cWi2QiYoC8FAmK4AuMACgkQ6cWi2QiY
oC+8mggAsAl5LgaH4h3TAp583q57eGrdsE8bx35yD5WV8VdtAE14VkJyJ0ZBXUXR
5E0Y9TqUGQ/Ed/TjokDJ00cXkr4PvPtzL25qUOexPvnOKZSCjtwJJKxrv/Sq7d7Q
nlnk6osHaR5din38P1c7UrY9i+UvEABCyYsLt7gU+c2AWGXUxJFjI7WVzyYoNedo
Xa0nC4Hxnp+KBXgl1Zq7qOaNDiAPjhNRhmZDPXD6HQtPQLgNi/2Uv6FbI4feZhcM
IAS+rLKrc1VStYUb/9mSEIdqUH3Ls53c05cW1wJcqfOurZcYRbsCFFWJ4ghTb/le
pefPRj5ntbMD5ztfAOsUUyQUY8Kafw==
=rksQ
-----END PGP SIGNATURE-----

?