From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e3Ush-0000OM-Gk for guix-patches@gnu.org; Sat, 14 Oct 2017 18:26:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e3Usc-0007t0-Mn for guix-patches@gnu.org; Sat, 14 Oct 2017 18:26:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:60201) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e3Usc-0007sN-IV for guix-patches@gnu.org; Sat, 14 Oct 2017 18:26:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e3Usc-000617-7r for guix-patches@gnu.org; Sat, 14 Oct 2017 18:26:02 -0400 Subject: [bug#28841] [PATCH 01/24] gnu: Add java-hdrhistogram. Resent-Message-ID: From: julien@lepiller.eu Date: Sun, 15 Oct 2017 00:23:26 +0200 Message-Id: <20171014222349.12902-1-julien@lepiller.eu> In-Reply-To: <20171014233216.49c852f7@lepiller.eu> References: <20171014233216.49c852f7@lepiller.eu> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 28841@debbugs.gnu.org From: Julien Lepiller * gnu/packages/java.scm (java-hdrhistogram): New variable. --- gnu/packages/java.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index 95fba20e8..a36db179a 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -6020,3 +6020,41 @@ provides low-level abstractions (@code{JsonParser}, @code{JsonGenerator}, @code{JsonFactory}) as well as small number of higher level overrides needed to make data-binding work.") (license license:asl2.0))); found on wiki.fasterxml.com/JacksonLicensing + +(define-public java-hdrhistogram + (package + (name "java-hdrhistogram") + (version "2.1.9") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/HdrHistogram/HdrHistogram/" + "archive/HdrHistogram-" version ".tar.gz")) + (sha256 + (base32 + "1sicbmc3sr42nw93qbkb26q9rn33ag33k6k77phjc3j5h5gjffqv")))) + (build-system ant-build-system) + (arguments + `(#:jar-name "java-hdrhistogram.jar" + #:source-dir "src/main/java" + #:phases + (modify-phases %standard-phases + (add-before 'configure 'set-version + (lambda _ + (let* ((version-java "src/main/java/org/HdrHistogram/Version.java") + (template (string-append version-java ".template"))) + (copy-file template version-java) + (substitute* version-java + (("\\$VERSION\\$") ,version) + (("\\$BUILD_TIME\\$") "0")))))))) + (native-inputs + `(("junit" ,java-junit) + ("hamcrest" ,java-hamcrest-core))) + (home-page "https://hdrhistogram.github.io/HdrHistogram") + (synopsis "High Dynamic Range Histogram") + (description "Histogram that supports recording and analyzing sampled data +value counts across a configurable integer value range with configurable value +precision within the range. Value precision is expressed as the number of +significant digits in the value recording, and provides control over value +quantization behavior across the value range and the subsequent value resolution +at any given level.") + (license license:bsd-2))) -- 2.14.2