Remove java duplicates

Julien LepillerMon Jun 21 14:38:00+0200 2021

6c74916

Remove java duplicates

more/packages/java.scm

12861286
\"Java Concurrency In Practice\" (JCIP) book.")
12871287
    (license license:cc-by2.0))); cc-by2.5
12881288
1289-
(define-public java-openjfx
1290-
  (package
1291-
    (name "java-openjfx")
1292-
    ;; This is the last version that can be built for java8
1293-
    (version "8.202")
1294-
    (source (origin
1295-
              (method url-fetch)
1296-
              (uri (string-append "http://hg.openjdk.java.net/openjfx/8u-dev/rt"
1297-
                                  "/archive/85d09981ae0d.tar.gz"))
1298-
              (file-name (string-append name "-" version ".tar.gz"))
1299-
              (sha256
1300-
               (base32
1301-
                "038yg2c9swmckw5ch8cvzxf5hw0fdvxa3wljnw5yhbhqgvawpz3a"))))
1302-
    (build-system ant-build-system)
1303-
    (arguments
1304-
     `(#:jar-name "java-openjfx.jar"
1305-
       #:source-dir "buildSrc/src/main/java"
1306-
       #:test-dir "buildSrc/src/test"
1307-
       #:phases
1308-
       (modify-phases %standard-phases
1309-
         (add-before 'configure 'generate-jsl-parser
1310-
           (lambda _
1311-
             (zero? (system* "antlr3" "-o" "buildSrc/src/main/java/com/sun/scenario/effect/compiler"
1312-
                             "buildSrc/src/main/antlr/JSL.g")))))))
1313-
    (inputs
1314-
     `(("antlr3" ,antlr3)
1315-
       ("java-stringtemplate" ,java-stringtemplate)))
1316-
    (native-inputs
1317-
     `(("java-junit" ,java-junit)
1318-
       ("java-hamcrest-core" ,java-hamcrest-core)))
1319-
    (home-page "https://openjfx.io")
1320-
    (synopsis "")
1321-
    (description "")
1322-
    (license license:gpl2)));with classpath exception
1323-
1324-
(define-public java-openjfx-base
1325-
  (package (inherit java-openjfx)
1326-
    (name "java-openjfx-base")
1327-
    (arguments
1328-
     `(#:jar-name "java-openjfx-base.jar"
1329-
       #:source-dir "modules/base/src/main/java:modules/base/src/main/java8:modules/base/src/main/version-info"
1330-
       #:test-dir "modules/base/src/test"
1331-
       #:phases
1332-
       (modify-phases %standard-phases
1333-
         (add-before 'check 'remove-empty-file
1334-
           (lambda _
1335-
             ;; These files are completely commented, but junit expects them to
1336-
             ;; contain a class, so tests fail.
1337-
             (delete-file "modules/base/src/test/java/com/sun/javafx/property/adapter/PropertyDescriptorTest.java")
1338-
             (delete-file "modules/base/src/test/java/com/sun/javafx/property/adapter/ReadOnlyPropertyDescriptorTest.java")
1339-
             (delete-file "modules/base/src/test/java/javafx/beans/property/PropertiesTest.java")
1340-
             (delete-file "modules/base/src/test/java/javafx/beans/property/adapter/ReadOnlyJavaBeanPropertyBuilder_General_Test.java")
1341-
             ;; This one fails
1342-
             (delete-file "modules/base/src/test/java/com/sun/javafx/runtime/VersionInfoTest.java"))))))
1343-
    (inputs
1344-
     `(("java-openjfx" ,java-openjfx)))))
1345-
1346-
(define-public java-openjfx-graphics
1347-
  (package (inherit java-openjfx)
1348-
    (name "java-openjfx-graphics")
1349-
    (arguments
1350-
     `(#:jar-name "java-openjfx-graphics.jar"
1351-
       #:source-dir "modules/graphics/src/main/java"
1352-
       #:tests? #f; require X?
1353-
       #:test-dir "modules/graphics/src/test"))
1354-
    (inputs
1355-
     `(("java-openjfx" ,java-openjfx)
1356-
       ("java-openjfx-base" ,java-openjfx-base)
1357-
       ("java-swt" ,java-swt)))))
1358-
1359-
(define-public java-openjfx-media
1360-
  (package (inherit java-openjfx)
1361-
    (name "java-openjfx-media")
1362-
    (inputs
1363-
     `(("java-openjxf-graphics" ,java-openjfx-graphics)
1364-
       ("java-openjxf-base" ,java-openjfx-base)
1365-
       ("java-openjfx" ,java-openjfx)))
1366-
    (arguments
1367-
     `(#:jar-name "java-openjfx-media.jar"
1368-
       #:source-dir "modules/media/src/main/java"
1369-
       #:tests? #f)))); no tests
1370-
13711289
(define-public java-brotli-dec
13721290
  (package
13731291
    (name "java-brotli-dec")

15641482
    (description "")
15651483
    (license license:bsd-2)))
15661484
1567-
(define-public java-xmp
1568-
  (package
1569-
    (name "java-xmp")
1570-
    (version "5.1.3")
1571-
    (source (origin
1572-
              (method url-fetch)
1573-
              (uri (string-append "http://download.macromedia.com/pub/developer"
1574-
                                  "/xmp/sdk/XMPCoreJava-" version ".zip"))
1575-
              (sha256
1576-
               (base32
1577-
                "14nai2mmsg7l5ya2y5mx4w4lr1az3sk2fjz6hiy4zdrsavgvl1g7"))))
1578-
    (build-system ant-build-system)
1579-
    (arguments
1580-
     `(#:build-target "build"
1581-
       #:tests? #f; no tests
1582-
       #:phases
1583-
       (modify-phases %standard-phases
1584-
         (add-after 'unpack 'chdir
1585-
           (lambda _
1586-
             (chdir "XMPCore")
1587-
             #t))
1588-
         (replace 'install
1589-
           (install-jars "."))
1590-
         (add-after 'install 'install-doc
1591-
           (lambda* (#:key outputs #:allow-other-keys)
1592-
             (copy-recursively
1593-
               "docs"
1594-
               (string-append (assoc-ref outputs "out") "/share/doc/java-xmp"))
1595-
             #t)))))
1596-
    (native-inputs
1597-
     `(("unzip" ,unzip)))
1598-
    (home-page "")
1599-
    (synopsis "")
1600-
    (description "")
1601-
    (license license:bsd-3)))
1602-
1603-
(define-public java-metadata-extractor
1604-
  (package
1605-
    (name "java-metadata-extractor")
1606-
    (version "2.11.0")
1607-
    (source (origin
1608-
              (method git-fetch)
1609-
              (uri (git-reference
1610-
                     (url "https://github.com/drewnoakes/metadata-extractor")
1611-
                     (commit version)))
1612-
              (file-name (git-file-name name version))
1613-
              (sha256
1614-
               (base32
1615-
                "06yrq0swrl1r40yjbk5kqzjxr04jlkq9lfi711jvfgjf5kp2qinj"))))
1616-
    (build-system ant-build-system)
1617-
    (arguments
1618-
     `(#:jar-name "metadata-extractor.jar"
1619-
       #:source-dir "Source"
1620-
       #:test-dir "Tests"
1621-
       #:phases
1622-
       (modify-phases %standard-phases
1623-
         (add-before 'check 'fix-test-dir
1624-
           (lambda _
1625-
             (substitute* "build.xml"
1626-
               (("/java\">") "\">"))
1627-
             #t)))))
1628-
    (propagated-inputs
1629-
     `(("java-xmp" ,java-xmp)))
1630-
    (native-inputs
1631-
     `(("java-hamcrest-core" ,java-hamcrest-core)
1632-
       ("java-junit" ,java-junit)))
1633-
    (home-page "https://github.com/drewnoakes/metadata-extractor")
1634-
    (synopsis "")
1635-
    (description "")
1636-
    (license license:asl2.0)))
1637-
1638-
(define-public java-signpost-core
1639-
  (package
1640-
    (name "java-signpost-core")
1641-
    (version "1.2.1.2")
1642-
    (source (origin
1643-
              (method git-fetch)
1644-
              (uri (git-reference
1645-
                     (url "https://github.com/mttkay/signpost")
1646-
                     (commit version)))
1647-
              (file-name (git-file-name name version))
1648-
              (sha256
1649-
               (base32
1650-
                "1l04yj2znch3hpyw90c4g4jan453w7d88l84bgl0c72i2kbb8z7h"))))
1651-
    (build-system ant-build-system)
1652-
    (arguments
1653-
     `(#:jar-name "signpost-core.jar"
1654-
       #:source-dir "signpost-core/src/main/java"
1655-
       #:test-dir "signpost-core/src/test"
1656-
       ;; Tests all fail with InstantiationException from mockito
1657-
       #:tests? #f))
1658-
    (propagated-inputs
1659-
     `(("java-commons-codec" ,java-commons-codec)))
1660-
    (home-page "https://github.com/mttkay/signpost")
1661-
    (synopsis "")
1662-
    (description "")
1663-
    (license license:asl2.0)))
1664-
1665-
(define-public java-svg-salamander
1666-
  (package
1667-
    (name "java-svg-salamander")
1668-
    (version "1.1.2")
1669-
    (source (origin
1670-
              (method git-fetch)
1671-
              (uri (git-reference
1672-
                     (url "https://github.com/blackears/svgSalamander")
1673-
                     (commit (string-append "v" version))))
1674-
              (file-name (git-file-name name version))
1675-
              (sha256
1676-
               (base32
1677-
                "1zv3kjdkf6iqf02x6ln76254y634j2ji448y706a65lsbfjmmicf"))
1678-
              (modules '((guix build utils)))
1679-
              (snippet
1680-
                `(for-each delete-file (find-files "." ".*.jar")))
1681-
              (patches
1682-
                (search-patches "java-svg-salamander-Fix-non-det.patch"))))
1683-
    (build-system ant-build-system)
1684-
    ;(arguments
1685-
    ; `(#:jar-name "svg-core.jar"
1686-
    ;   #:source-dir "svg-core/src/main/java"
1687-
    ;   #:tests? #f; no tests
1688-
    ;   #:phases
1689-
    ;   (modify-phases %standard-phases
1690-
    ;     (add-before 'build 'copy-res
1691-
    ;       (lambda _
1692-
    ;         (copy-recursively "src/main/res" "build/classes")
1693-
    ;         #t)))))
1694-
    (arguments
1695-
     `(#:tests? #f; no tests
1696-
       #:phases
1697-
       (modify-phases %standard-phases
1698-
         (add-after 'unpack 'chdir
1699-
           (lambda _
1700-
             (chdir "svg-core")
1701-
             #t))
1702-
         (add-before 'build 'copy-jars
1703-
           (lambda* (#:key inputs #:allow-other-keys)
1704-
             (copy-file (car (find-files (assoc-ref inputs "javacc") "\\.jar$"))
1705-
                        "../libraries/javacc.jar")
1706-
             (copy-file (car (find-files (assoc-ref inputs "ant") "ant\\.jar$"))
1707-
                        "../libraries/ant.jar")
1708-
             #t))
1709-
         (replace 'install
1710-
           (install-jars "dist")))))
1711-
    (native-inputs
1712-
     `(("javacc" ,javacc)))
1713-
    (home-page "https://github.com/blackears/svgSalamander")
1714-
    (synopsis "")
1715-
    (description "")
1716-
    (license license:bsd-2)))
1717-
1718-
(define-public java-josm
1719-
  (package
1720-
    (name "java-josm")
1721-
    (version "15031")
1722-
    (source (origin
1723-
              (method git-fetch)
1724-
              (uri (git-reference
1725-
                     (url "https://github.com/openstreetmap/josm.git")
1726-
                     (commit "04d4c64b1b5698c0f9af40938f32194bc25bf75f")))
1727-
              (sha256
1728-
               (base32
1729-
                "0dgxa0yqh2sxl6nvpzw9507y5rdfxvmy54bhk2gfk1hxh3hvgmxh"))
1730-
              (file-name (git-file-name name version))
1731-
              (modules '((guix build utils)))
1732-
              (snippet
1733-
                `(begin
1734-
                   (for-each delete-file (find-files "." ".*.jar"))
1735-
                   (for-each delete-file-recursively
1736-
                     '("src/org/apache"
1737-
                       "src/org/glassfish"
1738-
                       "src/org/tukaani"
1739-
                       "src/javax"
1740-
                       "src/oauth"
1741-
                       "src/com"))
1742-
                   #t))))
1743-
    (build-system ant-build-system)
1744-
    (native-inputs
1745-
     `(("javacc" ,javacc)))
1746-
    (inputs
1747-
     `(("java-commons-jcs" ,java-commons-jcs)
1748-
       ("java-commons-compress" ,java-commons-compress-latest)
1749-
       ("java-jmapviewer" ,java-jmapviewer)
1750-
       ("java-jsonp-api" ,java-jsonp-api)
1751-
       ("java-jsonp-impl" ,java-jsonp-impl); runtime dependency
1752-
       ("java-metadata-extractor" ,java-metadata-extractor)
1753-
       ("java-openjfx" ,java-openjfx)
1754-
       ("java-openjfx-base" ,java-openjfx-base)
1755-
       ("java-openjfx-media" ,java-openjfx-media)
1756-
       ("java-openjfx-graphics" ,java-openjfx-graphics)
1757-
       ("java-signpost-core" ,java-signpost-core)
1758-
       ("java-svg-salamander" ,java-svg-salamander)))
1759-
    (arguments
1760-
     `(#:tests? #f
1761-
       #:jar-name "josm.jar"
1762-
       #:phases
1763-
       (modify-phases %standard-phases
1764-
         (add-after 'unpack 'rm-build.xml
1765-
           (lambda* _
1766-
             (delete-file "build.xml")
1767-
             #t))
1768-
         (add-before 'build 'fix-revision
1769-
           (lambda* _
1770-
             (with-output-to-file "REVISION.XML"
1771-
               (lambda _
1772-
                 (display
1773-
                   (string-append "<info><entry><commit revision=\"" ,version "\">"
1774-
                                  "<date>1970-01-01 00:00:00 +0000</date>"
1775-
                                  "</commit></entry></info>"))))
1776-
             #t))
1777-
         (add-before 'build 'generate-parser
1778-
           (lambda* _
1779-
             (let* ((dir "src/org/openstreetmap/josm/gui/mappaint/mapcss")
1780-
                    (out (string-append dir "/parsergen"))
1781-
                    (file (string-append dir "/MapCSSParser.jj")))
1782-
               (mkdir-p "src/org/openstreetmap/josm/gui/mappaint/mapcss/parsergen")
1783-
               (invoke "javacc" "-DEBUG_PARSER=false"
1784-
                       "-DEBUG_TOKEN_MANAGER=false" "-JDK_VERSION=1.8"
1785-
                       "-GRAMMAR_ENCODING=UTF-8"
1786-
                       (string-append "-OUTPUT_DIRECTORY=" out)
1787-
                       file))
1788-
             #t))
1789-
         (add-after 'build 'generate-epsg
1790-
           (lambda _
1791-
             (system* "javac" "scripts/BuildProjectionDefinitions.java"
1792-
                      "-cp" "build/classes")
1793-
             (mkdir-p "data/projection")
1794-
             (with-output-to-file "data/projection/custom-epsg"
1795-
               (lambda _ (display "")))
1796-
             (invoke "java" "-cp" "build/classes:scripts:."
1797-
                     "BuildProjectionDefinitions" ".")
1798-
             #t))
1799-
         (add-after 'generate-epsg 'copy-data
1800-
           (lambda _
1801-
             (mkdir-p "build/classes")
1802-
             (rename-file "data" "build/classes/data")
1803-
             #t))
1804-
         (add-before 'install 'regenerate-jar
1805-
           (lambda _
1806-
             ;; We need to regenerate the jar file to add data.
1807-
             (delete-file "build/jar/josm.jar")
1808-
             (invoke "jar" "-cf" "build/jar/josm.jar" "-C"
1809-
                     "build/classes" ".")
1810-
             #t))
1811-
         (add-before 'build 'copy-styles
1812-
           (lambda _
1813-
             (mkdir-p "build/classes")
1814-
             (rename-file "styles" "build/classes/styles")
1815-
             #t))
1816-
         (add-before 'build 'copy-images
1817-
           (lambda _
1818-
             (mkdir-p "build/classes")
1819-
             (rename-file "images" "build/classes/images")
1820-
             #t))
1821-
         (add-before 'build 'copy-revision
1822-
           (lambda _
1823-
             (mkdir-p "build/classes")
1824-
             (with-output-to-file "build/classes/REVISION"
1825-
               (lambda _
1826-
                 (display
1827-
                   (string-append "Revision: " ,version "\n"
1828-
                                  "Is-Local-Build: true\n"
1829-
                                  "Build-Date: 1970-01-01 00:00:00 +0000\n"))))
1830-
             #t))
1831-
         (add-after 'install 'install-bin
1832-
           (lambda* (#:key outputs inputs #:allow-other-keys)
1833-
             (let* ((out (assoc-ref outputs "out"))
1834-
                    (bin (string-append out "/bin")))
1835-
               (mkdir-p bin)
1836-
               (with-output-to-file (string-append bin "/josm")
1837-
                 (lambda _
1838-
                   (display
1839-
                     (string-append "#!/bin/sh\n"
1840-
                                    (assoc-ref inputs "jdk") "/bin/java"
1841-
                                    " -cp " out "/share/java/josm.jar:"
1842-
                                    (getenv "CLASSPATH")
1843-
                                    " org.openstreetmap.josm.gui.MainApplication"))))
1844-
               (chmod (string-append bin "/josm") #o755))
1845-
             #t)))))
1846-
    (home-page "https://josm.openstreetmap.de")
1847-
    (synopsis "OSM editor")
1848-
    (description "OSM editor.")
1849-
    (license license:gpl2+)))
1850-
18511485
(define-public java-jboss-annotations-api-spec
18521486
  (package
18531487
    (name "java-jboss-annotations-api-spec")

48614495
       ("java-commons-logging" ,java-commons-logging-minimal)
48624496
       ("java-jboss-transaction-api-spec" ,java-jboss-transaction-api-spec)))))
48634497
4864-
(define-public java-commons-jcs
4865-
  (package
4866-
    (name "java-commons-jcs")
4867-
    (version "2.2.1")
4868-
    (source (origin
4869-
              (method url-fetch)
4870-
              (uri (string-append "mirror://apache/commons/jcs/source/"
4871-
                                  "commons-jcs-dist-" version "-src.tar.gz"))
4872-
              (sha256
4873-
               (base32
4874-
                "0syhq2npjbrl0azqfjm0gvash1qd5qjy4qmysxcrqjsk0nf9fa1q"))))
4875-
    (build-system ant-build-system)
4876-
    (arguments
4877-
     `(#:jar-name "commons-jcs.jar"
4878-
       #:source-dir "commons-jcs-core/src/main/java"
4879-
       #:test-dir "commons-jcs-core/src/test"
4880-
       #:tests? #f; requires hsqldb
4881-
       #:phases
4882-
       (modify-phases %standard-phases
4883-
         (add-before 'build 'prepare
4884-
           (lambda _
4885-
             (substitute* "commons-jcs-core/src/main/java/org/apache/commons/jcs/auxiliary/disk/jdbc/dsfactory/SharedPoolDataSourceFactory.java"
4886-
                (("commons.dbcp") "commons.dbcp2")
4887-
                ((".*\\.setMaxActive.*") ""))
4888-
             ;;; Remove dependency on velocity-tools
4889-
             (delete-file "commons-jcs-core/src/main/java/org/apache/commons/jcs/admin/servlet/JCSAdminServlet.java")
4890-
             #t)))))
4891-
    (propagated-inputs
4892-
     `(("java-classpathx-servletapi" ,java-classpathx-servletapi)
4893-
       ("java-commons-logging-minimal" ,java-commons-logging-minimal)
4894-
       ("java-commons-httpclient" ,java-commons-httpclient)
4895-
       ("java-commons-dbcp" ,java-commons-dbcp2)))
4896-
    (native-inputs
4897-
     `(("java-junit" ,java-junit)))
4898-
    (home-page "https://commons.apache.org/proper/commons-jcs/")
4899-
    (synopsis "")
4900-
    (description "")
4901-
    (license license:asl2.0)))
4902-
49034498
(define-public java-portlet-api
49044499
  (package
49054500
    (name "java-portlet-api")

50114606
;    (description "")
50124607
;    (license license:x11)))
50134608
5014-
(define-public java-treelayout
5015-
  (package
5016-
    (name "java-treelayout")
5017-
    (version "1.0.3")
5018-
    (source (origin
5019-
              (method url-fetch)
5020-
              (uri (string-append
5021-
                     "https://github.com/abego/treelayout/archive/v" version
5022-
                     ".tar.gz"))
5023-
              (file-name (string-append name "-" version ".tar.gz"))
5024-
              (sha256
5025-
               (base32
5026-
                "04dp7hx84c955w5g4ry7kbjaz74appczia8fz5r8pydwhwzl8fgw"))))
5027-
    (build-system ant-build-system)
5028-
    (arguments
5029-
     `(#:jar-name (string-append ,name "-" ,version ".jar")
5030-
       #:source-dir "org.abego.treelayout/src/main/java"
5031-
       #:test-dir "org.abego.treelayout/src/test"))
5032-
    (inputs
5033-
     `(("java-junit" ,java-junit)))
5034-
    (native-inputs
5035-
     `(("java-hamcrest-core" ,java-hamcrest-core)))
5036-
    (home-page "http://treelayout.sourceforge.net")
5037-
    (synopsis "")
5038-
    (description "")
5039-
    (license license:bsd-3)))
5040-
50414609
; propose update
50424610
;(define-public java-jsr305
50434611
;  (package

50624630
;    (description "")
50634631
;    (license license:bsd-3)))
50644632
5065-
(define-public java-jsr250
5066-
  (package
5067-
    (name "java-jsr250")
5068-
    (version "1.3")
5069-
    (source (origin
5070-
              (method url-fetch)
5071-
              (uri (string-append "https://repo1.maven.org/maven2/"
5072-
                                  "javax/annotation/javax.annotation-api/"
5073-
                                  version "/javax.annotation-api-"
5074-
                                  version "-sources.jar"))
5075-
              (sha256
5076-
               (base32
5077-
                "08clh8n4n9wfglf75qsqfjs6yf79f7x6hqx38cn856pksszv50kz"))))
5078-
    (build-system ant-build-system)
5079-
    (arguments
5080-
     `(#:tests? #f ; no tests included
5081-
       #:jar-name "jsr250.jar"))
5082-
    (home-page "https://jcp.org/en/jsr/detail?id=250")
5083-
    (synopsis "Security-related annotations")
5084-
    (description "This package provides annotations for security.  It provides
5085-
packages in the @code{javax.annotation} and @code{javax.annotation.security}
5086-
namespaces.")
5087-
    (license (list license:cddl1.0 license:gpl2)))); gpl2 only, with classpath exception
5088-
50894633
(define-public java-jsr308-langtools
50904634
  (package
50914635
    (name "java-jsr308-langtools")