From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58244) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g8SNj-0000p6-GN for guix-patches@gnu.org; Fri, 05 Oct 2018 11:51:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g8SNe-00081p-QH for guix-patches@gnu.org; Fri, 05 Oct 2018 11:51:11 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:33846) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g8SNc-0007z0-LG for guix-patches@gnu.org; Fri, 05 Oct 2018 11:51:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g8SNc-0001cE-I7 for guix-patches@gnu.org; Fri, 05 Oct 2018 11:51:04 -0400 Subject: [bug#32948] [PATCH 06/21] gnu: Add java-w3c-smil. Resent-Message-ID: From: Danny Milosavljevic Date: Fri, 5 Oct 2018 17:50:07 +0200 Message-Id: <20181005155020.10239-6-dannym@scratchpost.org> In-Reply-To: <20181005155020.10239-1-dannym@scratchpost.org> References: <20181005154453.10159-1-dannym@scratchpost.org> <20181005155020.10239-1-dannym@scratchpost.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 32948@debbugs.gnu.org * gnu/packages/batik.scm (java-w3c-smil-3.0): New variable. --- gnu/packages/batik.scm | 61 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/gnu/packages/batik.scm b/gnu/packages/batik.scm index b5672bb20..88be05042 100644 --- a/gnu/packages/batik.scm +++ b/gnu/packages/batik.scm @@ -103,3 +103,64 @@ (define-public java-batik-ext (java-batik-package "batik-ext" `())) + +(define-public java-w3c-smil-3.0 + (package + (name "java-w3c-smil") + (version "3.0") + (source #f) + (build-system ant-build-system) + (arguments + `(#:jar-name "w3c-smil.jar" + #:source-dir "." + #:tests? #f ; No tests exist. + #:phases + (modify-phases %standard-phases + (replace 'unpack + (lambda* (#:key source #:allow-other-keys) + ;; https://www.w3.org/TR/SMIL3/smil-timing.html#q142 + (mkdir-p "org/w3c/dom/smil") + (call-with-output-file "org/w3c/dom/smil/ElementTimeControl.java" + (lambda (port) + (format port " +package org.w3c.dom.smil; + +import org.w3c.dom.DOMException; + +public interface ElementTimeControl { + public boolean beginElement(); + + public boolean beginElementAt(float offset); + + public boolean endElement(); + + public boolean endElementAt(float offset); +} +"))) + (call-with-output-file "org/w3c/dom/smil/TimeEvent.java" + (lambda (port) + (format port " +package org.w3c.dom.smil; + +import org.w3c.dom.events.Event; +import org.w3c.dom.views.AbstractView; + +public interface TimeEvent extends Event { + public AbstractView getView(); + + public int getDetail(); + + public void initTimeEvent(String typeArg, + AbstractView viewArg, + int detailArg); + +} +"))) + #t))))) + (native-inputs + `(("unzip" ,unzip))) + (home-page "https://www.w3.org/Style/CSS/SAC/") + (synopsis "W3C SAC interface for CSS parsers in Java") + (description "This package provides a SAC interface by the W3C. +SAC is an interface for CSS parsers.") + (license license:w3c)))