[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
36/50: gnu: drip: Move it below the Java bootstrap packages.
From: |
guix-commits |
Subject: |
36/50: gnu: drip: Move it below the Java bootstrap packages. |
Date: |
Thu, 23 Dec 2021 12:52:39 -0500 (EST) |
rekado pushed a commit to branch wip-java-bootstrap-simplify
in repository guix.
commit bb147ba87dd7ee47342cd5d0e96762621e150586
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Sat Dec 18 22:18:46 2021 +0100
gnu: drip: Move it below the Java bootstrap packages.
* gnu/packages/java.scm (drip): Move definition down.
---
gnu/packages/java.scm | 116 +++++++++++++++++++++++++-------------------------
1 file changed, 58 insertions(+), 58 deletions(-)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index fc78a8a..19c825a 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -163,64 +163,6 @@ defined in The Java Language Specification into the
bytecoded instruction set
and binary format defined in The Java Virtual Machine Specification.")
(license license:ibmpl1.0)))
-(define-public drip
- ;; Last release is from 2014, with a few important commits afterwards.
- (let ((commit "a4bd00df0199e78243847f06cc04ecaea31f8f08"))
- (package
- (name "drip")
- (version (git-version "0.2.4" "1" commit))
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/ninjudd/drip")
- (commit commit)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0wzmjwfyldr3jn49517xd8yn7dgdk8h88qkga3kjyg1zc375ylg2"))))
- (build-system gnu-build-system)
- (native-inputs
- `(("jdk" ,icedtea "jdk")))
- (arguments
- `(#:tests? #f ; No tests.
- #:phases
- (modify-phases %standard-phases
- (delete 'configure)
- (add-before 'install 'fix-wrapper
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((jps (search-input-file inputs "/bin/jps")))
- (substitute* "bin/drip"
- (("jps") jps)
- (("brew update && brew upgrade drip") "guix pull && guix
install drip")
- ;; No need to make:
- (("\\(cd -- \"\\$drip_dir\" && make -s\\) \\|\\| exit 1")
"")
- ;; No need to include source:
- (("\\[\\[ -r \\$drip_dir/src/org/flatland/drip/Main\\.java
\\]\\]")
- "true"))
- #t)))
- (replace 'install
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (bin (string-append out "/bin"))
- (share (string-append out "/share/drip")))
- (mkdir-p bin)
- (for-each
- (lambda (file)
- (install-file (string-append "bin/" file) bin))
- '("drip" "drip_daemon" "drip_proxy"))
- (install-file "drip.jar" share)
- (substitute* (string-append bin "/drip")
- (("drip_dir=\\$bin_dir/..")
- (string-append "drip_dir=" share)))
- #t))))))
- (home-page "https://github.com/ninjudd/drip")
- (synopsis "Faster Java Virtual Machine launching")
- (description "Drip is a launcher for the Java Virtual Machine that
-provides much faster startup times than the @command{java} command. The
@command{drip}
-script is intended to be a drop-in replacement for the @command{java} command,
-only faster.")
- (license license:epl1.0))))
-
;; This is the last version of GNU Classpath that can be built without ECJ.
(define classpath-bootstrap
(package
@@ -2478,6 +2420,64 @@ new Date();"))
(modify-inputs (package-inputs ant/java8)
(prepend java-junit)))))
+(define-public drip
+ ;; Last release is from 2014, with a few important commits afterwards.
+ (let ((commit "a4bd00df0199e78243847f06cc04ecaea31f8f08"))
+ (package
+ (name "drip")
+ (version (git-version "0.2.4" "1" commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/ninjudd/drip")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0wzmjwfyldr3jn49517xd8yn7dgdk8h88qkga3kjyg1zc375ylg2"))))
+ (build-system gnu-build-system)
+ (native-inputs
+ `(("jdk" ,icedtea "jdk")))
+ (arguments
+ `(#:tests? #f ; No tests.
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure)
+ (add-before 'install 'fix-wrapper
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((jps (search-input-file inputs "/bin/jps")))
+ (substitute* "bin/drip"
+ (("jps") jps)
+ (("brew update && brew upgrade drip") "guix pull && guix
install drip")
+ ;; No need to make:
+ (("\\(cd -- \"\\$drip_dir\" && make -s\\) \\|\\| exit 1")
"")
+ ;; No need to include source:
+ (("\\[\\[ -r \\$drip_dir/src/org/flatland/drip/Main\\.java
\\]\\]")
+ "true"))
+ #t)))
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (bin (string-append out "/bin"))
+ (share (string-append out "/share/drip")))
+ (mkdir-p bin)
+ (for-each
+ (lambda (file)
+ (install-file (string-append "bin/" file) bin))
+ '("drip" "drip_daemon" "drip_proxy"))
+ (install-file "drip.jar" share)
+ (substitute* (string-append bin "/drip")
+ (("drip_dir=\\$bin_dir/..")
+ (string-append "drip_dir=" share)))
+ #t))))))
+ (home-page "https://github.com/ninjudd/drip")
+ (synopsis "Faster Java Virtual Machine launching")
+ (description "Drip is a launcher for the Java Virtual Machine that
+provides much faster startup times than the @command{java} command. The
@command{drip}
+script is intended to be a drop-in replacement for the @command{java} command,
+only faster.")
+ (license license:epl1.0))))
+
(define-public java-openjfx-build
(package
(name "java-openjfx-build")
- 02/50: gnu: ecj-bootstrap: Remove trailing #T., (continued)
- 02/50: gnu: ecj-bootstrap: Remove trailing #T., guix-commits, 2021/12/23
- 16/50: gnu: icedtea-7: Build with ECJ 4, Jamvm, and GNU Classpath., guix-commits, 2021/12/23
- 19/50: gnu: icedtea-8: Remove trailing #T from build phases., guix-commits, 2021/12/23
- 24/50: gnu: ant-bootstrap: Remove trailing #T from build phase., guix-commits, 2021/12/23
- 15/50: gnu: icedtea-7: Import missing module for read-line., guix-commits, 2021/12/23
- 35/50: gnu: classpath-devel: Use label-less input style., guix-commits, 2021/12/23
- 42/50: gnu: java-mail: Disable SSL test., guix-commits, 2021/12/23
- 50/50: gnu: axoloti-patcher-next: Fix file names., guix-commits, 2021/12/23
- 17/50: gnu: icedtea-8: Remove commented configure flag., guix-commits, 2021/12/23
- 38/50: gnu: java-icu4j: Update to 70.1., guix-commits, 2021/12/23
- 36/50: gnu: drip: Move it below the Java bootstrap packages.,
guix-commits <=
- 33/50: gnu: ecj-bootstrap: Use label-less input style., guix-commits, 2021/12/23
- 49/50: gnu: axoloti-patcher-next: Remove trailing #T., guix-commits, 2021/12/23
- 27/50: gnu: ecj-javac-wrapper: Use G-Expression., guix-commits, 2021/12/23
- 40/50: gnu: java-kafka-clients: Use new input style., guix-commits, 2021/12/23
- 41/50: gnu: java-kafka-clients: Update to 1.1.1., guix-commits, 2021/12/23
- 44/50: gnu: java-mail: Use new input style., guix-commits, 2021/12/23
- 06/50: gnu: ecj-javac-wrapper-final: Use Guile 3., guix-commits, 2021/12/23
- 08/50: gnu: Add ecj4-bootstrap., guix-commits, 2021/12/23
- 10/50: gnu: Add jamvm-with-ecj4., guix-commits, 2021/12/23
- 11/50: gnu: icedtea-7: Run tests conditionally., guix-commits, 2021/12/23