summaryrefslogtreecommitdiff
path: root/gnu/packages/java.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2016-04-19 12:22:37 +0200
committerRicardo Wurmus <ricardo.wurmus@mdc-berlin.de>2016-04-19 14:44:29 +0200
commit349a31476567962d75dc6d02d339e4ffa8362801 (patch)
tree3d0a48523862b761f155953abe1470011410b216 /gnu/packages/java.scm
parent31b6cdf8d196f36790776f366868fe64932fa23d (diff)
gnu: Add icedtea-8.
* gnu/packages/java.scm (icedtea-8): New variable.
Diffstat (limited to 'gnu/packages/java.scm')
-rw-r--r--gnu/packages/java.scm84
1 files changed, 83 insertions, 1 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 4a4c214f634..7d8fb4fdfb1 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -1,5 +1,5 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net> 2;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net>
3;;; Copyright © 2016 Leo Famulari <leo@famulari.name> 3;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
4;;; 4;;;
5;;; This file is part of GNU Guix. 5;;; This file is part of GNU Guix.
@@ -746,4 +746,86 @@ build process and its dependencies, whereas Make uses Makefile format.")
746 `(("libxcomposite" ,libxcomposite) 746 `(("libxcomposite" ,libxcomposite)
747 ,@(package-inputs icedtea-6)))))) 747 ,@(package-inputs icedtea-6))))))
748 748
749(define-public icedtea-8
750 (let* ((version "3.0.0")
751 (drop (lambda (name hash)
752 (origin
753 (method url-fetch)
754 (uri (string-append
755 "http://icedtea.classpath.org/download/drops/"
756 "/icedtea8/" version "/" name ".tar.xz"))
757 (sha256 (base32 hash))))))
758 (package (inherit icedtea-7)
759 (version "3.0.0")
760 (source (origin
761 (method url-fetch)
762 (uri (string-append
763 "http://icedtea.wildebeest.org/download/source/icedtea-"
764 version ".tar.xz"))
765 (sha256
766 (base32
767 "1a99hvx5d0dcinlixgy0wzv2f7jnzi8jp7hcrf2pd7dqndlxsyll"))
768 (modules '((guix build utils)))
769 (snippet
770 '(substitute* "Makefile.am"
771 ;; do not leak information about the build host
772 (("DISTRIBUTION_ID=\"\\$\\(DIST_ID\\)\"")
773 "DISTRIBUTION_ID=\"\\\"guix\\\"\"")))))
774 (arguments
775 (substitute-keyword-arguments (package-arguments icedtea-7)
776 ((#:configure-flags flags)
777 `(let ((jdk (assoc-ref %build-inputs "jdk")))
778 `(;;"--disable-bootstrap"
779 "--enable-bootstrap"
780 "--enable-nss"
781 "--disable-downloading"
782 "--disable-tests" ;they are run in the check phase instead
783 "--with-openjdk-src-dir=./openjdk.src"
784 ,(string-append "--with-jdk-home=" jdk))))
785 ((#:phases phases)
786 `(modify-phases ,phases
787 (delete 'fix-x11-extension-include-path)
788 (delete 'patch-paths)
789 (delete 'set-additional-paths)
790 (delete 'patch-patches)
791 (replace 'install
792 (lambda* (#:key outputs #:allow-other-keys)
793 (let ((doc (string-append (assoc-ref outputs "doc")
794 "/share/doc/icedtea"))
795 (jre (assoc-ref outputs "out"))
796 (jdk (assoc-ref outputs "jdk")))
797 (copy-recursively "openjdk.build/docs" doc)
798 (copy-recursively "openjdk.build/images/j2re-image" jre)
799 (copy-recursively "openjdk.build/images/j2sdk-image" jdk)
800 #t)))))))
801 (native-inputs
802 `(("jdk" ,icedtea-7 "jdk")
803 ("openjdk-src"
804 ,(drop "openjdk"
805 "0cchcrkj3pbjw3r6w08d8fkcjp98fyqp15bv88ljakjcsxrjc0sv"))
806 ("corba-drop"
807 ,(drop "corba"
808 "1k5khy8g0bk8yas81infh4l8rradpslzs0bblri0aqn9s3aq0x6p"))
809 ("jaxp-drop"
810 ,(drop "jaxp"
811 "1s167lwh1bxkjmbcyk1pb9r919hfbjgh2shig3d1qmj24r2fbk2c"))
812 ("jaxws-drop"
813 ,(drop "jaxws"
814 "0xphl8127in0634401f8v3b42mh14v1zdzd7ar10h9m5m84hcmgg"))
815 ("jdk-drop"
816 ,(drop "jdk"
817 "1kdi5v0vf7swkh2r4isdibw8zzsp34d1aa1sbxl5ljc9lfmbhx7s"))
818 ("langtools-drop"
819 ,(drop "langtools"
820 "11pa0sr4yi0nnfwhz25410zimc3jm367cvrhg5jm0xc5rykydq70"))
821 ("hotspot-drop"
822 ,(drop "hotspot"
823 "1my0g9snpd6619y82b4m96wc7ncvf1hw5yqrbh3n1pjgm2k7ywbn"))
824 ("nashorn-drop"
825 ,(drop "nashorn"
826 "1h12a61q3bw8zabhpp6aawfg3pwixjcya64595rj07sid619vidl"))
827 ,@(fold alist-delete (package-native-inputs icedtea-7)
828 '("gcj" "openjdk-src" "corba-drop" "jaxp-drop" "jaxws-drop"
829 "jdk-drop" "langtools-drop" "hotspot-drop")))))))
830
749(define-public icedtea icedtea-7) 831(define-public icedtea icedtea-7)