Build log4j 2.8
more/packages/java.scm
| 45 | 45 | #:use-module (gnu packages linux) | |
| 46 | 46 | #:use-module (gnu packages maven) | |
| 47 | 47 | #:use-module (gnu packages perl) | |
| 48 | + | #:use-module (gnu packages protobuf) | |
| 48 | 49 | #:use-module (gnu packages version-control) | |
| 49 | 50 | #:use-module (gnu packages web) | |
| 50 | 51 | #:use-module (gnu packages xml) | |
… | |||
| 3330 | 3331 | (copy-recursively "src/test/resources" "build/test-classes") | |
| 3331 | 3332 | #t))))) | |
| 3332 | 3333 | (inputs | |
| 3333 | - | `(;("java-netty" ,java-netty) | |
| 3334 | + | `(("java-nethandlerr" ,java-netty-handler) | |
| 3335 | + | ("java-netty-transport" ,java-netty-transport) | |
| 3334 | 3336 | ("java-spring-framework-beans" ,java-spring-framework-beans) | |
| 3335 | 3337 | ("java-spring-framework-core" ,java-spring-framework-core) | |
| 3336 | 3338 | ("java-httpcomponents-httpasyncclient" ,java-httpcomponents-httpasyncclient) | |
… | |||
| 6446 | 6448 | (description "") | |
| 6447 | 6449 | (license license:asl2.0))) | |
| 6448 | 6450 | ||
| 6451 | + | (define-public java-protobuf | |
| 6452 | + | (package | |
| 6453 | + | (name "java-protobuf") | |
| 6454 | + | (version (package-version protobuf)) | |
| 6455 | + | (source (origin | |
| 6456 | + | (method url-fetch) | |
| 6457 | + | (uri (string-append "https://github.com/google/protobuf/releases/" | |
| 6458 | + | "download/v" version "/protobuf-java-" | |
| 6459 | + | version ".tar.gz")) | |
| 6460 | + | (sha256 | |
| 6461 | + | (base32 | |
| 6462 | + | "1mvbibm8p1cdbaf5frql406ipgm56k0ygilswn633jg9qz2n69sc")))) | |
| 6463 | + | (build-system ant-build-system) | |
| 6464 | + | (arguments | |
| 6465 | + | `(#:jar-name "protobuf.jar" | |
| 6466 | + | #:source-dir "java/core/src/main/java" | |
| 6467 | + | #:tests? #f | |
| 6468 | + | #:phases | |
| 6469 | + | (modify-phases %standard-phases | |
| 6470 | + | (add-before 'build 'build-DescriptorProtos.java | |
| 6471 | + | (lambda _ | |
| 6472 | + | (invoke "protoc" "--java_out=java/core/src/main/java" "-Isrc" | |
| 6473 | + | "src/google/protobuf/descriptor.proto") | |
| 6474 | + | #t))))) | |
| 6475 | + | (inputs | |
| 6476 | + | `(("java-guava" ,java-guava))) | |
| 6477 | + | (native-inputs | |
| 6478 | + | `(("protobuf" ,protobuf))) | |
| 6479 | + | (home-page (package-home-page protobuf)) | |
| 6480 | + | (synopsis "") | |
| 6481 | + | (description "") | |
| 6482 | + | (license license:bsd-3))) | |
| 6483 | + | ||
| 6484 | + | (define-public java-jzlib | |
| 6485 | + | (package | |
| 6486 | + | (name "java-jzlib") | |
| 6487 | + | (version "1.1.3") | |
| 6488 | + | (source (origin | |
| 6489 | + | (method url-fetch) | |
| 6490 | + | (uri (string-append "https://github.com/ymnk/jzlib/archive/" | |
| 6491 | + | version ".tar.gz")) | |
| 6492 | + | (sha256 | |
| 6493 | + | (base32 | |
| 6494 | + | "1i0fplk22dlyaz3id0d8hb2wlsl36w9ggbvsq67sx77y0mi6bnl3")))) | |
| 6495 | + | (build-system ant-build-system) | |
| 6496 | + | (arguments | |
| 6497 | + | `(#:jar-name "jzlib.jar" | |
| 6498 | + | #:source-dir "src/main/java" | |
| 6499 | + | #:tests? #f)) | |
| 6500 | + | (home-page "") | |
| 6501 | + | (synopsis "") | |
| 6502 | + | (description "") | |
| 6503 | + | (license license:bsd-3))) | |
| 6504 | + | ||
| 6449 | 6505 | (define-public java-netty-common | |
| 6450 | 6506 | (package | |
| 6451 | 6507 | (name "java-netty-common") | |
… | |||
| 6481 | 6537 | (synopsis "") | |
| 6482 | 6538 | (description "") | |
| 6483 | 6539 | (license license:asl2.0))) | |
| 6540 | + | ||
| 6541 | + | (define-public java-netty-buffer | |
| 6542 | + | (package | |
| 6543 | + | (inherit java-netty-common) | |
| 6544 | + | (name "java-netty-buffer") | |
| 6545 | + | (arguments | |
| 6546 | + | `(#:jar-name "netty-buffer.jar" | |
| 6547 | + | #:source-dir "buffer/src/main/java" | |
| 6548 | + | #:test-dir "buffer/src/test" | |
| 6549 | + | #:test-exclude (list "**/Abstract*.*" | |
| 6550 | + | "**/ByteBufAllocatorTest.*"))) | |
| 6551 | + | (inputs | |
| 6552 | + | `(("java-netty-common" ,java-netty-common) | |
| 6553 | + | ,@(package-inputs java-netty-common))))) | |
| 6554 | + | ||
| 6555 | + | (define-public java-netty-resolver | |
| 6556 | + | (package | |
| 6557 | + | (inherit java-netty-common) | |
| 6558 | + | (name "java-netty-resolver") | |
| 6559 | + | (arguments | |
| 6560 | + | `(#:jar-name "netty-resolver.jar" | |
| 6561 | + | #:source-dir "resolver/src/main/java" | |
| 6562 | + | #:test-dir "resolver/src/test")) | |
| 6563 | + | (inputs | |
| 6564 | + | `(("java-netty-common" ,java-netty-common) | |
| 6565 | + | ,@(package-inputs java-netty-common))))) | |
| 6566 | + | ||
| 6567 | + | (define-public java-netty-transport | |
| 6568 | + | (package | |
| 6569 | + | (inherit java-netty-common) | |
| 6570 | + | (name "java-netty-transport") | |
| 6571 | + | (arguments | |
| 6572 | + | `(#:jar-name "netty-transport.jar" | |
| 6573 | + | #:source-dir "transport/src/main/java" | |
| 6574 | + | #:test-dir "transport/src/test" | |
| 6575 | + | ;; reference to assertEquals is ambiguous | |
| 6576 | + | #:tests? #f)) | |
| 6577 | + | (inputs | |
| 6578 | + | `(("java-netty-buffer" ,java-netty-buffer) | |
| 6579 | + | ("java-netty-common" ,java-netty-common) | |
| 6580 | + | ("java-netty-resolver" ,java-netty-resolver) | |
| 6581 | + | ,@(package-inputs java-netty-common))) | |
| 6582 | + | (native-inputs | |
| 6583 | + | `(("java-logback-classic" ,java-logback-classic) | |
| 6584 | + | ("java-logback-core" ,java-logback-core) | |
| 6585 | + | ,@(package-native-inputs java-netty-common))))) | |
| 6586 | + | ||
| 6587 | + | (define-public java-netty-codec | |
| 6588 | + | (package | |
| 6589 | + | (inherit java-netty-common) | |
| 6590 | + | (name "java-netty-codec") | |
| 6591 | + | (arguments | |
| 6592 | + | `(#:jar-name "netty-codec.jar" | |
| 6593 | + | #:source-dir "codec/src/main/java" | |
| 6594 | + | #:test-dir "codec/src/test")) | |
| 6595 | + | (inputs | |
| 6596 | + | `(("java-netty-buffer" ,java-netty-buffer) | |
| 6597 | + | ("java-netty-common" ,java-netty-common) | |
| 6598 | + | ("java-netty-transport" ,java-netty-transport) | |
| 6599 | + | ("java-lz4" ,java-lz4) | |
| 6600 | + | ("java-jzlib" ,java-jzlib) | |
| 6601 | + | ("java-protobuf" ,java-protobuf) | |
| 6602 | + | ,@(package-inputs java-netty-common))))) | |
| 6603 | + | ||
| 6604 | + | (define-public java-netty-handler | |
| 6605 | + | (package | |
| 6606 | + | (inherit java-netty-common) | |
| 6607 | + | (name "java-netty-handler") | |
| 6608 | + | (arguments | |
| 6609 | + | `(#:jar-name "netty-handler.jar" | |
| 6610 | + | #:source-dir "handler/src/main/java" | |
| 6611 | + | #:test-dir "handler/src/test")) | |
| 6612 | + | (inputs | |
| 6613 | + | `(("java-netty-buffer" ,java-netty-buffer) | |
| 6614 | + | ("java-netty-common" ,java-netty-common) | |
| 6615 | + | ("java-netty-transport" ,java-netty-transport) | |
| 6616 | + | ("java-bouncycastle" ,java-bouncycastle) | |
| 6617 | + | ,@(package-inputs java-netty-common))))) | |
| 6618 | + | ||
| 6619 | + | (define-public java-conversantmedia-disruptor | |
| 6620 | + | (package | |
| 6621 | + | (name "java-conversantmedia-disruptor") | |
| 6622 | + | (version "1.2.14") | |
| 6623 | + | (source (origin | |
| 6624 | + | (method url-fetch) | |
| 6625 | + | (uri (string-append "https://github.com/conversant/disruptor/archive/" version ".tar.gz")) | |
| 6626 | + | (sha256 | |
| 6627 | + | (base32 | |
| 6628 | + | "0sbr6bcsawzfzwcxxlyh6lqqlqd09qld0xika9dhd01kxl60srwb")))) | |
| 6629 | + | (build-system ant-build-system) | |
| 6630 | + | (arguments | |
| 6631 | + | `(#:jar-name "conversantmedia-disruptor.jar" | |
| 6632 | + | #:source-dir "src/main/java" | |
| 6633 | + | #:test-dir "src/test")) | |
| 6634 | + | (inputs | |
| 6635 | + | `(("java-slf4j-api" ,java-slf4j-api))) | |
| 6636 | + | (native-inputs | |
| 6637 | + | `(("java-hamcrest-core" ,java-hamcrest-core) | |
| 6638 | + | ("java-junit" ,java-junit))) | |
| 6639 | + | (home-page "") | |
| 6640 | + | (synopsis "") | |
| 6641 | + | (description "") | |
| 6642 | + | (license license:asl2.0))) | |
more/packages/scala.scm
| 28 | 28 | #:use-module (gnu packages base) | |
| 29 | 29 | #:use-module (gnu packages bash) | |
| 30 | 30 | #:use-module (gnu packages compression) | |
| 31 | - | #:use-module (gnu packages java)) | |
| 31 | + | #:use-module (gnu packages java) | |
| 32 | + | #:use-module (more packages java)) | |
| 32 | 33 | ||
| 33 | 34 | ;; This package downloads the so-called official version of scala, a pre-built | |
| 34 | 35 | ;; binary by the scala developers. | |
… | |||
| 189 | 190 | (description "") | |
| 190 | 191 | (license license:asl2.0))) | |
| 191 | 192 | ||
| 193 | + | ;; TODO: https://github.com/mdedetrich/scalajson | |
| 194 | + | (define-public scala-sjsonnew-support-scalajson | |
| 195 | + | (package | |
| 196 | + | (inherit scala-sjsonnew) | |
| 197 | + | (name "scala-sjsonnew-support-scalajson") | |
| 198 | + | (arguments | |
| 199 | + | `(#:tests? #f | |
| 200 | + | #:phases | |
| 201 | + | (modify-phases %standard-phases | |
| 202 | + | (replace 'build | |
| 203 | + | (lambda _ | |
| 204 | + | (mkdir-p "build/classes") | |
| 205 | + | (apply invoke "scalac" "-classpath" (getenv "CLASSPATH") | |
| 206 | + | "-d" "build/classes" | |
| 207 | + | (find-files "support/scalajson/src/main/scala" ".*.scala$")) | |
| 208 | + | (mkdir-p "build/jar") | |
| 209 | + | (invoke "jar" "-cf" "build/jar/sjsonnew-support-scalajson.jar" | |
| 210 | + | "-C" "build/classes" ".") | |
| 211 | + | #t)) | |
| 212 | + | (replace 'install | |
| 213 | + | (install-jars "build"))))) | |
| 214 | + | (inputs | |
| 215 | + | `(("scala-sjsonnew" ,scala-sjsonnew))))) | |
| 216 | + | ||
| 192 | 217 | (define-public scala-kind-projector | |
| 193 | 218 | (package | |
| 194 | 219 | (name "scala-kind-projector") | |
… | |||
| 328 | 353 | ;(version "2.11.1") | |
| 329 | 354 | (arguments | |
| 330 | 355 | (ensure-keyword-arguments (package-arguments java-log4j-api) | |
| 331 | - | `(#:jdk ,icedtea-7))) | |
| 356 | + | `(#:jdk ,icedtea-8 | |
| 357 | + | #:source-dir "src/main/java" | |
| 358 | + | #:phases | |
| 359 | + | (modify-phases %standard-phases | |
| 360 | + | (add-after 'unpack 'chdir | |
| 361 | + | (lambda _ | |
| 362 | + | (chdir "log4j-api") | |
| 363 | + | #t)) | |
| 364 | + | (add-before 'build 'fix-ambiguous | |
| 365 | + | (lambda _ | |
| 366 | + | (substitute* "src/main/java/org/apache/logging/log4j/message/MapMessage.java" | |
| 367 | + | (("append\\(data") "append((CharSequence)data")) | |
| 368 | + | #t)))))) | |
| 332 | 369 | (source (origin | |
| 333 | 370 | (method url-fetch) | |
| 334 | 371 | (uri (string-append "mirror://apache/logging/log4j/" version | |
… | |||
| 350 | 387 | ("java-mail" ,java-mail) | |
| 351 | 388 | ("java-jansi" ,java-jansi) | |
| 352 | 389 | ("java-jboss-jms-api-spec" ,java-jboss-jms-api-spec) | |
| 390 | + | ("java-jctools-core" ,java-jctools-core) | |
| 353 | 391 | ("java-lmax-disruptor" ,java-lmax-disruptor) | |
| 354 | 392 | ("java-kafka" ,java-kafka-clients) | |
| 355 | 393 | ("java-datanucleus-javax-persistence" ,java-datanucleus-javax-persistence) | |
… | |||
| 360 | 398 | ("java-fasterxml-jackson-dataformat-yaml" ,java-fasterxml-jackson-dataformat-yaml) | |
| 361 | 399 | ("java-commons-compress" ,java-commons-compress) | |
| 362 | 400 | ("java-commons-csv" ,java-commons-csv) | |
| 401 | + | ("java-conversantmedia-disruptor" ,java-conversantmedia-disruptor) | |
| 402 | + | ("java-jcommander" ,java-jcommander) | |
| 403 | + | ("java-stax2-api" ,java-stax2-api) | |
| 363 | 404 | ("java-jeromq" ,java-jeromq) | |
| 364 | 405 | ("java-junit" ,java-junit))) | |
| 365 | 406 | (native-inputs | |
… | |||
| 379 | 420 | #:phases | |
| 380 | 421 | (modify-phases %standard-phases | |
| 381 | 422 | (add-after 'unpack 'enter-dir | |
| 382 | - | (lambda _ (chdir "log4j-core") #t))))) | |
| 423 | + | (lambda _ (chdir "log4j-core") #t)) | |
| 424 | + | (add-before 'build 'fix-ambiguous | |
| 425 | + | (lambda _ | |
| 426 | + | (substitute* "src/main/java/org/apache/logging/log4j/core/pattern/MapPatternConverter.java" | |
| 427 | + | (("append\\(sortedMap") "append((CharSequence)sortedMap")) | |
| 428 | + | #t))))) | |
| 383 | 429 | (synopsis "Core component of the Log4j framework") | |
| 384 | 430 | (description "This package provides the core component of the Log4j | |
| 385 | 431 | logging framework for Java."))) | |