Add java-fop
README.md
34 | 34 | ---- | |
35 | 35 | ||
36 | 36 | * _josm_: An openstreetmap editor | |
37 | + | * _fop_: A print formatter driven by XSL formatting objects | |
37 | 38 | ||
38 | 39 | Non-free | |
39 | 40 | -------- |
more/packages/java.scm
3738 | 3738 | (description "") | |
3739 | 3739 | (license license:asl2.0))) | |
3740 | 3740 | ||
3741 | + | (define-public java-avalon-framework-api | |
3742 | + | (package | |
3743 | + | (name "java-avalon-framework-api") | |
3744 | + | (version "4.3") | |
3745 | + | (source (origin | |
3746 | + | (method url-fetch) | |
3747 | + | (uri (string-append "https://archive.apache.org/dist/excalibur/" | |
3748 | + | "avalon-framework/source/avalon-framework-api-" | |
3749 | + | version "-src.tar.gz")) | |
3750 | + | (sha256 | |
3751 | + | (base32 | |
3752 | + | "0iqx6g3lqzmq805cdzr9xghda20pl4akyb54yrvzrp896q2nmmd4")))) | |
3753 | + | (build-system ant-build-system) | |
3754 | + | (arguments | |
3755 | + | `(#:jar-name "avalon-framework.jar" | |
3756 | + | #:source-dir "src/java" | |
3757 | + | #:tests? #f; FIXME: not in the java subdirectory | |
3758 | + | #:test-dir "src/test")) | |
3759 | + | (inputs | |
3760 | + | `(("log" ,java-avalon-logkit))) | |
3761 | + | (native-inputs | |
3762 | + | `(("junit" ,java-junit))) | |
3763 | + | (home-page "") | |
3764 | + | (synopsis "") | |
3765 | + | (description "") | |
3766 | + | (license license:asl2.0))) | |
3767 | + | ||
3741 | 3768 | (define-public java-velocity | |
3742 | 3769 | (package | |
3743 | 3770 | (name "java-velocity") | |
… | |||
4962 | 4989 | ; (synopsis "Alternative on-screen keyboard for multiple languages") | |
4963 | 4990 | ; (description "Alternative on-screen keyboard for multiple languages.") | |
4964 | 4991 | ; (license license:asl2.0))) | |
4992 | + | ||
4993 | + | (define-public java-batik | |
4994 | + | (package | |
4995 | + | (name "java-batik") | |
4996 | + | (version "1.9") | |
4997 | + | (source (origin | |
4998 | + | (method url-fetch) | |
4999 | + | (uri (string-append "mirror://apache/xmlgraphics/batik/source/" | |
5000 | + | "batik-src-" version ".tar.gz")) | |
5001 | + | (sha256 | |
5002 | + | (base32 | |
5003 | + | "18y60rfzbd0ljndaq7a5adjxqbgld4krmpx8fj94k6mcnk03dx5y")))) | |
5004 | + | (build-system ant-build-system) | |
5005 | + | (arguments | |
5006 | + | `(#:test-target "regard"; FIXME: no test is actually run | |
5007 | + | #:build-target "all-jar" | |
5008 | + | #:phases | |
5009 | + | (modify-phases %standard-phases | |
5010 | + | (replace 'install | |
5011 | + | (lambda* (#:key outputs #:allow-other-keys) | |
5012 | + | (let ((dir (string-append (assoc-ref outputs "out") "/share/java/"))) | |
5013 | + | (mkdir-p dir) | |
5014 | + | (copy-file (string-append "batik-" ,version "/lib/batik-all-" ,version ".jar") | |
5015 | + | (string-append dir "batik-all.jar")))))))) | |
5016 | + | (inputs | |
5017 | + | `(("xmlgraphics" ,java-xmlgraphics-commons))) | |
5018 | + | (home-page "https://xmlgraphics.apache.org/batik") | |
5019 | + | (synopsis "") | |
5020 | + | (description "") | |
5021 | + | (license license:asl2.0))) | |
5022 | + | ||
5023 | + | (define-public java-xmlgraphics-commons | |
5024 | + | (package | |
5025 | + | (name "java-xmlgraphics-commons") | |
5026 | + | (version "2.2") | |
5027 | + | (source (origin | |
5028 | + | (method url-fetch) | |
5029 | + | (uri (string-append "mirror://apache/xmlgraphics/commons/source/" | |
5030 | + | "xmlgraphics-commons-" version "-src.tar.gz")) | |
5031 | + | (sha256 | |
5032 | + | (base32 | |
5033 | + | "0i128sj8g29hqc66kqckjr2n1n2amfgijadp5xq4y9fy45q5mrrb")))) | |
5034 | + | (build-system ant-build-system) | |
5035 | + | (arguments | |
5036 | + | `(#:jar-name "xmlgraphics-commons.jar" | |
5037 | + | #:source-dir "src/main/java" | |
5038 | + | #:test-dir "src/test" | |
5039 | + | #:tests? #f)); FIXME: need commons-xml-resolver | |
5040 | + | (inputs | |
5041 | + | `(("commons-io" ,java-commons-io) | |
5042 | + | ("commons-logging" ,java-commons-logging-minimal))) | |
5043 | + | (native-inputs | |
5044 | + | `(("junit" ,java-junit) | |
5045 | + | ("mockito" ,java-mockito-1))) | |
5046 | + | (home-page "https://xmlgraphics.apache.org") | |
5047 | + | (synopsis "") | |
5048 | + | (description "") | |
5049 | + | (license license:asl2.0))) | |
5050 | + | ||
5051 | + | (define-public java-fop | |
5052 | + | (package | |
5053 | + | (name "java-fop") | |
5054 | + | (version "2.2") | |
5055 | + | (source (origin | |
5056 | + | (method url-fetch) | |
5057 | + | (uri (string-append "mirror://apache/xmlgraphics/fop/source/" | |
5058 | + | "fop-" version "-src.tar.gz")) | |
5059 | + | (sha256 | |
5060 | + | (base32 | |
5061 | + | "0lk59ba2388yq69i7wi8nr1k97aw4lkgd6yj96yqif64gzwgwljh")))) | |
5062 | + | (build-system ant-build-system) | |
5063 | + | (arguments | |
5064 | + | `(#:build-target "jar-main" | |
5065 | + | #:test-target "junit" | |
5066 | + | #:phases | |
5067 | + | (modify-phases %standard-phases | |
5068 | + | (add-before 'configure 'chdir | |
5069 | + | (lambda _ | |
5070 | + | ;; FIXME: need dependencies | |
5071 | + | ;(for-each delete-file | |
5072 | + | ; (find-files "." ".*.jar")) | |
5073 | + | (chdir "fop") | |
5074 | + | (substitute* "build.xml" | |
5075 | + | (("<path id=\"libs-build-classpath\">") | |
5076 | + | "<path id=\"libs-build-classpath\"><pathelement location=\"${env.CLASSPATH}\" />") | |
5077 | + | (("TestCase.class\"/>") | |
5078 | + | "TestCase.class\" excludes=\"**/IFTestCase.class **/*HyphenationLayoutTestCase.class\"/>") | |
5079 | + | (("<fail><condition><or>"); don't fail after all tests actually passed | |
5080 | + | "<fail><condition><and>") | |
5081 | + | (("</not></or></condition>") | |
5082 | + | "</not></and></condition>")))) | |
5083 | + | (replace 'install | |
5084 | + | (lambda* (#:key outputs #:allow-other-keys) | |
5085 | + | (let* ((out (assoc-ref outputs "out")) | |
5086 | + | (lib (string-append out "/share/java/")) | |
5087 | + | (bin (string-append out "/bin/")) | |
5088 | + | (etc (string-append out "/etc"))) | |
5089 | + | (mkdir-p lib) | |
5090 | + | (mkdir-p bin) | |
5091 | + | (mkdir-p etc) | |
5092 | + | (copy-file "build/fop.jar" | |
5093 | + | (string-append lib "fop.jar")) | |
5094 | + | (copy-file "build/fop-hyph.jar" | |
5095 | + | (string-append lib "fop-hyph.jar")) | |
5096 | + | (copy-file "build/fop-sandbox.jar" | |
5097 | + | (string-append lib "fop-sandbox.jar")) | |
5098 | + | (copy-file "fop" | |
5099 | + | (string-append bin "fop")) | |
5100 | + | (chmod (string-append bin "fop") #o755) | |
5101 | + | (substitute* (string-append bin "fop") | |
5102 | + | (("/etc/fop.conf") | |
5103 | + | (string-append etc "fop.conf"))) | |
5104 | + | (with-output-to-file (string-append etc "fop.conf") | |
5105 | + | (lambda _ | |
5106 | + | (display | |
5107 | + | (string-append | |
5108 | + | "FOP_HOME=\"" lib "\"\n" | |
5109 | + | "CLASSPATH=\"$CLASSPATH:$FOP_HOME/fop.jar\"\n" | |
5110 | + | "CLASSPATH=\"$CLASSPATH:" (getenv "CLASSPATH") "\"")))))))))) | |
5111 | + | (home-page "https://xmlgraphics.apache.org/fop") | |
5112 | + | (inputs | |
5113 | + | `(("apache-logging" ,java-commons-logging-minimal) | |
5114 | + | ("commons-io" ,java-commons-io) | |
5115 | + | ("xmlgraphics" ,java-xmlgraphics-commons) | |
5116 | + | ("tomcat" ,java-tomcat) | |
5117 | + | ("batik" ,java-batik) | |
5118 | + | ("avalon" ,java-avalon-framework-api) | |
5119 | + | ("avalon" ,java-avalon-logkit))) | |
5120 | + | (native-inputs | |
5121 | + | `(("junit" ,java-junit))) | |
5122 | + | (synopsis "") | |
5123 | + | (description "") | |
5124 | + | (license license:asl2.0))) | |
5125 | + | ||
5126 | + | (define-public java-fop-util | |
5127 | + | (package | |
5128 | + | (inherit java-fop) | |
5129 | + | (name "java-fop-util") | |
5130 | + | (arguments | |
5131 | + | `(#:jar-name "fop-util.jar" | |
5132 | + | #:source-dir "fop-util/src/main/java" | |
5133 | + | #:tests? #f)); no tests | |
5134 | + | (inputs | |
5135 | + | `(("io" ,java-commons-io) | |
5136 | + | ("xmlgraphics" ,java-xmlgraphics-commons) | |
5137 | + | ("logging" ,java-commons-logging-minimal))))) | |
5138 | + | ||
5139 | + | (define-public java-fop-events | |
5140 | + | (package | |
5141 | + | (inherit java-fop) | |
5142 | + | (name "java-fop-events") | |
5143 | + | (arguments | |
5144 | + | `(#:jar-name "fop-events.jar" | |
5145 | + | #:source-dir "fop-events/src/main/java" | |
5146 | + | #:test-dir "fop-events/src/test")) | |
5147 | + | (inputs | |
5148 | + | `(("io" ,java-commons-io) | |
5149 | + | ("xmlgraphics" ,java-xmlgraphics-commons) | |
5150 | + | ("logging" ,java-commons-logging-minimal) | |
5151 | + | ("fop-util" ,java-fop-util))))) |