unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* bug#27156: smu
@ 2017-05-31  1:03 ng0
  2017-06-02 22:35 ` Marius Bakke
  0 siblings, 1 reply; 5+ messages in thread
From: ng0 @ 2017-05-31  1:03 UTC (permalink / raw)
  To: 27156


[-- Attachment #1.1: Type: text/plain, Size: 298 bytes --]

This adds smu (simple markup).
I've been using this in production for a while.

Does it belong in markdown.scm? Technicaly it is not markdown,
but it's the closest I could find when I moved it from my
package repo to the guix repo.
-- 
ng0
OpenPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588

[-- Attachment #1.2: 0001-gnu-Add-smu.patch --]
[-- Type: text/plain, Size: 2540 bytes --]

From fe4b59d8525250e6e59334225bd5fa0432d1e7e3 Mon Sep 17 00:00:00 2001
From: ng0 <ng0@no-reply.pragmatique.xyz>
Date: Tue, 30 May 2017 13:56:26 +0000
Subject: [PATCH] gnu: Add smu.

* gnu/packages/markdown.scm (smu): New variable.
---
 gnu/packages/markdown.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/markdown.scm b/gnu/packages/markdown.scm
index 4a020198e..3cfd211b5 100644
--- a/gnu/packages/markdown.scm
+++ b/gnu/packages/markdown.scm
@@ -2,6 +2,7 @@
 ;;; Copyright © 2015 Mathieu Lirzin <mthl@openmailbox.org>
 ;;; Copyright © 2015 David Thompson <davet@gnu.org>
 ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2017 ng0 <ng0@no-reply.pragmatique.xyz>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -130,3 +131,39 @@ for parsing and rendering CommonMark.")
     ;; licensed. The CommonMark specification is Creative Commons CC-BY-SA 4.0
     ;; licensed. See 'COPYING' in the source distribution for more information.
     (license (list bsd-2 expat cc-by-sa4.0))))
+
+(define-public smu
+  (package
+    (name "smu")
+    (version "1.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://github.com/Gottox/smu/archive/v"
+                           version ".tar.gz"))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "0iazl45rkz8ngsb5hpykl76w0ngvdvqqhym1qz5wykgmrzk293rp"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:make-flags (list "CC=gcc"
+                          (string-append "PREFIX="
+                                         (assoc-ref %outputs "out")))
+       #:tests? #f ;No tests included
+       #:phases
+       (modify-phases %standard-phases
+         (delete 'configure))))
+    (home-page "https://github.com/Gottox/smu")
+    (synopsis "Simple markup")
+    (description
+     "Smu is a very simple and minimal markup language.  It is
+designed for using in wiki-like environments.  Smu makes it very
+easy to write your documents on the fly and convert them into HTML.
+Smu is capable to parse very large documents.  As long as you avoid an huge
+amount of indents it scales just great.
+
+Smu was started as a rewrite of Markdown but became something more
+lightweight and consistent.  The biggest difference between Markdown
+and smu is that smu doesn't support reference style links.")
+    (license x11)))
-- 
2.13.0


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

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

* bug#27156: smu
  2017-05-31  1:03 bug#27156: smu ng0
@ 2017-06-02 22:35 ` Marius Bakke
  2017-06-03 19:54   ` ng0
  0 siblings, 1 reply; 5+ messages in thread
From: Marius Bakke @ 2017-06-02 22:35 UTC (permalink / raw)
  To: ng0, 27156

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

ng0 <ng0@pragmatique.xyz> writes:

> This adds smu (simple markup).
> I've been using this in production for a while.
>
> Does it belong in markdown.scm? Technicaly it is not markdown,
> but it's the closest I could find when I moved it from my
> package repo to the guix repo.

I think we can rename 'markdown.scm' to 'markup.scm' to make it more
generic. There doesn't appear to be any users of this module in the tree.

Would you like to give it a go? Also, I'm sure you can get commit access
if you ask for it, we could use more reviewers ;-)

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

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

* bug#27156: smu
  2017-06-02 22:35 ` Marius Bakke
@ 2017-06-03 19:54   ` ng0
  2017-06-08 18:34     ` ng0
  0 siblings, 1 reply; 5+ messages in thread
From: ng0 @ 2017-06-03 19:54 UTC (permalink / raw)
  To: Marius Bakke; +Cc: 27156

Hi,

Marius Bakke transcribed 1.1K bytes:
> ng0 <ng0@pragmatique.xyz> writes:
> 
> > This adds smu (simple markup).
> > I've been using this in production for a while.
> >
> > Does it belong in markdown.scm? Technicaly it is not markdown,
> > but it's the closest I could find when I moved it from my
> > package repo to the guix repo.
> 
> I think we can rename 'markdown.scm' to 'markup.scm' to make it more
> generic. There doesn't appear to be any users of this module in the tree.

Okay.

> Would you like to give it a go?

I would prefer if someone else did this, I have to work on other
tasks.  I could do it if no one else picks it up in a while.

> Also, I'm sure you can get commit access
> if you ask for it, we could use more reviewers ;-)

As I'm currently preparing to get commit access to ftp.gnu.org
for gnURL in the scope of GNUnet, I will have an savannah account soon.
However I don't see the gain in having commit access to Guix.
My work is around Guix and based on Guix and I know how to follow
the standards etc, but any way works for me. If Ricardo or Ludovic
want to give me commit access, it'll happen sooner or later. Last
time we spoke about this 1 year ago I think.

As for reviewing, I'm pretty much busy with my own work. I have the
set of packages I maintain more or less, but I only have time to review
very rarely.
-- 
ng0
OpenPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588

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

