From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55713) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYsiY-0006VH-3J for guix-patches@gnu.org; Sat, 22 Jul 2017 07:37:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dYsiU-0006hp-TM for guix-patches@gnu.org; Sat, 22 Jul 2017 07:37:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:49267) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dYsiU-0006hV-Op for guix-patches@gnu.org; Sat, 22 Jul 2017 07:37:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dYsiU-0004Gp-Id for guix-patches@gnu.org; Sat, 22 Jul 2017 07:37:02 -0400 Subject: [bug#27790] text-editor: mg Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYshy-0006Uh-06 for guix-patches@gnu.org; Sat, 22 Jul 2017 07:36:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dYshu-0006Lp-Sk for guix-patches@gnu.org; Sat, 22 Jul 2017 07:36:30 -0400 Received: from aibo.runbox.com ([91.220.196.211]:57552) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dYshu-0006LP-Kh for guix-patches@gnu.org; Sat, 22 Jul 2017 07:36:26 -0400 Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1dYsht-0003v5-7Q for guix-patches@gnu.org; Sat, 22 Jul 2017 13:36:25 +0200 Received: from 62-210-115-87.rev.poneytelecom.eu ([62.210.115.87] helo=localhost) by mailfront12.runbox.com with esmtpsa (uid:892961 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1dYshj-0001YB-GR for guix-patches@gnu.org; Sat, 22 Jul 2017 13:36:15 +0200 Date: Sat, 22 Jul 2017 11:36:13 +0000 From: ng0 Message-ID: <20170722113613.shefcwrn3m2t6suu@abyayala> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="2lphd2o3gbhqkhlj" Content-Disposition: inline List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 27790@debbugs.gnu.org --2lphd2o3gbhqkhlj Content-Type: multipart/mixed; boundary="zo5jicvxcw4y5u7v" Content-Disposition: inline --zo5jicvxcw4y5u7v Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable This adds a package from one of my repositories, mg. --=20 ng0 GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588 GnuPG: https://n0is.noblogs.org/my-keys https://www.infotropique.org https://krosos.org --zo5jicvxcw4y5u7v Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0001-gnu-Add-mg.patch" Content-Transfer-Encoding: quoted-printable =46rom d1cae87a9b13b5624deb16666a1da3333bd05681 Mon Sep 17 00:00:00 2001 =46rom: ng0 Date: Sat, 22 Jul 2017 11:31:37 +0000 Subject: [PATCH] gnu: Add mg. * gnu/packages/text-editors.scm (mg): New variable. --- gnu/packages/text-editors.scm | 57 +++++++++++++++++++++++++++++++++++++++= +++- 1 file changed, 56 insertions(+), 1 deletion(-) diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm index 98df48119..9277dd1f5 100644 --- a/gnu/packages/text-editors.scm +++ b/gnu/packages/text-editors.scm @@ -3,7 +3,7 @@ ;;; Copyright =C2=A9 2016 Carlo Zancanaro ;;; Copyright =C2=A9 2017 Eric Bavier ;;; Copyright =C2=A9 2017 Feng Shu -;;; Copyright =C2=A9 2017 ng0 +;;; Copyright =C2=A9 2017 ng0 ;;; ;;; This file is part of GNU Guix. ;;; @@ -34,6 +34,7 @@ #:use-module (gnu packages gcc) #:use-module (gnu packages glib) #:use-module (gnu packages gtk) + #:use-module (gnu packages libbsd) #:use-module (gnu packages lua) #:use-module (gnu packages ncurses) #:use-module (gnu packages pkg-config) @@ -227,3 +228,57 @@ Wordstar-, EMACS-, Pico, Nedit or vi-like key bindings= =2E e3 can be used on 16, 32, and 64-bit CPUs.") (supported-systems '("x86_64-linux" "i686-linux")) (license license:gpl2+))) + +(define-public mg + (package + (name "mg") + (version "20170401") + (source + (origin + (method url-fetch) + (uri (string-append "http://homepage.boetes.org/software/mg/" + "mg-" version ".tar.gz")) + (sha256 + (base32 + "1arasswgdadbb265rahq3867r9s54jva6k4m3p5n0f8mgjqhhdha")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; There is no testsuite + #:make-flags (list "CC=3Dgcc") + #:phases + (modify-phases %standard-phases + (delete 'configure) ; There is no configure script + (add-before 'build 'replace-usr + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "GNUmakefile" + (("/usr/bin/") "") + (("/usr/local") + (assoc-ref outputs "out"))) + #t)) + (add-before 'build 'correct-location-of-difftool + (lambda _ + (substitute* "buffer.c" + (("/usr/bin/diff") + (which "diff"))) + #t)) + (add-before 'install 'install-tutorial + (lambda* (#:key outputs #:allow-other-keys) + ;; This isn't handled by install but is expect + ;; by the tutorial part of mg to be present. + (let* ((out (assoc-ref outputs "out")) + (doc (string-append out "/share/doc/mg"))) + (install-file "tutorial" + (string-append doc "/tutorial")) + #t)))))) + (inputs + `(("ncurses" ,ncurses) + ("libbsd" ,libbsd))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (home-page "http://homepage.boetes.org/software/mg/") + (synopsis "OpenBSD variant of the editor mg") + (description + "Mg is a public domain text editor intended to loosely resemble +GNU Emacs, while still retaining fast speed and a small memory footprint. +It is based on MicroEMACS.") + (license license:public-domain))) --=20 2.13.3 --zo5jicvxcw4y5u7v-- --2lphd2o3gbhqkhlj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEqIyK3RKYKNfqwC5S4i+bv+40hYgFAllzOK0ACgkQ4i+bv+40 hYioog/+ICA+e+A4F/Y75BK81/ZmtFhZ/1GvdwZyzvWUMGHAxceFBlqMEO/nr53a KkSfXameAACKKZceGVyYvemaNWAiM01Kq83khpPQ/KggKYFc6BvmjeUEhWpf892I g+4G8hKCyQzfu6mRR6nJaeXqsEdlruVzwS50k8NsjVMrzY2a2FB1PuPADSjCSYab /z51mO21baW1jdauQC4nncBaXJ50dUy2TN4TwWI2FMaedaS+0LOJ+2A06/h3wKpu f1jOCS+u9bsxL/InoRjgc6UcsEoW1YcL6beNHBZj6kP7kQUjIFMOAulqXZaV4N5X mJMicsJh920EpehnDm7Lha4MIqImN4qKHlGnQOHvfSDGVLJLqW1PaX+jTyW9rfJ4 XtmfXjItpl1IHQQ7D0e3X1zxjknAtyXv1ZBopf4btKtKz+SADeJx5cj4XYVg93bU Un+AHyPA1r4lJmMxrtnYKdSwOstX2VuXyWIUDzGnk+qkYH+3uKCkiS37qJyb626O V8OK+hwdUSEyCLalin2eXMmwi/qxG916pOgRaGi9QhRkGqWQszKoXLo1NV8N4zzN 5/pBSMG7p4LWHPE+GfRufMKsjU4oNKWmOzSRWUraPbT29HkmyOMcqBaFoJ/7M/ee oCuGYrC9zNCF1fhF44yqJZnM0iL/RztBbJlj9t/cNp3PB52G/Q0= =rCmU -----END PGP SIGNATURE----- --2lphd2o3gbhqkhlj--