all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#28100] [PATCH 0/2] Add FBReader.
@ 2017-08-15 18:44 Danny Milosavljevic
  2017-08-15 18:47 ` [bug#28100] [PATCH 1/2] gnu: Add liblinebreak Danny Milosavljevic
  0 siblings, 1 reply; 5+ messages in thread
From: Danny Milosavljevic @ 2017-08-15 18:44 UTC (permalink / raw)
  To: 28100

Danny Milosavljevic (2):
  gnu: Add liblinebreak.
  gnu: Add fbreader.

 gnu/packages/ebook.scm | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 67 insertions(+)

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

* [bug#28100] [PATCH 1/2] gnu: Add liblinebreak.
  2017-08-15 18:44 [bug#28100] [PATCH 0/2] Add FBReader Danny Milosavljevic
@ 2017-08-15 18:47 ` Danny Milosavljevic
  2017-08-15 18:47   ` [bug#28100] [PATCH 2/2] gnu: Add fbreader Danny Milosavljevic
  2017-08-16  9:03   ` [bug#28100] [PATCH 1/2] gnu: Add liblinebreak Ricardo Wurmus
  0 siblings, 2 replies; 5+ messages in thread
From: Danny Milosavljevic @ 2017-08-15 18:47 UTC (permalink / raw)
  To: 28100

* gnu/packages/ebook.scm (liblinebreak): New variable.
---
 gnu/packages/ebook.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/ebook.scm b/gnu/packages/ebook.scm
index 32f4f3b2d..187d1ed63 100644
--- a/gnu/packages/ebook.scm
+++ b/gnu/packages/ebook.scm
@@ -195,3 +195,23 @@ ebooks for convenient reading.")
                    license:public-domain
                    license:silofl1.1
                    license:cc-by-sa3.0))))
+
+(define-public liblinebreak
+  (package
+    (name "liblinebreak")
+    (version "2.1")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "mirror://sourceforge/vimgadgets"
+                                  "/liblinebreak/" version
+                                  "/liblinebreak-" version ".tar.gz"))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1f36dbq7nc77lln1by2n1yl050g9dc63viawhs3gc3169mavm36x"))))
+    (build-system gnu-build-system)
+    (home-page "http://vimgadgets.sourceforge.net/liblinebreak/")
+    (synopsis "Library for detecting where linebreaks are allowed in text")
+    (description "@code{liblinebreak} is a library that can be used to detect
+where linebreaks are allowed in a given text.")
+    (license license:zlib)))

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