* bug#27156: smu
  2017-06-03 19:54   ` ng0
@ 2017-06-08 18:34     ` ng0
  2017-06-09 22:15       ` Marius Bakke
  0 siblings, 1 reply; 5+ messages in thread
From: ng0 @ 2017-06-08 18:34 UTC (permalink / raw)
  To: 27156


[-- Attachment #1.1: Type: text/plain, Size: 74 bytes --]

Appended v2.
-- 
ng0
OpenPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588

[-- Attachment #1.2: 0001-gnu-Rename-gnu-packages-markdown-to-gnu-packages-mar.patch --]
[-- Type: text/plain, Size: 1671 bytes --]

From 5e56cfe387d3d34cda43d7ff39482e8a567c9403 Mon Sep 17 00:00:00 2001
From: ng0 <ng0@no-reply.pragmatique.xyz>
Date: Thu, 8 Jun 2017 17:14:06 +0000
Subject: [PATCH 1/2] gnu: Rename (gnu packages markdown) to (gnu packages
 markup).

* gnu/packages/markdown.scm: Rename this ...
* gnu/packages/markup.scm: ... to this.
* gnu-system.am (GNU_SYSTEM_MODULES): Change markdown.scm to markup.scm.
---
 gnu/local.mk                              | 2 +-
 gnu/packages/{markdown.scm => markup.scm} | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
 rename gnu/packages/{markdown.scm => markup.scm} (99%)

diff --git a/gnu/local.mk b/gnu/local.mk
index ab3fbb2d3..70dd610dc 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -256,7 +256,7 @@ GNU_SYSTEM_MODULES =				\
   %D%/packages/man.scm				\
   %D%/packages/mail.scm				\
   %D%/packages/make-bootstrap.scm		\
-  %D%/packages/markdown.scm			\
+  %D%/packages/markup.scm			\
   %D%/packages/marst.scm			\
   %D%/packages/mate.scm             \
   %D%/packages/maths.scm			\
diff --git a/gnu/packages/markdown.scm b/gnu/packages/markup.scm
similarity index 99%
rename from gnu/packages/markdown.scm
rename to gnu/packages/markup.scm
index 4a020198e..de40de670 100644
--- a/gnu/packages/markdown.scm
+++ b/gnu/packages/markup.scm
@@ -18,7 +18,7 @@
 ;;; You should have received a copy of the GNU General Public License
 ;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
 
-(define-module (gnu packages markdown)
+(define-module (gnu packages markup)
   #:use-module (guix licenses)
   #:use-module (guix download)
   #:use-module (guix packages)
-- 
2.13.0


[-- Attachment #1.3: 0002-gnu-Add-smu.patch --]
[-- Type: text/plain, Size: 2532 bytes --]

From 1b377da2f0e633b9e0cd557da220071d70e551d2 Mon Sep 17 00:00:00 2001
From: ng0 <ng0@no-reply.pragmatique.xyz>
Date: Tue, 30 May 2017 13:56:26 +0000
Subject: [PATCH 2/2] gnu: Add smu.

* gnu/packages/markup.scm (smu): New variable.
---
 gnu/packages/markup.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/markup.scm b/gnu/packages/markup.scm
index de40de670..cd883b23e 100644
--- a/gnu/packages/markup.scm
+++ b/gnu/packages/markup.scm
@@ -2,6 +2,7 @@
 ;;; Copyright © 2015 Mathieu Lirzin <mthl@openmailbox.org>
 ;;; Copyright © 2015 David Thompson <davet@gnu.org>
 ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2017 ng0 <ng0@no-reply.pragmatique.xyz>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -130,3 +131,39 @@ for parsing and rendering CommonMark.")
     ;; licensed. The CommonMark specification is Creative Commons CC-BY-SA 4.0
     ;; licensed. See 'COPYING' in the source distribution for more information.
     (license (list bsd-2 expat cc-by-sa4.0))))
+
+(define-public smu
+  (package
+    (name "smu")
+    (version "1.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://github.com/Gottox/smu/archive/v"
+                           version ".tar.gz"))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "0iazl45rkz8ngsb5hpykl76w0ngvdvqqhym1qz5wykgmrzk293rp"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:make-flags (list "CC=gcc"
+                          (string-append "PREFIX="
+                                         (assoc-ref %outputs "out")))
+       #:tests? #f ;No tests included
+       #:phases
+       (modify-phases %standard-phases
+         (delete 'configure))))
+    (home-page "https://github.com/Gottox/smu")
+    (synopsis "Simple markup")
+    (description
+     "Smu is a very simple and minimal markup language.  It is
+designed for using in wiki-like environments.  Smu makes it very
+easy to write your documents on the fly and convert them into HTML.
+Smu is capable to parse very large documents.  As long as you avoid an huge
+amount of indents it scales just great.
+
+Smu was started as a rewrite of Markdown but became something more
+lightweight and consistent.  The biggest difference between Markdown
+and smu is that smu doesn't support reference style links.")
+    (license x11)))
-- 
2.13.0


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

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

* bug#27156: smu
  2017-06-08 18:34     ` ng0
@ 2017-06-09 22:15       ` Marius Bakke
  0 siblings, 0 replies; 5+ messages in thread
From: Marius Bakke @ 2017-06-09 22:15 UTC (permalink / raw)
  To: ng0, 27156-done

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

ng0 <ng0@pragmatique.xyz> writes:

> Appended v2.

Pushed, thanks!

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

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

end of thread, other threads:[~2017-06-09 22:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-31  1:03 bug#27156: smu ng0
2017-06-02 22:35 ` Marius Bakke
2017-06-03 19:54   ` ng0
2017-06-08 18:34     ` ng0
2017-06-09 22:15       ` Marius Bakke

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).