me
/
guix
Archived
1
0
Fork 0

gnu: Add memphis.

* gnu/packages/geo.scm (memphis): New variable.

Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
master
Raghav Gururajan 2020-07-25 06:37:47 -04:00 committed by Danny Milosavljevic
parent 77d7bbf4bd
commit 7295171e26
No known key found for this signature in database
GPG Key ID: E71A35542C30BAA5
1 changed files with 64 additions and 0 deletions

View File

@ -59,6 +59,7 @@
#:use-module (gnu packages curl)
#:use-module (gnu packages databases)
#:use-module (gnu packages datastructures)
#:use-module (gnu packages docbook)
#:use-module (gnu packages documentation)
#:use-module (gnu packages elf)
#:use-module (gnu packages flex)
@ -101,6 +102,69 @@
#:use-module (gnu packages xml)
#:use-module (gnu packages xorg))
(define-public memphis
(package
(name "memphis")
(version "0.2.3")
(source
(origin
(method git-fetch)
(uri
(git-reference
(url "https://github.com/jiuka/memphis.git")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "068c3943pgbpfjq44pmvn5fmkh005ak5aa67vvrq3fn487c6w54q"))))
(build-system glib-or-gtk-build-system)
(outputs '("out" "doc"))
(arguments
`(#:configure-flags
(list
"--disable-static"
"--enable-gtk-doc"
"--enable-vala"
(string-append "--with-html-dir="
(assoc-ref %outputs "doc")
"/share/gtk-doc/html"))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-autogen
(lambda _
(substitute* "autogen.sh"
(("\\./configure \"\\$@\"")
""))
#t))
(add-after 'patch-autogen 'patch-docbook-xml
(lambda* (#:key inputs #:allow-other-keys)
(with-directory-excursion "docs/reference"
(substitute* "libmemphis-docs.sgml"
(("http://www.oasis-open.org/docbook/xml/4.3/")
(string-append (assoc-ref inputs "docbook-xml")
"/xml/dtd/docbook/"))))
#t)))))
(native-inputs
`(("autoconf" ,autoconf)
("automake" ,automake)
("docbook-xml" ,docbook-xml-4.3)
("gobject-introspection" ,gobject-introspection)
("gtk-doc" ,gtk-doc)
("libtool" ,libtool)
("pkg-config" ,pkg-config)
("python" ,python-wrapper)
("seed" ,seed)
("vala" ,vala)))
(inputs
`(("expat" ,expat)
("glib" ,glib)))
(propagated-inputs
`(("cairo" ,cairo)))
(synopsis "Map-rendering for OpenSteetMap")
(description "Memphis is a map-rendering application and a library for
OpenStreetMap written in C using eXpat, Cairo and GLib.")
(home-page "http://trac.openstreetmap.ch/trac/memphis/")
(license license:lgpl2.1+)))
(define-public geos
(package
(name "geos")