Source: md4c
Version: 0.4.8-1
Severity: wishlist
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi all!

Could you please consider shipping the md2html utility alongside the md4c
libraries? It started out as a test tool, but it is not considered "production
ready" from upstream.

I'd love to start using it instead of some other alternatives!

I've attached a patch with the proposed changes. If you need any more help with
packaging of md4c, let me know. I'd love to work a bit on it, like updating to
the latest upstream release.

Thanks! Bye :)


- -- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.9.12-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

-----BEGIN PGP SIGNATURE-----

iIoEARYIADIWIQS6VuNIvZRFHt7JcAdKkgiiRVB3pwUCZrakhBQcYW5kcmVhQHBh
cHBhY29kYS5pdAAKCRBKkgiiRVB3p4EZAP0bd28BcSWGa3uFhbqechAZqa7dhyF8
yvFjf6F9Y4lscAEAmsEBX3zdapmWOdA4jlMbDn9nRD4Tg2sp+91TapYRVQQ=
=YEmM
-----END PGP SIGNATURE-----
From 3aa66a2244effaf3fb708f318ff76411771e4997 Mon Sep 17 00:00:00 2001
From: Andrea Pappacoda <and...@pappacoda.it>
Date: Sat, 10 Aug 2024 01:18:16 +0200
Subject: [PATCH] Build and ship md2html utility

---
 debian/control                                | 17 ++++++++++++++++
 debian/md2html.install                        |  1 +
 debian/md2html.manpages                       |  1 +
 .../disable_building_the_example.patch        | 20 -------------------
 debian/patches/series                         |  1 -
 5 files changed, 19 insertions(+), 21 deletions(-)
 create mode 100644 debian/md2html.install
 create mode 100644 debian/md2html.manpages
 delete mode 100644 debian/patches/disable_building_the_example.patch
 delete mode 100644 debian/patches/series

diff --git a/debian/control b/debian/control
index 436426e..22162d5 100644
--- a/debian/control
+++ b/debian/control
@@ -139,3 +139,20 @@ Description: Markdown for C HTML-renderer
  Permissive license: MD4C is available under the MIT license.
  .
  This package ships the standalone Markdown-to-HTML converter.
+
+Package: md2html
+Section: text
+Architecture: any
+Multi-Arch: foreign
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: Markdown to HTML converter
+ md2html is a command line utility based on the MD4C library which converts
+ Markdown files to HTML.
+ .
+ It supports the CommonMark and GitHub Flavored dialects of Markdown, and has
+ multiple options enabling different extensions like URL autolinking,
+ strikethrough, tables, and more.
+ .
+ Being based on the MD4C library, it benefits from its performance and
+ portability. For more information about the MD4C library, see the libmd4c-dev
+ package.
diff --git a/debian/md2html.install b/debian/md2html.install
new file mode 100644
index 0000000..5b7fd5b
--- /dev/null
+++ b/debian/md2html.install
@@ -0,0 +1 @@
+usr/bin/md2html
diff --git a/debian/md2html.manpages b/debian/md2html.manpages
new file mode 100644
index 0000000..73efe53
--- /dev/null
+++ b/debian/md2html.manpages
@@ -0,0 +1 @@
+usr/share/man/man1/md2html.1
diff --git a/debian/patches/disable_building_the_example.patch 
b/debian/patches/disable_building_the_example.patch
deleted file mode 100644
index f8cf510..0000000
--- a/debian/patches/disable_building_the_example.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-Description: do not build the md2html example.
- The author expressed it's only an example code.
- It is currently not being installed as an example, so
- simply avoid building it.
-Author: Lisandro Damián Nicanor Pérez Meyer <lisan...@debian.org>
-Forwarded: not-needed
-
----
- CMakeLists.txt |    3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -56,4 +56,5 @@
- include(GNUInstallDirs)
- 
- add_subdirectory(src)
--add_subdirectory(md2html)
-+# Do not build the example.
-+#add_subdirectory(md2html)
diff --git a/debian/patches/series b/debian/patches/series
deleted file mode 100644
index cbdeb27..0000000
--- a/debian/patches/series
+++ /dev/null
@@ -1 +0,0 @@
-disable_building_the_example.patch
-- 
2.43.0

Reply via email to