GNU bug report logs - #25925
[PATCH] gnu: Add fop.

Previous Next

Package: guix-patches;

Reported by: Roel Janssen <roel <at> gnu.org>

Date: Wed, 1 Mar 2017 23:59:02 UTC

Severity: normal

Tags: moreinfo, patch

Done: Roel Janssen <roel <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Roel Janssen <roel <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#25925: closed ([PATCH] gnu: Add fop.)
Date: Thu, 11 May 2017 14:25:04 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 11 May 2017 16:23:43 +0200
with message-id <877f1nxyj4.fsf <at> gnu.org>
and subject line Re: bug#25925: [PATCH] gnu: Add fop.
has caused the debbugs.gnu.org bug report #25925,
regarding [PATCH] gnu: Add fop.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
25925: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=25925
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Roel Janssen <roel <at> gnu.org>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: Add fop.
Date: Thu, 02 Mar 2017 00:58:39 +0100
Dear Guix,

This package is a dependency for Darktable.  Therefore, I would like to
add it.

>From 99604dfc19cd9b68863fcc948ecbe4a853bc56f0 Mon Sep 17 00:00:00 2001
From: Roel Janssen <roel <at> gnu.org>
Date: Thu, 2 Mar 2017 00:43:00 +0100
Subject: [PATCH] gnu: Add fop.

* gnu/packages/xml.scm (fop): New variable.
---
 gnu/packages/xml.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index b91471690..f7f861fbe 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -14,6 +14,7 @@
 ;;; Copyright © 2016 ng0 <ng0 <at> we.make.ritual.n0.is>
 ;;; Copyright © 2016 Tobias Geerinckx-Rice <me <at> tobias.gr>
 ;;; Copyright © 2016 Marius Bakke <mbakke <at> fastmail.com>
+;;; Copyright © 2017 Roel Janssen <roel <at> gnu.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -42,6 +43,7 @@
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
   #:use-module (guix download)
+  #:use-module (guix build-system ant)
   #:use-module (guix build-system cmake)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system perl)
@@ -71,6 +73,46 @@ stream-oriented parser in which an application registers handlers for
 things the parser might find in the XML document (like start tags).")
     (license license:expat)))
 
+(define-public fop
+  (package
+    (name "fop")
+    (version "2.1")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "mirror://apache/xmlgraphics/fop/source/fop-"
+                    version "-src.tar.gz"))
+              (sha256
+               (base32
+                "165rx13q47l6qc29ppr7sg1z26vw830s3rkklj5ap7wgvy0ivbz5"))))
+    (build-system ant-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'build
+           (lambda* (#:key inputs #:allow-other-keys)
+             (system* (string-append (assoc-ref inputs "ant") "/bin/ant"))))
+         (replace 'install
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (bin (string-append out "/bin")))
+               (mkdir-p bin)
+               (install-file "build/fop.jar" bin)
+               (install-file "build/fop-hyph.jar" bin)
+               (install-file "build/fop-sandbox.jar" bin)
+               (install-file "build/fop-transcoder-allinone.jar" bin)
+               (install-file "build/fop-transcoder.jar" bin)
+               (install-file "fop" bin)))))))
+    (home-page "https://xmlgraphics.apache.org/fop/")
+    (synopsis "Formatting objects processor")
+    (description "Apache FOP is a print formatter driven by XSL formatting
+objects (XSL-FO) and an output independent formatter.  It is a Java application
+that reads a formatting object (FO) tree and renders the resulting pages to a
+specified output.  Output formats currently supported include PDF, PS, PCL,
+AFP, XML (area tree representation), Print, AWT and PNG, and to a lesser
+extent, RTF and TXT.  The primary output target is PDF.")
+    (license license:asl2.0)))
+
 (define-public libxml2
   (package
     (name "libxml2")
-- 
2.11.0



[Message part 3 (message/rfc822, inline)]
From: Roel Janssen <roel <at> gnu.org>
To: Marius Bakke <mbakke <at> fastmail.com>
Cc: 25925-done <at> debbugs.gnu.org
Subject: Re: bug#25925: [PATCH] gnu: Add fop.
Date: Thu, 11 May 2017 16:23:43 +0200
Marius Bakke writes:

> Roel Janssen <roel <at> gnu.org> writes:
>
>> Dear Guix,
>>
>> This package is a dependency for Darktable.  Therefore, I would like to
>> add it.
>>
>>>From 99604dfc19cd9b68863fcc948ecbe4a853bc56f0 Mon Sep 17 00:00:00 2001
>> From: Roel Janssen <roel <at> gnu.org>
>> Date: Thu, 2 Mar 2017 00:43:00 +0100
>> Subject: [PATCH] gnu: Add fop.
>>
>> * gnu/packages/xml.scm (fop): New variable.
>> ---
>>  gnu/packages/xml.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
>>  1 file changed, 42 insertions(+)
>>
>> diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
>> index b91471690..f7f861fbe 100644
>> --- a/gnu/packages/xml.scm
>> +++ b/gnu/packages/xml.scm
>> @@ -14,6 +14,7 @@
>>  ;;; Copyright © 2016 ng0 <ng0 <at> we.make.ritual.n0.is>
>>  ;;; Copyright © 2016 Tobias Geerinckx-Rice <me <at> tobias.gr>
>>  ;;; Copyright © 2016 Marius Bakke <mbakke <at> fastmail.com>
>> +;;; Copyright © 2017 Roel Janssen <roel <at> gnu.org>
>>  ;;;
>>  ;;; This file is part of GNU Guix.
>>  ;;;
>> @@ -42,6 +43,7 @@
>>    #:use-module ((guix licenses) #:prefix license:)
>>    #:use-module (guix packages)
>>    #:use-module (guix download)
>> +  #:use-module (guix build-system ant)
>>    #:use-module (guix build-system cmake)
>>    #:use-module (guix build-system gnu)
>>    #:use-module (guix build-system perl)
>> @@ -71,6 +73,46 @@ stream-oriented parser in which an application registers handlers for
>>  things the parser might find in the XML document (like start tags).")
>>      (license license:expat)))
>>  
>> +(define-public fop
>> +  (package
>> +    (name "fop")
>> +    (version "2.1")
>> +    (source (origin
>> +              (method url-fetch)
>> +              (uri (string-append
>> +                    "mirror://apache/xmlgraphics/fop/source/fop-"
>> +                    version "-src.tar.gz"))
>> +              (sha256
>> +               (base32
>> +                "165rx13q47l6qc29ppr7sg1z26vw830s3rkklj5ap7wgvy0ivbz5"))))
>
> Ahh...java. Can you try removing some of the 21 bundled JARs with a
> 'snippet' here? We do have a couple of them in Guix already. Even better
> if you can package some more.

Ahh sorry about this.  Because 'fop' is not needed for 'darktable', I
will just drop this patch for now.

Thanks for your reviewing efforts though!

Kind regards,
Roel Janssen


This bug report was last modified 8 years and 16 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.