From: Ricardo Wurmus <rekado@elephly.net>
To: 26861@debbugs.gnu.org
Cc: Ricardo Wurmus <rekado@elephly.net>
Subject: bug#26861: [PATCH 25/31] gnu: Add java-eclipse-text.
Date: Tue, 9 May 2017 23:28:42 +0200 [thread overview]
Message-ID: <20170509212848.14688-25-rekado@elephly.net> (raw)
In-Reply-To: <20170509212848.14688-1-rekado@elephly.net>
* 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 411f4916e..00827d4e9 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -2852,6 +2852,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")
--
2.12.2
next prev parent reply other threads:[~2017-05-09 21:30 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-09 21:07 bug#26861: [PATCH 00/31] Even more Java things Ricardo Wurmus
2017-05-09 21:28 ` bug#26861: [PATCH 01/31] gnu: Add libusb4java Ricardo Wurmus
2017-05-09 21:28 ` bug#26861: [PATCH 02/31] gnu: Add java-usb4java Ricardo Wurmus
2017-05-09 21:28 ` bug#26861: [PATCH 03/31] gnu: Add java-rsyntaxtextarea Ricardo Wurmus
2017-05-09 21:28 ` bug#26861: [PATCH 04/31] gnu: Add java-simple-xml Ricardo Wurmus
2017-05-09 21:28 ` bug#26861: [PATCH 05/31] gnu: Add java-osgi-annotation Ricardo Wurmus
2017-05-09 21:28 ` bug#26861: [PATCH 06/31] gnu: Add java-osgi-core Ricardo Wurmus
2017-05-09 21:28 ` bug#26861: [PATCH 07/31] gnu: Add java-eclipse-osgi Ricardo Wurmus
2017-05-09 21:28 ` bug#26861: [PATCH 08/31] gnu: Add java-eclipse-equinox-common Ricardo Wurmus
2017-05-09 21:28 ` bug#26861: [PATCH 09/31] gnu: Add java-osgi-service-event Ricardo Wurmus
2017-05-09 21:28 ` bug#26861: [PATCH 10/31] gnu: Add java-eclipse-core-jobs Ricardo Wurmus
2017-05-09 21:28 ` bug#26861: [PATCH 11/31] gnu: Add java-eclipse-equinox-registry Ricardo Wurmus
2017-05-09 21:28 ` bug#26861: [PATCH 12/31] gnu: Add java-eclipse-equinox-app Ricardo Wurmus
2017-05-09 21:28 ` bug#26861: [PATCH 13/31] gnu: Add java-eclipse-equinox-preferences Ricardo Wurmus
2017-05-09 21:28 ` bug#26861: [PATCH 14/31] gnu: Add java-eclipse-core-contenttype Ricardo Wurmus
2017-05-09 21:28 ` bug#26861: [PATCH 15/31] gnu: Add java-eclipse-core-runtime Ricardo Wurmus
2017-05-09 21:28 ` bug#26861: [PATCH 16/31] gnu: Add java-eclipse-core-filesystem Ricardo Wurmus
2017-05-09 21:28 ` bug#26861: [PATCH 17/31] gnu: Add java-eclipse-core-expressions Ricardo Wurmus
2017-05-09 21:28 ` bug#26861: [PATCH 18/31] gnu: Add java-eclipse-core-variables Ricardo Wurmus
2017-05-09 21:28 ` bug#26861: [PATCH 19/31] gnu: Add java-eclipse-ant-core Ricardo Wurmus
2017-05-09 21:28 ` bug#26861: [PATCH 20/31] gnu: Add java-eclipse-core-resources Ricardo Wurmus
2017-05-09 21:28 ` bug#26861: [PATCH 21/31] gnu: Add java-icu4j Ricardo Wurmus
2017-05-09 21:28 ` bug#26861: [PATCH 22/31] gnu: Add java-eclipse-compare-core Ricardo Wurmus
2017-05-09 21:28 ` bug#26861: [PATCH 23/31] gnu: Add java-eclipse-team-core Ricardo Wurmus
2017-05-09 21:28 ` bug#26861: [PATCH 24/31] gnu: Add java-eclipse-core-commands Ricardo Wurmus
2017-05-09 21:28 ` Ricardo Wurmus [this message]
2017-05-09 21:28 ` bug#26861: [PATCH 26/31] gnu: Add java-eclipse-jdt-core Ricardo Wurmus
2017-05-09 21:28 ` bug#26861: [PATCH 27/31] gnu: Add java-log4j-api Ricardo Wurmus
2017-05-09 21:28 ` bug#26861: [PATCH 28/31] licenses: Add EDL 1.0 Ricardo Wurmus
2017-05-10 4:25 ` Leo Famulari
2017-05-10 5:32 ` Ricardo Wurmus
2017-05-09 21:28 ` bug#26861: [PATCH 29/31] gnu: Add java-javax-mail Ricardo Wurmus
2017-05-09 21:28 ` bug#26861: [PATCH 30/31] gnu: Add jikes Ricardo Wurmus
2017-05-09 21:28 ` bug#26861: [PATCH 31/31] gnu: Add classpath-minimal-0.93 Ricardo Wurmus
2017-05-10 13:32 ` Ricardo Wurmus
2017-05-15 20:32 ` bug#26861: [PATCH 00/31] Even more Java things Ricardo Wurmus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170509212848.14688-25-rekado@elephly.net \
--to=rekado@elephly.net \
--cc=26861@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).