geo.scm
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2017 Julien Lepiller <julien@lepiller.eu> |
3 | ;;; |
4 | ;;; This file is part of GNU Guix. |
5 | ;;; |
6 | ;;; GNU Guix is free software; you can redistribute it and/or modify it |
7 | ;;; under the terms of the GNU General Public License as published by |
8 | ;;; the Free Software Foundation; either version 3 of the License, or (at |
9 | ;;; your option) any later version. |
10 | ;;; |
11 | ;;; GNU Guix is distributed in the hope that it will be useful, but |
12 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 | ;;; GNU General Public License for more details. |
15 | ;;; |
16 | ;;; You should have received a copy of the GNU General Public License |
17 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. |
18 | |
19 | (define-module (more packages geo) |
20 | #:use-module (guix packages) |
21 | #:use-module (guix download) |
22 | #:use-module (guix git-download) |
23 | #:use-module (guix build-system cmake) |
24 | #:use-module (guix build-system gnu) |
25 | #:use-module (guix build-system go) |
26 | #:use-module ((guix licenses) #:prefix license:) |
27 | #:use-module (gnu packages) |
28 | #:use-module (gnu packages boost) |
29 | #:use-module (gnu packages compression) |
30 | #:use-module (gnu packages databases) |
31 | #:use-module (gnu packages datastructures) |
32 | #:use-module (gnu packages documentation) |
33 | #:use-module (gnu packages geo) |
34 | #:use-module (gnu packages image) |
35 | #:use-module (gnu packages lua) |
36 | #:use-module (gnu packages pcre) |
37 | #:use-module (gnu packages perl) |
38 | #:use-module (gnu packages pkg-config) |
39 | #:use-module (gnu packages web) |
40 | #:use-module (gnu packages xml)) |
41 | |
42 | (define-public osmconvert |
43 | (package |
44 | (name "osmconvert") |
45 | (version "0") |
46 | (source (origin |
47 | (method url-fetch) |
48 | (uri (string-append "http://m.m.i24.cc/osmconvert.c")) |
49 | (sha256 |
50 | (base32 |
51 | "19glwq8w5sl8579zxbpydj56lybs94nrf47f3i2xjwlkmzrlljfv")))) |
52 | (build-system gnu-build-system) |
53 | (arguments |
54 | `(#:tests? #f; no tests |
55 | #:phases |
56 | (modify-phases %standard-phases |
57 | (delete 'unpack) |
58 | (delete 'configure) |
59 | (delete 'install) |
60 | (replace 'build |
61 | (lambda* (#:key inputs outputs #:allow-other-keys) |
62 | (mkdir-p (string-append (assoc-ref outputs "out") "/bin")) |
63 | (invoke "gcc" (assoc-ref inputs "source") "-lz" "-o" |
64 | (string-append (assoc-ref outputs "out") "/bin/osmconvert")) |
65 | (chmod (string-append (assoc-ref outputs "out") "/bin/osmconvert") |
66 | #o755) |
67 | #t))))) |
68 | (inputs |
69 | `(("zlib" ,zlib))) |
70 | (home-page "") |
71 | (synopsis "") |
72 | (description "") |
73 | (license license:agpl3+))) |
74 |