From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Vong Subject: Re: [PATCH] NON-WORKING: new package: sent -- simple presentation tool Date: Mon, 14 Dec 2015 19:14:38 +0800 Message-ID: <878u4x5lk1.fsf@gmail.com> References: <1449956691-11833-1-git-send-email-KAction@gnu.org> <20151213184804.GA23534@jasmine> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35497) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a8R5a-0005wC-I8 for guix-devel@gnu.org; Mon, 14 Dec 2015 06:14:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a8R5X-00035r-Al for guix-devel@gnu.org; Mon, 14 Dec 2015 06:14:46 -0500 In-Reply-To: <20151213184804.GA23534@jasmine> (Leo Famulari's message of "Sun, 13 Dec 2015 13:48:04 -0500") 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Leo Famulari Cc: guix-devel@gnu.org, KAction@gnu.org Leo Famulari writes: > On Sun, Dec 13, 2015 at 12:44:51AM +0300, KAction@gnu.org wrote: >> 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. > > 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 definition > 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 package > definition! > It works for me! So the problem boils dpwn to the missing `-I/gnu/store/...-freetype/include/freetype2' include path... >>=20 >> It would be very kind of anyone to finish my work. >>=20 >> --- >> gnu/packages/suckless.scm | 36 ++++++++++++++++++++++++++++++++++++ >> 1 file changed, 36 insertions(+) >>=20 >> diff --git a/gnu/packages/suckless.scm b/gnu/packages/suckless.scm >> index c921f8e..ad23798 100644 >> --- a/gnu/packages/suckless.scm >> +++ b/gnu/packages/suckless.scm >> @@ -25,6 +25,7 @@ >> #:use-module (gnu packages) >> #:use-module (gnu packages xorg) >> #:use-module (gnu packages fonts) >> + #:use-module (gnu packages image) >> #:use-module (gnu packages pkg-config) >> #:use-module (gnu packages fontutils)) >>=20=20 >> @@ -144,6 +145,41 @@ numbers of user-defined menu items efficiently.") >> "Simple X session lock with trivial feedback on password entry.") >> (license license:x11))) >>=20=20 >> +(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 >> + '(#:tests? #f >> + #:make-flags '("CC=3Dgcc") >> + #:phases >> + (modify-phases %standard-phases >> + (delete 'configure)))) >> + (inputs >> + `(("libx11" ,libx11) >> + ("libxft" ,libxft) >> + ("libpng" ,libpng))) >> + (home-page "http://tools.suckless.org/sent/") >> + (synopsis "Simple plain-text presentation tool") >> + (description >> + "sent does not need latex, libreoffice or any other fancy file fo= rmat, >> +it uses plaintext files and png images. Every paragraph represents a sl= ide in >> +the presentation. >> + >> +The presentation is displayed in a simple X11 window colored black on w= hite >> +for maximum contrast. The content of each slide is automatically scaled= to fit >> +the window so you don=E2=80=99t have to worry about alignment. Instead = you can really >> +concentrate on the content.") >> + (license (license:x11-style "file://LICENSE")))) >> + >> (define-public st >> (package >> (name "st") >> --=20 >> I may be not subscribed. Please, keep me in carbon copy. >>=20 >>=20