gnu: java-ecj: Do not inherit from java-ecj-3.

* gnu/packages/java.scm (java-ecj): Do not inherit fields from java-ecj-3.
[arguments]: Merge build phases 'fix-build.xml and 'fix-prop; remove trailing #T.
This commit is contained in:
Ricardo Wurmus 2023-01-09 00:38:15 +01:00
parent 649ea550e7
commit 3b62c2804c
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -2247,43 +2247,39 @@ Main-Class: org.eclipse.jdt.internal.compiler.batch.Main\n"
(license license:epl1.0))) (license license:epl1.0)))
(define-public java-ecj (define-public java-ecj
(package (inherit java-ecj-3) (package
(version "4.6.3") (name "java-ecj")
(source (version "4.6.3")
(origin (source
(method url-fetch) (origin
(uri (string-append (method url-fetch)
"http://archive.eclipse.org/eclipse/downloads/drops4/R-" (uri (string-append "http://archive.eclipse.org/eclipse/"
version "downloads/drops4/R-" version "-201703010400/"
"-201703010400/ecjsrc-" "ecjsrc-" version ".jar"))
version (sha256
".jar")) (base32
(sha256 "11cfgsdgznja1pvlxkjbqykxd7pcd5655vkm7s44xmahmap15gpl"))))
(base32 (build-system ant-build-system)
"11cfgsdgznja1pvlxkjbqykxd7pcd5655vkm7s44xmahmap15gpl")))) (arguments
(arguments `(#:tests? #f ; none included
`(#:tests? #f ; none included #:build-target "build"
#:build-target "build" #:phases
#:phases (modify-phases %standard-phases
(modify-phases %standard-phases (add-after 'unpack 'fix-build.xml
(add-after 'unpack 'fix-build.xml (lambda _
(lambda _ (substitute* "src/build.xml"
(substitute* "src/build.xml" (("^.*MANIFEST.*$")
(("^.*MANIFEST.*$") "")
"")) (("^.*properties.*$")
#t)) "<include name=\"**/*.properties\"/>
(add-after 'unpack 'fix-prop <include name=\"**/*.props\"/>"))))
(lambda _ (add-before 'build 'chdir
(substitute* "src/build.xml" (lambda _ (chdir "src")))
(("^.*properties.*$") (replace 'install (install-jars ".")))))
"<include name=\"**/*.properties\"/> (home-page "https://eclipse.org")
<include name=\"**/*.props\"/>")) (synopsis "Eclipse Java development tools core batch compiler")
#t)) (description "This package provides the Eclipse Java core batch compiler.")
(add-before 'build 'chdir (license license:epl1.0)))
(lambda _
(chdir "src")
#t))
(replace 'install (install-jars ".")))))))
(define-public java-cisd-base (define-public java-cisd-base
(let ((revision 38938) (let ((revision 38938)