* [bug#28100] [PATCH 2/2] gnu: Add fbreader.
  2017-08-15 18:47 ` [bug#28100] [PATCH 1/2] gnu: Add liblinebreak Danny Milosavljevic
@ 2017-08-15 18:47   ` Danny Milosavljevic
  2017-08-16  9:00     ` Ricardo Wurmus
  2017-08-16  9:03   ` [bug#28100] [PATCH 1/2] gnu: Add liblinebreak Ricardo Wurmus
  1 sibling, 1 reply; 5+ messages in thread
From: Danny Milosavljevic @ 2017-08-15 18:47 UTC (permalink / raw)
  To: 28100

* gnu/packages/ebook.scm (fbreader): New variable.
---
 gnu/packages/ebook.scm | 47 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)

diff --git a/gnu/packages/ebook.scm b/gnu/packages/ebook.scm
index 187d1ed63..bca91ecb7 100644
--- a/gnu/packages/ebook.scm
+++ b/gnu/packages/ebook.scm
@@ -28,10 +28,14 @@
   #:use-module (gnu packages)
   #:use-module (guix build-system python)
   #:use-module (gnu packages)
+  #:use-module (gnu packages compression)
+  #:use-module (gnu packages curl)
   #:use-module (gnu packages databases)
   #:use-module (gnu packages fonts)
   #:use-module (gnu packages fontutils)
   #:use-module (gnu packages freedesktop)
+  #:use-module (gnu packages fribidi)
+  #:use-module (gnu packages gtk)
   #:use-module (gnu packages gnome)
   #:use-module (gnu packages glib)
   #:use-module (gnu packages icu4c)
@@ -44,6 +48,7 @@
   #:use-module (gnu packages serialization)
   #:use-module (gnu packages tls)
   #:use-module (gnu packages web)
+  #:use-module (gnu packages xml)
   #:use-module (gnu packages xorg))
 
 (define-public chmlib
@@ -215,3 +220,45 @@ ebooks for convenient reading.")
     (description "@code{liblinebreak} is a library that can be used to detect
 where linebreaks are allowed in a given text.")
     (license license:zlib)))
+
+(define-public fbreader
+  (package
+    (name "fbreader")
+    (version "0.99.6")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://github.com/geometer/FBReader/"
+                                  "archive/" version "-freebsdport.tar.gz"))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "0gf1nl562fqkwlzcn6rgkp1j8jcixzmfsnwxbc0sm49zh8n3zqib"))))
+    (build-system gnu-build-system)
+    (inputs
+     `(("curl" ,curl)
+       ("expat" ,expat)
+       ("fribidi" ,fribidi)
+       ("glib" ,glib)
+       ("gtk+-2" ,gtk+-2)
+       ("libjpeg" ,libjpeg)
+       ("liblinebreak" ,liblinebreak)
+       ("libxft" ,libxft)
+       ("sqlite" ,sqlite)
+       ("zlib" ,zlib)))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (arguments
+     `(#:tests? #f ; No tests exist.
+       #:make-flags `("CC=gcc" "TARGET_ARCH=desktop" "UI_TYPE=gtk"
+                      "TARGET_STATUS=release"
+                      ,(string-append "INSTALLDIR="
+                                      (assoc-ref %outputs "out"))
+                      ,(string-append "LDFLAGS=-Wl,-rpath="
+                                      (assoc-ref %outputs "out") "/lib"))
+       #:phases
+       (modify-phases %standard-phases
+         (delete 'configure))))
+    (home-page "https://fbreader.org/")
+    (synopsis "E-Book reader")
+    (description "@code{fbreader} is an E-Book reader.")
+    (license license:gpl2+)))

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

* [bug#28100] [PATCH 2/2] gnu: Add fbreader.
  2017-08-15 18:47   ` [bug#28100] [PATCH 2/2] gnu: Add fbreader Danny Milosavljevic
@ 2017-08-16  9:00     ` Ricardo Wurmus
  0 siblings, 0 replies; 5+ messages in thread
From: Ricardo Wurmus @ 2017-08-16  9:00 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: 28100


Danny Milosavljevic <dannym@scratchpost.org> writes:

> * gnu/packages/ebook.scm (fbreader): New variable.
> ---
[…]
> +    (synopsis "E-Book reader")
> +    (description "@code{fbreader} is an E-Book reader.")

Could you expound a bit?  You could mention, for example, what kind of
formats it supports.  Other than that the patch is fine.

Thank you!

-- 
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net

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

* [bug#28100] [PATCH 1/2] gnu: Add liblinebreak.
  2017-08-15 18:47 ` [bug#28100] [PATCH 1/2] gnu: Add liblinebreak Danny Milosavljevic
  2017-08-15 18:47   ` [bug#28100] [PATCH 2/2] gnu: Add fbreader Danny Milosavljevic
@ 2017-08-16  9:03   ` Ricardo Wurmus
  1 sibling, 0 replies; 5+ messages in thread
From: Ricardo Wurmus @ 2017-08-16  9:03 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: 28100


Danny Milosavljevic <dannym@scratchpost.org> writes:

> * gnu/packages/ebook.scm (liblinebreak): New variable.
> ---
>  gnu/packages/ebook.scm | 20 ++++++++++++++++++++
>  1 file changed, 20 insertions(+)
>
> diff --git a/gnu/packages/ebook.scm b/gnu/packages/ebook.scm
> index 32f4f3b2d..187d1ed63 100644
> --- a/gnu/packages/ebook.scm
> +++ b/gnu/packages/ebook.scm
> @@ -195,3 +195,23 @@ ebooks for convenient reading.")
>                     license:public-domain
>                     license:silofl1.1
>                     license:cc-by-sa3.0))))
> +
> +(define-public liblinebreak
> +  (package
> +    (name "liblinebreak")
> +    (version "2.1")
> +    (source (origin
> +              (method url-fetch)
> +              (uri (string-append "mirror://sourceforge/vimgadgets"
> +                                  "/liblinebreak/" version
> +                                  "/liblinebreak-" version ".tar.gz"))
> +              (file-name (string-append name "-" version ".tar.gz"))

this “file-name” field is not necessary.  The tarball is already
properly named.

> +              (sha256
> +               (base32
> +                "1f36dbq7nc77lln1by2n1yl050g9dc63viawhs3gc3169mavm36x"))))
> +    (build-system gnu-build-system)
> +    (home-page "http://vimgadgets.sourceforge.net/liblinebreak/")
> +    (synopsis "Library for detecting where linebreaks are allowed in text")
> +    (description "@code{liblinebreak} is a library that can be used to detect
> +where linebreaks are allowed in a given text.")

“allowed” is a bit vague.  The description on the website is better, in
my opinion:

   Liblinebreak is an implementation of the line breaking algorithm as
   described in Unicode 6.0.0 Standard Annex 14, Revision 26. It breaks
   lines that contain Unicode characters. It is designed to be used in a
   generic text renderer.

Could you use that instead?

It’s good with these changes.

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net

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

end of thread, other threads:[~2017-08-16  9:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-15 18:44 [bug#28100] [PATCH 0/2] Add FBReader Danny Milosavljevic
2017-08-15 18:47 ` [bug#28100] [PATCH 1/2] gnu: Add liblinebreak Danny Milosavljevic
2017-08-15 18:47   ` [bug#28100] [PATCH 2/2] gnu: Add fbreader Danny Milosavljevic
2017-08-16  9:00     ` Ricardo Wurmus
2017-08-16  9:03   ` [bug#28100] [PATCH 1/2] gnu: Add liblinebreak Ricardo Wurmus

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.