From patchwork Fri May 3 13:01:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Lepiller X-Patchwork-Id: 13852 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id ED9D516F8F; Fri, 3 May 2019 14:06:34 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id C8BE216F8D for ; Fri, 3 May 2019 14:06:33 +0100 (BST) Received: from localhost ([127.0.0.1]:40560 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMXtZ-00023G-DF for patchwork@mira.cbaines.net; Fri, 03 May 2019 09:06:33 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56497) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMXpK-0006cj-Vr for guix-patches@gnu.org; Fri, 03 May 2019 09:02:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hMXpJ-0000kY-Qv for guix-patches@gnu.org; Fri, 03 May 2019 09:02:10 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34531) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hMXpJ-0000kF-Ni for guix-patches@gnu.org; Fri, 03 May 2019 09:02:09 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hMXpJ-0005u5-Ka for guix-patches@gnu.org; Fri, 03 May 2019 09:02:09 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#35545] [PATCH 11/17] gnu: Add java-jmapviewer. Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 03 May 2019 13:02:09 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35545 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 35545@debbugs.gnu.org Received: via spool by 35545-submit@debbugs.gnu.org id=B35545.155688851022568 (code B ref 35545); Fri, 03 May 2019 13:02:09 +0000 Received: (at 35545) by debbugs.gnu.org; 3 May 2019 13:01:50 +0000 Received: from localhost ([127.0.0.1]:48057 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hMXp0-0005rq-5Q for submit@debbugs.gnu.org; Fri, 03 May 2019 09:01:50 -0400 Received: from lepiller.eu ([89.234.186.109]:60756) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hMXox-0005pL-4H for 35545@debbugs.gnu.org; Fri, 03 May 2019 09:01:47 -0400 Received: from localhost.localdomain (89-92-10-229.hfc.dyn.abo.bbox.fr [89.92.10.229]) by lepiller.eu (OpenSMTPD) with ESMTPSA id 48491539 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for <35545@debbugs.gnu.org>; Fri, 3 May 2019 13:01:41 +0000 (UTC) From: Julien Lepiller Date: Fri, 3 May 2019 15:01:28 +0200 Message-Id: <20190503130134.24788-11-julien@lepiller.eu> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190503130134.24788-1-julien@lepiller.eu> References: <20190503145820.606f37db@sybil.lepiller.eu> <20190503130134.24788-1-julien@lepiller.eu> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/geo.scm (java-jmapviewer): New variable. --- gnu/packages/geo.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm index 0b95fbe613..de9e228a25 100644 --- a/gnu/packages/geo.scm +++ b/gnu/packages/geo.scm @@ -24,6 +24,7 @@ ;;; along with GNU Guix. If not, see . (define-module (gnu packages geo) + #:use-module (guix build-system ant) #:use-module (guix build-system cmake) #:use-module (guix build-system glib-or-gtk) #:use-module (guix build-system gnu) @@ -851,3 +852,38 @@ map, geocoding with Nominatim, or general analysis.") the texture and density of features is visible at every zoom level, instead of dropping features at lower levels.") (license license:bsd-2))) + +(define-public java-jmapviewer + (package + (name "java-jmapviewer") + (version "2.9") + (source (origin + (method url-fetch) + (uri (string-append "https://svn.openstreetmap.org/applications/" + "viewer/jmapviewer/releases/" version + "/JMapViewer-" version "-Source.zip")) + (sha256 + (base32 + "06jilhvsx662raix58g8ccl56d1pmirwlys9px0mdg7j46wixk6l")))) + (build-system ant-build-system) + (native-inputs + `(("unzip" ,unzip))) + (arguments + `(#:build-target "pack" + #:tests? #f; No tests + #:phases + (modify-phases %standard-phases + (add-before 'build 'clean + (lambda* _ + (invoke "ant" "clean"))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((dir (string-append (assoc-ref outputs "out") "/share/java/"))) + (mkdir-p dir) + (copy-file "JMapViewer.jar" (string-append dir "JMapViewer.jar")))))))) + (home-page "https://wiki.openstreetmap.org/wiki/JMapViewer") + (synopsis "OSM map integration in Java") + (description "JMapViewer is a Java component which allows to easily +integrate an OSM map view into your Java application. It is maintained as +an independent project by the JOSM team.") + (license license:gpl2)))