finish netty-common
more/packages/java.scm
731 | 731 | (with-fluids ((%default-port-encoding "ISO-8859-1")) | |
732 | 732 | (substitute* '("visitclass/PreorderVisitor.java" | |
733 | 733 | "StackMapAnalyzer.java" | |
734 | - | "classfile/engine/ClassParserUsingASM.java") | |
734 | + | "classfile/engine/ClassParserUsingASM.java") | |
735 | 735 | ;; The two classes were merged in the latter | |
736 | 736 | (("StackMapTable") "StackMap") | |
737 | - | (("Constants") "Const") | |
738 | - | (("Const2") "Constants2") | |
739 | - | (("getByteCodeOffsetDelta") "getByteCodeOffset")) | |
740 | - | (substitute* "detect/DumbMethods.java" | |
741 | - | (("import org.apache.bcel.classfile.Attribute;") | |
742 | - | "import org.apache.bcel.classfile.Attribute; | |
737 | + | (("Constants") "Const") | |
738 | + | (("Const2") "Constants2") | |
739 | + | (("getByteCodeOffsetDelta") "getByteCodeOffset")) | |
740 | + | (substitute* "detect/DumbMethods.java" | |
741 | + | (("import org.apache.bcel.classfile.Attribute;") | |
742 | + | "import org.apache.bcel.classfile.Attribute; | |
743 | 743 | import org.apache.bcel.Const;") | |
744 | - | (("MAJOR_1") "Const.MAJOR_1")) | |
744 | + | (("MAJOR_1") "Const.MAJOR_1")) | |
745 | 745 | (substitute* "ba/AbstractFrameModelingVisitor.java" | |
746 | 746 | (("VisitorSupportsInvokeDynamic") "Visitor")) | |
747 | - | (substitute* "xml/XMLUtil.java" | |
748 | - | (("<T> List<T>") "List<Node>")) | |
747 | + | (substitute* "xml/XMLUtil.java" | |
748 | + | (("<T> List<T>") "List<Node>")) | |
749 | 749 | (substitute* "visitclass/PreorderVisitor.java" | |
750 | 750 | (("import org.apache.bcel.classfile.Attribute;") | |
751 | 751 | "import org.apache.bcel.classfile.Attribute; | |
… | |||
843 | 843 | (version "3.1.6") | |
844 | 844 | (source (origin | |
845 | 845 | (method url-fetch) | |
846 | - | (uri (string-append "https://github.com/spotbugs/spotbugs/archive/" | |
847 | - | version ".tar.gz")) | |
846 | + | (uri (string-append "https://github.com/spotbugs/spotbugs/archive/" | |
847 | + | version ".tar.gz")) | |
848 | 848 | (sha256 | |
849 | 849 | (base32 | |
850 | 850 | "198gzk2vs4id90fxgpida51ygwpb31xwkv6lf91kgmvqcsknf6y4")) | |
… | |||
877 | 877 | #:jdk ,icedtea-8 | |
878 | 878 | #:phases | |
879 | 879 | (modify-phases %standard-phases | |
880 | - | (add-before 'build 'remove-osx | |
881 | - | (lambda _ | |
882 | - | ;; Requires AppleJavaExtensions.jar (com.apple.eawt.*) | |
883 | - | (delete-file "spotbugs/src/gui/edu/umd/cs/findbugs/gui2/OSXAdapter.java") | |
884 | - | #t))))) | |
880 | + | (add-before 'build 'remove-osx | |
881 | + | (lambda _ | |
882 | + | ;; Requires AppleJavaExtensions.jar (com.apple.eawt.*) | |
883 | + | (delete-file "spotbugs/src/gui/edu/umd/cs/findbugs/gui2/OSXAdapter.java") | |
884 | + | #t))))) | |
885 | 885 | (inputs | |
886 | 886 | `(("java-asm" ,java-asm) | |
887 | 887 | ("java-commons-bcel" ,java-commons-bcel) | |
… | |||
1005 | 1005 | (commit "1f6020a3f17d9d88dfd54a31370e91e3361c216b"))) | |
1006 | 1006 | (sha256 | |
1007 | 1007 | (base32 | |
1008 | - | "1cpg9j86ckp5cmxlisfr4xr4i4v983xj2mkk0pkbygk3qarjfb88")))))) | |
1009 | - | ||
1008 | + | "1cpg9j86ckp5cmxlisfr4xr4i4v983xj2mkk0pkbygk3qarjfb88")))) | |
1009 | + | (arguments | |
1010 | + | `(#:jar-name "asm.jar" | |
1011 | + | #:source-dir "asm/src/main/java" | |
1012 | + | #:test-dir "asm/src/test" | |
1013 | + | ;; Tests require org.junit.jupiter | |
1014 | + | #:tests? #f)))) | |
1015 | + | ||
1016 | + | (define-public java-asm-tree-7 | |
1017 | + | (package | |
1018 | + | (inherit java-asm-7) | |
1019 | + | (name "java-asm-tree") | |
1020 | + | (arguments | |
1021 | + | `(#:jar-name "asm-tree.jar" | |
1022 | + | #:source-dir "asm-tree/src/main/java" | |
1023 | + | #:test-dir "asm-tree/src/test" | |
1024 | + | ;; Tests require org.junit.jupiter | |
1025 | + | #:tests? #f)) | |
1026 | + | (propagated-inputs | |
1027 | + | `(("java-asm-7" ,java-asm-7))))) | |
1028 | + | ||
1029 | + | (define-public java-asm-commons-7 | |
1030 | + | (package | |
1031 | + | (inherit java-asm-7) | |
1032 | + | (name "java-asm-commons") | |
1033 | + | (arguments | |
1034 | + | `(#:jar-name "asm-commons.jar" | |
1035 | + | #:source-dir "asm-commons/src/main/java" | |
1036 | + | #:test-dir "asm-commons/src/test" | |
1037 | + | ;; Tests require org.junit.jupiter | |
1038 | + | #:tests? #f)) | |
1039 | + | (propagated-inputs | |
1040 | + | `(("java-asm-tree-7" ,java-asm-tree-7))))) | |
1010 | 1041 | ||
1011 | 1042 | (define-public java-byte-buddy-dep | |
1012 | 1043 | (package | |
… | |||
1037 | 1068 | (("import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;") ""))) | |
1038 | 1069 | #t))))) | |
1039 | 1070 | (inputs | |
1040 | - | `(("java-asm-6" ,java-asm-6))) | |
1071 | + | `(("java-asm-commons-7" ,java-asm-commons-7))) | |
1041 | 1072 | (home-page "http://bytebuddy.net/") | |
1042 | 1073 | (synopsis "") | |
1043 | 1074 | (description "") | |
1044 | 1075 | (license license:asl2.0))) | |
1045 | 1076 | ||
1077 | + | (define-public java-byte-buddy-agent | |
1078 | + | (package | |
1079 | + | (inherit java-byte-buddy-dep) | |
1080 | + | (name "java-byte-buddy-agent") | |
1081 | + | (arguments | |
1082 | + | `(#:jar-name "byte-buddy-agent.jar" | |
1083 | + | #:source-dir "byte-buddy-agent/src/main/java" | |
1084 | + | #:test-dir "byte-buddy-agent/src/test" | |
1085 | + | #:test-exclude (list "**/VirtualMachineForHotSpotTest.*") | |
1086 | + | #:phases | |
1087 | + | (modify-phases %standard-phases | |
1088 | + | (add-before 'build 'remove-annotations | |
1089 | + | (lambda _ | |
1090 | + | (with-directory-excursion "byte-buddy-agent/src/main/java/net/bytebuddy" | |
1091 | + | (substitute* (find-files "." ".*.java") | |
1092 | + | (("@SuppressFBWarnings.*") "") | |
1093 | + | (("import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;") ""))) | |
1094 | + | #t))))) | |
1095 | + | (inputs | |
1096 | + | `(("java-junixsocket-common" ,java-junixsocket-common) | |
1097 | + | ,@(package-inputs java-byte-buddy-dep))) | |
1098 | + | (native-inputs | |
1099 | + | `(("java-byte-buddy-dep" ,java-byte-buddy-dep) | |
1100 | + | ("java-cglib" ,java-cglib) | |
1101 | + | ("java-hamcrest-core" ,java-hamcrest-core) | |
1102 | + | ("java-junit" ,java-junit) | |
1103 | + | ("java-mockito-1" ,java-mockito-1) | |
1104 | + | ("java-objenesis" ,java-objenesis))))) | |
1105 | + | ||
1106 | + | (define-public java-junixsocket-common | |
1107 | + | (package | |
1108 | + | (name "java-junixsocket-common") | |
1109 | + | (version "2.0.4") | |
1110 | + | (source (origin | |
1111 | + | (method url-fetch) | |
1112 | + | (uri (string-append "https://github.com/kohlschutter/junixsocket/archive/" | |
1113 | + | "junixsocket-parent-" version ".tar.gz")) | |
1114 | + | (sha256 | |
1115 | + | (base32 | |
1116 | + | "0c31qgry5pnhcnp3w62xb0ha0pic1d363rabn4fh8sdpmwnmakww")))) | |
1117 | + | (build-system ant-build-system) | |
1118 | + | (arguments | |
1119 | + | `(#:jar-name "junixsocket-common.jar" | |
1120 | + | #:source-dir "junixsocket-common/src/main/java" | |
1121 | + | #:tests? #f));no tests | |
1122 | + | (home-page "") | |
1123 | + | (synopsis "") | |
1124 | + | (description "") | |
1125 | + | (license license:asl2.0))) | |
1126 | + | ||
1046 | 1127 | (define-public java-intellij-annotation | |
1047 | 1128 | (package | |
1048 | 1129 | (name "java-intellij-annotation") | |
… | |||
1697 | 1778 | (inherit javacc) | |
1698 | 1779 | (version "6.1.3") | |
1699 | 1780 | (source (origin | |
1700 | - | (method url-fetch) | |
1701 | - | (uri (string-append "https://github.com/javacc/javacc/archive/release_" | |
1781 | + | (method url-fetch) | |
1782 | + | (uri (string-append "https://github.com/javacc/javacc/archive/release_" | |
1702 | 1783 | (string-map (lambda (x) (if (char=? x #\.) #\_ x)) version) | |
1703 | - | ".tar.gz")) | |
1784 | + | ".tar.gz")) | |
1704 | 1785 | (sha256 | |
1705 | 1786 | (base32 | |
1706 | 1787 | "03xpipk365szfzrab7divlr1i1r58j1hh47mhj5cpj1kv9zc2p6c")))) | |
… | |||
1708 | 1789 | `(#:tests? #f | |
1709 | 1790 | #:phases | |
1710 | 1791 | (modify-phases %standard-phases | |
1711 | - | (add-after 'unpack 'delete-bundled-libs | |
1712 | - | (lambda _ | |
1713 | - | (delete-file-recursively "lib") | |
1714 | - | #t)) | |
1715 | - | (replace 'install (install-jars "target"))))) | |
1792 | + | (add-after 'unpack 'delete-bundled-libs | |
1793 | + | (lambda _ | |
1794 | + | (delete-file-recursively "lib") | |
1795 | + | #t)) | |
1796 | + | (replace 'install (install-jars "target"))))) | |
1716 | 1797 | (native-inputs | |
1717 | 1798 | `(("java-junit" ,java-junit))))) | |
1718 | 1799 | ||
… | |||
1809 | 1890 | (copy-recursively "src/main/resources" "build/classes") | |
1810 | 1891 | #t)) | |
1811 | 1892 | (add-before 'build 'remove-unpackaged-dependencies | |
1812 | - | ;; TODO: package these dependencies | |
1813 | - | (lambda _ | |
1814 | - | (delete-file-recursively "src/main/java/freemarker/ext/jython") | |
1893 | + | ;; TODO: package these dependencies | |
1894 | + | (lambda _ | |
1895 | + | (delete-file-recursively "src/main/java/freemarker/ext/jython") | |
1815 | 1896 | (delete-file "src/test/java/freemarker/core/ObjectBuilderSettingsTest.java") | |
1816 | - | (delete-file-recursively "src/main/java/freemarker/ext/rhino") | |
1817 | - | ;; This class depends on javareble, a non-free package | |
1818 | - | (delete-file "src/main/java/freemarker/ext/beans/JRebelClassChangeNotifier.java") | |
1819 | - | (delete-file "src/main/java/freemarker/ext/ant/UnlinkedJythonOperationsImpl.java") | |
1820 | - | (delete-file "src/main/java/freemarker/template/utility/JythonRuntime.java") | |
1821 | - | #t)) | |
1897 | + | (delete-file-recursively "src/main/java/freemarker/ext/rhino") | |
1898 | + | ;; This class depends on javareble, a non-free package | |
1899 | + | (delete-file "src/main/java/freemarker/ext/beans/JRebelClassChangeNotifier.java") | |
1900 | + | (delete-file "src/main/java/freemarker/ext/ant/UnlinkedJythonOperationsImpl.java") | |
1901 | + | (delete-file "src/main/java/freemarker/template/utility/JythonRuntime.java") | |
1902 | + | #t)) | |
1822 | 1903 | (add-before 'build 'update-jsp | |
1823 | 1904 | (lambda _ | |
1824 | 1905 | (substitute* "src/main/java/freemarker/ext/jsp/FreeMarkerJspFactory.java" | |
… | |||
1845 | 1926 | ||
1846 | 1927 | import javax.el.ELContext;")) | |
1847 | 1928 | #t)) | |
1848 | - | (add-before 'build 'run-javacc | |
1849 | - | (lambda _ | |
1850 | - | (invoke "java" "-cp" (getenv "CLASSPATH") "javacc" | |
1851 | - | "-OUTPUT_DIRECTORY=src/main/java/freemarker/core" | |
1852 | - | "src/main/javacc/FTL.jj") | |
1853 | - | #t))))) | |
1929 | + | (add-before 'build 'run-javacc | |
1930 | + | (lambda _ | |
1931 | + | (invoke "java" "-cp" (getenv "CLASSPATH") "javacc" | |
1932 | + | "-OUTPUT_DIRECTORY=src/main/java/freemarker/core" | |
1933 | + | "src/main/javacc/FTL.jj") | |
1934 | + | #t))))) | |
1854 | 1935 | (inputs | |
1855 | 1936 | `(("java-avalon-logkit" ,java-avalon-logkit) | |
1856 | 1937 | ("java-commons-jxpath" ,java-commons-jxpath) | |
… | |||
4866 | 4947 | (version "1.2.6") | |
4867 | 4948 | (source (origin | |
4868 | 4949 | (method url-fetch) | |
4869 | - | (uri (string-append "https://www.cs.princeton.edu/~appel/modern/" | |
4870 | - | "java/JLex/Archive/" version "/Main.java")) | |
4950 | + | (uri (string-append "https://www.cs.princeton.edu/~appel/modern/" | |
4951 | + | "java/JLex/Archive/" version "/Main.java")) | |
4871 | 4952 | (sha256 | |
4872 | 4953 | (base32 | |
4873 | 4954 | "1msblmsgzij3z9pwm7gff1q2cv1q802q23xsn0mrflrs7g7axsxf")))) | |
… | |||
4876 | 4957 | `(#:tests? #f; no tests | |
4877 | 4958 | #:phases | |
4878 | 4959 | (modify-phases %standard-phases | |
4879 | - | (delete 'unpack) | |
4880 | - | (delete 'configure) | |
4881 | - | (replace 'build | |
4882 | - | (lambda* (#:key inputs #:allow-other-keys) | |
4883 | - | (mkdir "JLex") | |
4884 | - | (copy-file (assoc-ref inputs "source") "Main.java") | |
4885 | - | (invoke "javac" "Main.java" "-d" ".") | |
4886 | - | (apply invoke "jar" "cf" "jlex.jar" (find-files "." ".*.class"));"JLex/Main.class") | |
4887 | - | #t)) | |
4888 | - | (replace 'install | |
4889 | - | (install-jars "."))))) | |
4960 | + | (delete 'unpack) | |
4961 | + | (delete 'configure) | |
4962 | + | (replace 'build | |
4963 | + | (lambda* (#:key inputs #:allow-other-keys) | |
4964 | + | (mkdir "JLex") | |
4965 | + | (copy-file (assoc-ref inputs "source") "Main.java") | |
4966 | + | (invoke "javac" "Main.java" "-d" ".") | |
4967 | + | (apply invoke "jar" "cf" "jlex.jar" (find-files "." ".*.class"));"JLex/Main.class") | |
4968 | + | #t)) | |
4969 | + | (replace 'install | |
4970 | + | (install-jars "."))))) | |
4890 | 4971 | (home-page "https://jflex.de") | |
4891 | 4972 | (synopsis "") | |
4892 | 4973 | (description "") | |
… | |||
6343 | 6424 | (arguments | |
6344 | 6425 | `(#:jar-name "mockito.jar" | |
6345 | 6426 | #:source-dir "src/main/java" | |
6427 | + | #:tests? #f; Some compilation errors | |
6346 | 6428 | #:phases | |
6347 | 6429 | (modify-phases %standard-phases | |
6348 | 6430 | (add-before 'build 'use-system-asm | |
… | |||
6350 | 6432 | (substitute* "src/main/java/org/mockito/internal/creation/bytebuddy/InlineBytecodeGenerator.java" | |
6351 | 6433 | (("net.bytebuddy.jar.asm") "org.objectweb.asm")) | |
6352 | 6434 | #t))))) | |
6353 | - | (inputs | |
6435 | + | (propagated-inputs | |
6354 | 6436 | `(("java-asm" ,java-asm) | |
6437 | + | ("java-byte-buddy-agent" ,java-byte-buddy-agent) | |
6355 | 6438 | ("java-byte-buddy-dep" ,java-byte-buddy-dep) | |
6356 | 6439 | ("java-hamcrest-core" ,java-hamcrest-core) | |
6357 | 6440 | ("java-junit" ,java-junit) | |
6358 | 6441 | ("java-objenesis" ,java-objenesis))) | |
6442 | + | (native-inputs | |
6443 | + | `(("java-assertj" ,java-assertj))) | |
6359 | 6444 | (home-page "https://mockito.org/") | |
6360 | 6445 | (synopsis "") | |
6361 | 6446 | (description "") | |
… | |||
6376 | 6461 | (arguments | |
6377 | 6462 | `(#:jar-name "netty-common.jar" | |
6378 | 6463 | #:source-dir "common/src/main/java" | |
6379 | - | #:test-dir "common/src/test")) | |
6464 | + | #:test-dir "common/src/test" | |
6465 | + | ;; Weird issue with log4j | |
6466 | + | #:test-exclude (list "**/Abstract*.*" | |
6467 | + | "**/Log4JLoggerFactoryTest.*"))) | |
6380 | 6468 | (inputs | |
6381 | 6469 | `(("java-commons-logging-minimal" ,java-commons-logging-minimal) | |
6382 | 6470 | ("java-jctools-core" ,java-jctools-core) | |
… | |||
6387 | 6475 | (native-inputs | |
6388 | 6476 | `(("java-hamcrest-all" ,java-hamcrest-all) | |
6389 | 6477 | ("java-junit" ,java-junit) | |
6390 | - | ("java-mockito" ,java-mockito))) | |
6478 | + | ("java-mockito" ,java-mockito) | |
6479 | + | ("java-slf4j-simple" ,java-slf4j-simple))) | |
6391 | 6480 | (home-page "https://netty.io/") | |
6392 | 6481 | (synopsis "") | |
6393 | 6482 | (description "") |