From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Bavier Subject: Re: [PATCH] NON-WORKING: new package: sent -- simple presentation tool Date: Sun, 14 Aug 2016 01:52:14 -0500 Message-ID: <20160814015214.1526afaf@openmailbox.org> References: <1449956691-11833-1-git-send-email-KAction@gnu.org> <20151213184804.GA23534@jasmine> <878u4x5lk1.fsf@gmail.com> <87oa4x9fla.fsf@we.make.ritual.n0.is> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/0N59Q_hnYvEbp_CS5lne/6." Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38597) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYpHf-0004lC-6e for guix-devel@gnu.org; Sun, 14 Aug 2016 02:52:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bYpHd-0004zV-Po for guix-devel@gnu.org; Sun, 14 Aug 2016 02:52:35 -0400 In-Reply-To: <87oa4x9fla.fsf@we.make.ritual.n0.is> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: ng0 Cc: guix-devel@gnu.org, KAction@gnu.org --MP_/0N59Q_hnYvEbp_CS5lne/6. Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sat, 13 Aug 2016 09:35:13 +0000 ng0 wrote: > Alex Vong writes: >=20 > > Leo Famulari writes: > > =20 > >> On Sun, Dec 13, 2015 at 12:44:51AM +0300, KAction@gnu.org wrote: =20 > >>> From: Dmitry Bogatov > >>>=20 > >>> This patch does not work. I did my best during 1.5 hours, but I failed > >>> to actually build this package. > >>>=20 > >>> Here is information I can provide: > >>>=20 > >>> =C2=A0 - package builds and runs flawlessly on my main Debian system > >>> - guix build dies on #include on > >>> X11/Xft/Xft.h:39 > >>> - this file (`ft2build.h`) belongs to `freetype` and should > >>> be propagated with `libxft'. > >>> - package `st', which also uses `libxft' build find for me. =20 > >> > >> I also found this "simple" software to not be so simple to package for > >> Guix ;) > >> > >> Here is my working package definition, in my "out-of-tree" repo: > >> https://github.com/lfam/pkgs/blob/master/leo/packages/sent.scm > >> > >> I was waiting for a little while before submitting my package definiti= on > >> to let upstream work out some of the early bugs. But now that 0.2 is > >> out, perhaps it is time. Please feel free to submit your updated packa= ge > >> definition! > >> =20 > > It works for me! So the problem boils dpwn to the missing > > `-I/gnu/store/...-freetype/include/freetype2' include path... =20 >=20 > This was never finished. Could anyone pick this up and finish it? >=20 > Thanks. This is my take on the patch. It builds and works fine. Dmitry, I added a copyright line for you; does it seem alright? `~Eric --MP_/0N59Q_hnYvEbp_CS5lne/6. Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0001-gnu-Add-sent.patch =46rom fbfd29f793815d9870d0edf9044e7aa9ec7175a6 Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Sun, 14 Aug 2016 01:46:58 -0500 Subject: [PATCH] gnu: Add sent. * gnu/packages/suckless.scm (sent): New variable. Co-authored-by: Leo Famulari Co-authored-by: Eric Bavier --- gnu/packages/suckless.scm | 45 +++++++++++++++++++++++++++++++++++++++++++= ++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/suckless.scm b/gnu/packages/suckless.scm index 7aab2c2..1f62e26 100644 --- a/gnu/packages/suckless.scm +++ b/gnu/packages/suckless.scm @@ -3,6 +3,9 @@ ;;; Copyright =C2=A9 2015 Amirouche Boubekki ;;; Copyright =C2=A9 2016 Al McElrath ;;; Copyright =C2=A9 2016 ng0 +;;; Copyright =C2=A9 2015 Dmitry Bogatov +;;; Copyright =C2=A9 2015 Leo Famulari +;;; Copyright =C2=A9 2016 Eric Bavier ;;; ;;; This file is part of GNU Guix. ;;; @@ -27,6 +30,7 @@ #:use-module (guix build-system glib-or-gtk) #:use-module (gnu packages) #:use-module (gnu packages gnome) + #:use-module (gnu packages image) #:use-module (gnu packages xorg) #:use-module (gnu packages fonts) #:use-module (gnu packages pkg-config) @@ -200,3 +204,44 @@ display websites and follow links. It supports the XE= mbed protocol which makes it possible to embed it in another application. Furthermore, one can point surf to another URI by setting its XProperties.") (license license:x11))) + +(define-public sent + (package + (name "sent") + (version "0.2") + (source (origin + (method url-fetch) + (uri (string-append "http://dl.suckless.org/tools/sent-" + version ".tar.gz")) + (sha256 + (base32 + "0xhh752hwaa26k4q6wvrb9jnpbnylss2aw6z11j7l9rav7wn3fak")))) + (build-system gnu-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (delete 'configure)) ;no configuration + #:tests? #f ;no test suite + #:make-flags (let ((pkg-config (lambda (flag) + (string-append + "$(shell pkg-config " flag " " + "xft fontconfig x11 libpng)")))) + (list + "CC=3Dgcc" + (string-append "PREFIX=3D" %output) + (string-append "INCS=3D-I. " (pkg-config "--cflags"= )) + (string-append "LIBS=3D" (pkg-config "--libs") " -l= m"))))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("libpng" ,libpng) + ("libx11" ,libx11) + ("libxft" ,libxft) + ("fontconfig" ,fontconfig))) + (synopsis "Plaintext presentation tool") + (description "Sent uses plaintext files and PNG images to create slide= show +presentations. Each paragraph represents a slide in the presentation. +Especially for presentations using the Takahashi method this is very nice = and +allows you to write down the presentation for a quick lightning talk withi= n a +few minutes.") + (home-page "http://tools.suckless.org/sent") + (license license:x11))) --=20 2.9.2 --MP_/0N59Q_hnYvEbp_CS5lne/6.--