diff options
| author | Danny Milosavljevic <dannym@scratchpost.org> | 2018-10-07 14:14:13 +0200 |
|---|---|---|
| committer | Danny Milosavljevic <dannym@scratchpost.org> | 2018-10-07 14:14:13 +0200 |
| commit | 2c4be1add077bf30f949282edcc2ea507ba44497 (patch) | |
| tree | f6d74a9dcc429e9af85151edece7d7a67965239c /gnu/packages/batik.scm | |
| parent | c8a99ab9112b6a671b15766301f03e428108c4eb (diff) | |
gnu: Add java-w3c-smil.
* gnu/packages/batik.scm: New file.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
Diffstat (limited to 'gnu/packages/batik.scm')
| -rw-r--r-- | gnu/packages/batik.scm | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/gnu/packages/batik.scm b/gnu/packages/batik.scm new file mode 100644 index 00000000000..91eb8f01d5f --- /dev/null +++ b/gnu/packages/batik.scm | |||
| @@ -0,0 +1,90 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | ||
| 2 | ;;; Copyright © 2018 Danny Milosavljevic <dannym@scratchpost.org> | ||
| 3 | ;;; | ||
| 4 | ;;; This file is part of GNU Guix. | ||
| 5 | ;;; | ||
| 6 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | ||
| 7 | ;;; under the terms of the GNU General Public License as published by | ||
| 8 | ;;; the Free Software Foundation; either version 3 of the License, or (at | ||
| 9 | ;;; your option) any later version. | ||
| 10 | ;;; | ||
| 11 | ;;; GNU Guix is distributed in the hope that it will be useful, but | ||
| 12 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | ;;; GNU General Public License for more details. | ||
| 15 | ;;; | ||
| 16 | ;;; You should have received a copy of the GNU General Public License | ||
| 17 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | ||
| 18 | |||
| 19 | (define-module (gnu packages batik) | ||
| 20 | #:use-module ((guix licenses) #:prefix license:) | ||
| 21 | #:use-module (guix utils) | ||
| 22 | #:use-module (guix download) | ||
| 23 | #:use-module (guix git-download) | ||
| 24 | #:use-module (guix packages) | ||
| 25 | #:use-module (guix build-system ant) | ||
| 26 | #:use-module (gnu packages) | ||
| 27 | #:use-module (gnu packages compression) | ||
| 28 | #:use-module (gnu packages java) | ||
| 29 | #:use-module (gnu packages textutils)) | ||
| 30 | |||
| 31 | (define-public java-w3c-smil-3.0 | ||
| 32 | (package | ||
| 33 | (name "java-w3c-smil") | ||
| 34 | (version "3.0") | ||
| 35 | (source #f) | ||
| 36 | (build-system ant-build-system) | ||
| 37 | (arguments | ||
| 38 | `(#:jar-name "w3c-smil.jar" | ||
| 39 | #:source-dir "." | ||
| 40 | #:tests? #f ; No tests exist. | ||
| 41 | #:phases | ||
| 42 | (modify-phases %standard-phases | ||
| 43 | (replace 'unpack | ||
| 44 | (lambda* (#:key source #:allow-other-keys) | ||
| 45 | ;; https://www.w3.org/TR/SMIL3/smil-timing.html#q142 | ||
| 46 | (mkdir-p "org/w3c/dom/smil") | ||
| 47 | (call-with-output-file "org/w3c/dom/smil/ElementTimeControl.java" | ||
| 48 | (lambda (port) | ||
| 49 | (format port " | ||
| 50 | package org.w3c.dom.smil; | ||
| 51 | |||
| 52 | import org.w3c.dom.DOMException; | ||
| 53 | |||
| 54 | public interface ElementTimeControl { | ||
| 55 | public boolean beginElement(); | ||
| 56 | |||
| 57 | public boolean beginElementAt(float offset); | ||
| 58 | |||
| 59 | public boolean endElement(); | ||
| 60 | |||
| 61 | public boolean endElementAt(float offset); | ||
| 62 | } | ||
| 63 | "))) | ||
| 64 | (call-with-output-file "org/w3c/dom/smil/TimeEvent.java" | ||
| 65 | (lambda (port) | ||
| 66 | (format port " | ||
| 67 | package org.w3c.dom.smil; | ||
| 68 | |||
| 69 | import org.w3c.dom.events.Event; | ||
| 70 | import org.w3c.dom.views.AbstractView; | ||
| 71 | |||
| 72 | public interface TimeEvent extends Event { | ||
| 73 | public AbstractView getView(); | ||
| 74 | |||
| 75 | public int getDetail(); | ||
| 76 | |||
| 77 | public void initTimeEvent(String typeArg, | ||
| 78 | AbstractView viewArg, | ||
| 79 | int detailArg); | ||
| 80 | |||
| 81 | } | ||
| 82 | "))) | ||
| 83 | #t))))) | ||
| 84 | (native-inputs | ||
| 85 | `(("unzip" ,unzip))) | ||
| 86 | (home-page "https://www.w3.org/Style/CSS/SAC/") | ||
| 87 | (synopsis "W3C SAC interface for CSS parsers in Java") | ||
| 88 | (description "This package provides a SAC interface by the W3C. | ||
| 89 | SAC is an interface for CSS parsers.") | ||
| 90 | (license license:w3c))) | ||
