;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2017, 2019 Ricardo Wurmus ;;; Copyright © 2017, 2018 Julien Lepiller ;;; Copyright © 2018 Marius Bakke ;;; Copyright © 2018 Mark H Weaver ;;; Copyright © 2018, 2020 Tobias Geerinckx-Rice ;;; Copyright © 2021 Efraim Flashner ;;; ;;; This file is part of GNU Guix. ;;; ;;; GNU Guix is free software; you can redistribute it and/or modify it ;;; under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or (at ;;; your option) any later version. ;;; ;;; GNU Guix is distributed in the hope that it will be useful, but ;;; WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public Lice
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2024-10-07 22:12:32 +0200
committerLudovic Courtès <ludo@gnu.org>2024-10-16 19:11:49 +0200
commitf8573c326aca34126a7a6c13dfc85440801eee27 (patch)
tree17293e04261f902f3c456a510360283d97d59bb0 /nix/libutil/archive.cc
parenta8bd933362f6bf26e4a11d062228aa52c2c0add1 (diff)
downloadguix-f8573c326aca34126a7a6c13dfc85440801eee27.tar.gz
guix-f8573c326aca34126a7a6c13dfc85440801eee27.zip
gnu: udisks: Update to 2.10.1.
* gnu/packages/freedesktop.scm (udisks): Update to 2.10.1. [native-inputs]: Replace intltool with gettext-minimal. Remove gnome-common. Change-Id: I4fbc4f6949eb14763dad58dbccd9974793ea02f6 Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'nix/libutil/archive.cc')
0 files changed, 0 insertions, 0 deletions
arguments `(#:jar-name "snappy.jar" #:source-dir "src/main/java" #:phases (modify-phases %standard-phases (add-before 'build 'remove-binaries (lambda _ (delete-file "lib/org/xerial/snappy/OSInfo.class") (delete-file-recursively "src/main/resources/org/xerial/snappy/native") #t)) (add-before 'build 'build-jni (lambda _ ;; Rebuild one of the binaries we removed earlier (invoke "javac" "src/main/java/org/xerial/snappy/OSInfo.java" "-d" "lib") ;; Link to the dynamic snappy, not the static ones (substitute* "Makefile.common" (("-shared") "-shared -lsnappy")) (substitute* "Makefile" ;; Don't download the sources here. (("\\$\\(SNAPPY_UNPACKED\\) ") "") ((": \\$\\(SNAPPY_UNPACKED\\) ") ":") ;; What we actually want to build (("SNAPPY_OBJ:=.*") "SNAPPY_OBJ:=$(addprefix $(SNAPPY_OUT)/, SnappyNative.o)\n") ;; Since we removed the directory structure in "native" during ;; the previous phase, we need to recreate it. (("NAME\\): \\$\\(SNAPPY_OBJ\\)") "NAME): $(SNAPPY_OBJ)\n\t@mkdir -p $(@D)")) ;; Finally we can run the Makefile to build the dynamic library. (invoke "make" "native"))) ;; Once we have built the shared library, we need to place it in the ;; "build" directory so it can be added to the jar file. (add-after 'build-jni 'copy-jni (lambda _ (copy-recursively "src/main/resources/org/xerial/snappy/native" "build/classes/org/xerial/snappy/native") #t)) (add-before 'check 'fix-tests (lambda _ (mkdir-p "src/test/resources/org/xerial/snappy/") (copy-recursively "src/test/java/org/xerial/snappy/testdata" "src/test/resources/org/xerial/snappy/testdata") (install-file "src/test/java/org/xerial/snappy/alice29.txt" "src/test/resources/org/xerial/snappy/") #t))))))) (define-public java-iq80-snappy (package (name "java-iq80-snappy") (version "0.4") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/dain/snappy") (commit (string-append "snappy-" version)))) (sha256 (base32 "1mswh207065rdzbxk6rxaqlxhbg1ngxa0vjc20knsn31kqbq1bcz")) (file-name (git-file-name name version)))) (build-system ant-build-system) (arguments `(#:jar-name "iq80-snappy.jar" #:source-dir "src/main/java" #:test-dir "src/test" #:phases (modify-phases %standard-phases (replace 'check (lambda _ (define (test class) (invoke "java" "-cp" (string-append (getenv "CLASSPATH") ":build/classes" ":build/test-classes") "-Dtest.resources.dir=src/test/resources" "org.testng.TestNG" "-testclass" class)) (invoke "ant" "compile-tests") (test "org.iq80.snappy.SnappyFramedStreamTest") (test "org.iq80.snappy.SnappyStreamTest") #t)) (add-before 'build 'remove-hadoop-dependency (lambda _ ;; We don't have hadoop (delete-file "src/main/java/org/iq80/snappy/HadoopSnappyCodec.java") (delete-file "src/test/java/org/iq80/snappy/TestHadoopSnappyCodec.java") #t)) (replace 'install (install-from-pom "pom.xml"))))) (home-page "https://github.com/dain/snappy") (native-inputs (list java-guava java-snappy java-testng)) (synopsis "Java port of the Snappy (de)compressor") (description "Iq80-snappy is a port of the Snappy compressor and decompressor rewritten in pure Java. This compression code produces a byte-for-byte exact copy of the output created by the original C++ code, and is extremely fast.") (license license:asl2.0))) (define-public java-jbzip2 (package (name "java-jbzip2") (version "0.9.1") (source (origin (method url-fetch) (uri (string-append "https://storage.googleapis.com/" "google-code-archive-source/v2/" "code.google.com/jbzip2/" "source-archive.zip")) (file-name (string-append name "-" version ".zip")) (sha256 (base32 "0ncmhlqmrfmj96nqf6p77b9ws35lcfsvpfxzwxi2asissc83z1l3")))) (build-system ant-build-system) (native-inputs (list unzip java-junit)) (arguments `(#:tests? #f ; no tests #:jar-name "jbzip2.jar" #:source-dir "tags/release-0.9.1/src" #:phases (modify-phases %standard-phases (add-after 'unpack 'fix-encoding-problems (lambda _ ;; Some of the files we're patching are ;; ISO-8859-1-encoded, so choose it as the default ;; encoding so the byte encoding is preserved. (with-fluids ((%default-port-encoding #f)) (substitute* "tags/release-0.9.1/src/org/itadaki/bzip2/HuffmanAllocator.java" (("Milidi.") "Milidiu"))) #t))))) (home-page "https://code.google.com/archive/p/jbzip2/") (synopsis "Java bzip2 compression/decompression library") (description "Jbzip2 is a Java bzip2 compression/decompression library. It can be used as a replacement for the Apache @code{CBZip2InputStream} / @code{CBZip2OutputStream} classes.") (license license:expat))) (define-public java-xz (package (name "java-xz") (version "1.9") (source (origin (method url-fetch/zipbomb) (uri (string-append "https://tukaani.org/xz/xz-java-" version ".zip")) (sha256 (base32 "007d9f83277qn70swz9inqhyf0qxq6ygajpq5rqg0xgsyh1sdndi")))) (build-system ant-build-system) (arguments `(#:tests? #f; no tests #:jdk ,openjdk9 #:phases (modify-phases %standard-phases (add-before 'install 'generate-pom (lambda _ (copy-file "maven/pom_template.xml" "pom.xml") (substitute* "pom.xml" (("@VERSION@") ,version) (("@TITLE@") "XZ data compression") (("@HOMEPAGE@") "http://tukaani.org/xz/java.html")) #t)) (add-before 'install 'rename-jar (lambda _ (rename-file "build/jar/xz.jar" (string-append "build/jar/xz-" ,version ".jar")) #t)) (replace 'install (install-from-pom "pom.xml"))))) (native-inputs (list unzip)) (home-page "https://tukaani.org") (synopsis "XZ in Java") (description "Tukaani-xz is an implementation of xz compression/decompression algorithms in Java.") (license license:public-domain))) (define-public java-zstd (package (name "java-zstd") (version "1.5.2-3") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/luben/zstd-jni") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0z26z04sc4j6k0g4gvq4xc86mc4wiyp1j7z5hh6wpqgmy9b6h2zb")))) (build-system ant-build-system) (arguments `(#:jar-name "java-zstd.jar" #:source-dir "src/main/java" #:tests? #f; Require scala #:phases (modify-phases %standard-phases (add-before 'build 'generate-version (lambda _ (with-output-to-file "src/main/java/com/github/luben/zstd/util/ZstdVersion.java" (lambda _ (format #t "package com.github.luben.zstd.util; public class ZstdVersion { public static final String VERSION = \"~a\"; }" ,version)))))))) (inputs `(("zstd" ,zstd))) (home-page "https://github.com/luben/zstd-jni") (synopsis "JNI bindings for Zstd native library") (description "Zstd, short for Zstandard, is a lossless compression algorithm, which provides both good compression ratio and speed for standard compression needs. This package provides JNI bindings for Zstd native library that provides fast and high compression lossless algorithm for Android, Java and all JVM languages.") (license license:bsd-2)))