diff mbox

[v2,3/3] gnu: Add pdfposter.

Message ID 1478731153-27023-3-git-send-email-h.goebel@crazy-compilers.com
State New
Headers show

Commit Message

Hartmut Goebel Nov. 9, 2016, 10:39 p.m. UTC
* gnu/packages/pdf.scm(pdfposter): New variable.
---
 gnu/packages/pdf.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

Comments

Efraim Flashner Nov. 10, 2016, 7:51 a.m. UTC | #1
On Wed, Nov 09, 2016 at 11:39:13PM +0100, Hartmut Goebel wrote:
> * gnu/packages/pdf.scm(pdfposter): New variable.
> ---
>  gnu/packages/pdf.scm | 32 ++++++++++++++++++++++++++++++++
>  1 file changed, 32 insertions(+)
> 
> diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
> index e0279c6..06cfab9 100644
> --- a/gnu/packages/pdf.scm
> +++ b/gnu/packages/pdf.scm
> @@ -851,3 +851,35 @@ is therefore a useful tool for websites that manage or manipulate PDFs.")
>  Note: This module isn't maintained anymore.  For new projects please use
>  python-pypdf2 instead.")
>      (license license:bsd-3)))
> +
> +(define-public pdfposter
> +  (package
> +    (name "pdfposter")
> +    (version "0.6.0")
> +    (source (origin
> +              (method url-fetch)
> +              (uri (pypi-uri "pdftools.pdfposter" version ".tar.bz2"))
> +              (sha256
> +               (base32
> +                "1i9jqawf279va089ykicglcq4zlsnwgcnsdzaa8vnm836lqhywma"))))
> +    (build-system python-build-system)
> +    (arguments
> +     `(#:tests? #f  ; no test suite, only for visula control
                                                ^^^^^^^
                                            typo


> +       #:python ,python-2))
> +    (inputs
> +     ;; pdfposter 0.6.0 still uses the old pyPdf
> +     `(("python2-pypdf" ,python2-pypdf)))
> +    (native-inputs
> +     `(("python2-setuptools" ,python2-setuptools)))
> +    (home-page "https://pythonhosted.org/pdftools.pdfposter/")
> +    (synopsis "Scale and tile PDF images/pages to print on multiple pages")
> +    (description "@command{pdfposter} can be used to create a large poster by
> +building it from multple pages and/or printing it on large media.  It expects
> +as input a PDF file, normally printing on a single page.  The output is again
> +a PDF file, maybe containing multiple pages together building the poster.  The
> +input page will be scaled to obtain the desired size.
> +
> +This is much like @command{poster} does for Postscript files, but working with
> +PDF.  Since sometimes @command{poster} does not like your files converted from
> +PDF. :-) Indeed @command{pdfposter} was inspired by @command{poster}.")
        ^^^^
I would leave this out

> +    (license license:gpl3+)))
> -- 
> 2.7.4
> 
>
Ludovic Courtès Nov. 10, 2016, 10:48 a.m. UTC | #2
Efraim Flashner <efraim@flashner.co.il> skribis:

> On Wed, Nov 09, 2016 at 11:39:13PM +0100, Hartmut Goebel wrote:
>> * gnu/packages/pdf.scm(pdfposter): New variable.
                         ^
Space.  :-)

[...]

>> +    (arguments
>> +     `(#:tests? #f  ; no test suite, only for visula control
>                                                 ^^^^^^^
>                                             typo

[...]

>> +PDF.  Since sometimes @command{poster} does not like your files converted from
>> +PDF. :-) Indeed @command{pdfposter} was inspired by @command{poster}.")
>         ^^^^
> I would leave this out

I agree with Efraim.

LGTM with these changes.

Thanks!

Ludo’.
Hartmut Goebel Nov. 10, 2016, 1:28 p.m. UTC | #3
Am 10.11.2016 um 11:48 schrieb Ludovic Courtès:
> LGTM with these changes.

I pushed the patch series with all your requests handled. Thanks for
reviewing and expeling my errors :-)
diff mbox

Patch

diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index e0279c6..06cfab9 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -851,3 +851,35 @@  is therefore a useful tool for websites that manage or manipulate PDFs.")
 Note: This module isn't maintained anymore.  For new projects please use
 python-pypdf2 instead.")
     (license license:bsd-3)))
+
+(define-public pdfposter
+  (package
+    (name "pdfposter")
+    (version "0.6.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "pdftools.pdfposter" version ".tar.bz2"))
+              (sha256
+               (base32
+                "1i9jqawf279va089ykicglcq4zlsnwgcnsdzaa8vnm836lqhywma"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:tests? #f  ; no test suite, only for visula control
+       #:python ,python-2))
+    (inputs
+     ;; pdfposter 0.6.0 still uses the old pyPdf
+     `(("python2-pypdf" ,python2-pypdf)))
+    (native-inputs
+     `(("python2-setuptools" ,python2-setuptools)))
+    (home-page "https://pythonhosted.org/pdftools.pdfposter/")
+    (synopsis "Scale and tile PDF images/pages to print on multiple pages")
+    (description "@command{pdfposter} can be used to create a large poster by
+building it from multple pages and/or printing it on large media.  It expects
+as input a PDF file, normally printing on a single page.  The output is again
+a PDF file, maybe containing multiple pages together building the poster.  The
+input page will be scaled to obtain the desired size.
+
+This is much like @command{poster} does for Postscript files, but working with
+PDF.  Since sometimes @command{poster} does not like your files converted from
+PDF. :-) Indeed @command{pdfposter} was inspired by @command{poster}.")
+    (license license:gpl3+)))