[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
27/31: gnu: Add java-eclipse-text.
From: |
Ricardo Wurmus |
Subject: |
27/31: gnu: Add java-eclipse-text. |
Date: |
Mon, 15 May 2017 16:33:34 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit bf96acf7e5869fb5e6d05ef0ccfd13d4619002fa
Author: Ricardo Wurmus <address@hidden>
Date: Tue May 9 22:46:11 2017 +0200
gnu: Add java-eclipse-text.
* gnu/packages/java.scm (java-eclipse-text): New variable.
---
gnu/packages/java.scm | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 95ddc58..aebcbd6 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -2825,6 +2825,61 @@ module @code{org.eclipse.compare.core}.")
@code{org.eclipse.core.commands}.")
(license license:epl1.0)))
+(define-public java-eclipse-text
+ (package
+ (name "java-eclipse-text")
+ (version "3.6.0")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://repo1.maven.org/maven2/"
+ "org/eclipse/platform/org.eclipse.text/"
+ version "/org.eclipse.text-"
+ version "-sources.jar"))
+ (sha256
+ (base32
+ "0scz70vzz5qs5caji9f5q01vkqnvip7dpri1q07l8wbbdcxn4cq1"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:tests? #f ; no tests included
+ #:jar-name "eclipse-text.jar"
+ #:phases
+ (modify-phases %standard-phases
+ ;; When creating a new category we must make sure that the new list
+ ;; matches List<Position>. By default it seems to be too generic
+ ;; (ArrayList<Object>), so we specialize it to ArrayList<Position>.
+ ;; Without this we get this error:
+ ;;
+ ;; [javac] .../src/org/eclipse/jface/text/AbstractDocument.java:376:
+ ;; error: method put in interface Map<K,V> cannot be applied to
given types;
+ ;; [javac] fPositions.put(category, new
ArrayList<>());
+ ;; [javac] ^
+ ;; [javac] required: String,List<Position>
+ ;; [javac] found: String,ArrayList<Object>
+ ;; [javac] reason: actual argument ArrayList<Object> cannot be
converted
+ ;; to List<Position> by method invocation conversion
+ ;; [javac] where K,V are type-variables:
+ ;; [javac] K extends Object declared in interface Map
+ ;; [javac] V extends Object declared in interface Map
+ ;;
+ ;; I don't know if this is a good fix. I suspect it is not, but it
+ ;; seems to work.
+ (add-after 'unpack 'fix-compilation-error
+ (lambda _
+ (substitute* "src/org/eclipse/jface/text/AbstractDocument.java"
+ (("Positions.put\\(category, new ArrayList<>\\(\\)\\);")
+ "Positions.put(category, new ArrayList<Position>());"))
+ #t)))))
+ (inputs
+ `(("java-eclipse-equinox-common" ,java-eclipse-equinox-common)
+ ("java-eclipse-core-commands" ,java-eclipse-core-commands)
+ ("java-icu4j" ,java-icu4j)))
+ (home-page "http://www.eclipse.org/platform")
+ (synopsis "Eclipse text library")
+ (description "Platform Text is part of the Platform UI project and
+provides the basic building blocks for text and text editors within Eclipse
+and contributes the Eclipse default text editor.")
+ (license license:epl1.0)))
+
(define-public java-commons-cli
(package
(name "java-commons-cli")
- branch master updated (c48a145 -> a5cdcf6), Ricardo Wurmus, 2017/05/15
- 02/31: gnu: Add java-commons-net., Ricardo Wurmus, 2017/05/15
- 04/31: gnu: Add java-usb4java., Ricardo Wurmus, 2017/05/15
- 06/31: gnu: Add java-simple-xml., Ricardo Wurmus, 2017/05/15
- 11/31: gnu: Add java-osgi-service-event., Ricardo Wurmus, 2017/05/15
- 03/31: gnu: Add libusb4java., Ricardo Wurmus, 2017/05/15
- 19/31: gnu: Add java-eclipse-core-expressions., Ricardo Wurmus, 2017/05/15
- 27/31: gnu: Add java-eclipse-text.,
Ricardo Wurmus <=
- 31/31: gnu: Add java-javax-mail., Ricardo Wurmus, 2017/05/15
- 09/31: gnu: Add java-eclipse-osgi., Ricardo Wurmus, 2017/05/15
- 01/31: gnu: Add java-asm., Ricardo Wurmus, 2017/05/15
- 08/31: gnu: Add java-osgi-core., Ricardo Wurmus, 2017/05/15
- 07/31: gnu: Add java-osgi-annotation., Ricardo Wurmus, 2017/05/15
- 12/31: gnu: Add java-eclipse-core-jobs., Ricardo Wurmus, 2017/05/15
- 05/31: gnu: Add java-rsyntaxtextarea., Ricardo Wurmus, 2017/05/15
- 10/31: gnu: Add java-eclipse-equinox-common., Ricardo Wurmus, 2017/05/15
- 14/31: gnu: Add java-eclipse-equinox-app., Ricardo Wurmus, 2017/05/15
- 15/31: gnu: Add java-eclipse-equinox-preferences., Ricardo Wurmus, 2017/05/15