add openjdk9
more/packages/java.scm
| 24 | 24 | #:use-module (guix git-download) | |
| 25 | 25 | #:use-module (guix svn-download) | |
| 26 | 26 | #:use-module (guix cvs-download) | |
| 27 | + | #:use-module (guix hg-download) | |
| 27 | 28 | #:use-module (guix utils) | |
| 28 | 29 | #:use-module (guix build-system ant) | |
| 29 | 30 | #:use-module (guix build-system gnu) | |
… | |||
| 31 | 32 | #:use-module (gnu packages autotools) | |
| 32 | 33 | #:use-module (gnu packages base) | |
| 33 | 34 | #:use-module (gnu packages compression) | |
| 35 | + | #:use-module (gnu packages cups) | |
| 34 | 36 | #:use-module (gnu packages docbook) | |
| 37 | + | #:use-module (gnu packages elf) | |
| 38 | + | #:use-module (gnu packages fontutils) | |
| 35 | 39 | #:use-module (gnu packages groovy) | |
| 36 | 40 | #:use-module (gnu packages java) | |
| 37 | 41 | #:use-module (gnu packages libffi) | |
| 42 | + | #:use-module (gnu packages linux) | |
| 38 | 43 | #:use-module (gnu packages maven) | |
| 39 | 44 | #:use-module (gnu packages perl) | |
| 40 | 45 | #:use-module (gnu packages web) | |
… | |||
| 4280 | 4285 | (synopsis "Build system") | |
| 4281 | 4286 | (description "") | |
| 4282 | 4287 | (license license:asl2.0))) | |
| 4288 | + | ||
| 4289 | + | (define-public openjdk9 | |
| 4290 | + | (package | |
| 4291 | + | (name "openjdk") | |
| 4292 | + | (version "9+181") | |
| 4293 | + | (source (origin | |
| 4294 | + | ;(method hg-fetch) | |
| 4295 | + | ;(uri (hg-reference | |
| 4296 | + | ; (url "http://hg.openjdk.java.net/jdk9/jdk9/") | |
| 4297 | + | ; (changeset "b656dea9398ef601f7fc08d1a5157a560e0ccbe0"))) | |
| 4298 | + | ;(uri (hg-reference | |
| 4299 | + | ; (url "http://hg.openjdk.java.net/jdk/jdk/") | |
| 4300 | + | ; (changeset "3cc80be736f2"))) | |
| 4301 | + | (method url-fetch) | |
| 4302 | + | (uri "http://hg.openjdk.java.net/jdk/jdk/archive/3cc80be736f2.tar.bz2") | |
| 4303 | + | (file-name (string-append name "-" version ".tar.bz2")) | |
| 4304 | + | (sha256 | |
| 4305 | + | (base32 | |
| 4306 | + | ;"0mnyfknznp0bwxvnl9yv6p8vzmwra482ya612mkfw37frbvs5b8x")))) | |
| 4307 | + | "01ihmyf7k5z17wbr7xig7y40l9f01d5zjgkcmawn1102hw5kchpq")))) | |
| 4308 | + | (build-system gnu-build-system) | |
| 4309 | + | (outputs '("out" "jdk" "doc")) | |
| 4310 | + | (arguments | |
| 4311 | + | `(#:tests? #f; TODO: requires jtreg | |
| 4312 | + | #:phases | |
| 4313 | + | (modify-phases %standard-phases | |
| 4314 | + | (delete 'patch-source-shebangs) | |
| 4315 | + | (replace 'configure | |
| 4316 | + | (lambda* (#:key inputs outputs #:allow-other-keys) | |
| 4317 | + | (invoke "bash" "./configure" | |
| 4318 | + | (string-append "--with-freetype=" (assoc-ref inputs "freetype")) | |
| 4319 | + | "--disable-freetype-bundling" | |
| 4320 | + | "--disable-warnings-as-errors" | |
| 4321 | + | "--disable-hotspot-gtest" | |
| 4322 | + | (string-append "--prefix=" (assoc-ref outputs "out"))) | |
| 4323 | + | #t)) | |
| 4324 | + | (replace 'build | |
| 4325 | + | (lambda _ | |
| 4326 | + | (with-output-to-file ".src-rev" | |
| 4327 | + | (lambda _ | |
| 4328 | + | (display ,version))) | |
| 4329 | + | (setenv "GUIX_LD_WRAPPER_ALLOW_IMPURITIES" "yes") | |
| 4330 | + | (invoke "make" "all") | |
| 4331 | + | #t)) | |
| 4332 | + | (replace 'check | |
| 4333 | + | (lambda _ | |
| 4334 | + | (invoke "make" "test") | |
| 4335 | + | #t)) | |
| 4336 | + | (replace 'install | |
| 4337 | + | (lambda* (#:key outputs #:allow-other-keys) | |
| 4338 | + | (let ((out (assoc-ref outputs "out")) | |
| 4339 | + | (jdk (assoc-ref outputs "jdk")) | |
| 4340 | + | (doc (assoc-ref outputs "doc")) | |
| 4341 | + | (images (car (find-files "build" ".*-server-release")))) | |
| 4342 | + | (copy-recursively (string-append images "/images/jdk") jdk) | |
| 4343 | + | (copy-recursively (string-append images "/images/jre") out) | |
| 4344 | + | (copy-recursively (string-append images "/images/docs") doc)) | |
| 4345 | + | #t))))) | |
| 4346 | + | (inputs | |
| 4347 | + | `(("alsa-lib" ,alsa-lib) | |
| 4348 | + | ("cups" ,cups) | |
| 4349 | + | ("fontconfig" ,fontconfig) | |
| 4350 | + | ("freetype" ,freetype) | |
| 4351 | + | ("libelf" ,libelf) | |
| 4352 | + | ("libice" ,libice) | |
| 4353 | + | ("libx11" ,libx11) | |
| 4354 | + | ("libxcomposite" ,libxcomposite) | |
| 4355 | + | ("libxi" ,libxi) | |
| 4356 | + | ("libxinerama" ,libxinerama) | |
| 4357 | + | ("libxrender" ,libxrender) | |
| 4358 | + | ("libxt" ,libxt) | |
| 4359 | + | ("libxtst" ,libxtst))) | |
| 4360 | + | (native-inputs | |
| 4361 | + | `(("icedtea-8" ,icedtea-8) | |
| 4362 | + | ("icedtea-8:jdk" ,icedtea-8 "jdk") | |
| 4363 | + | ("unzip" ,unzip) | |
| 4364 | + | ("which" ,which) | |
| 4365 | + | ("zip" ,zip))) | |
| 4366 | + | (home-page "http://openjdk.java.net/projects/jdk9/") | |
| 4367 | + | (synopsis "") | |
| 4368 | + | (description "") | |
| 4369 | + | (license license:gpl2))) | |