From: "Wiktor Żelazny" <wz@freeshell.de>
To: 38149@debbugs.gnu.org
Subject: [bug#38149] [WIP] gnu: Add qgis.
Date: Sat, 9 Nov 2019 12:27:02 +0100 [thread overview]
Message-ID: <20191109112702.14723-1-wz@freeshell.de> (raw)
From: Wiktor Żelazny <wzelazny@vurv.cz>
* gnu/packages/geo.scm (qgis): new variable.
Does not build due to QtXml/QtXmlmod.sip not found.
---
This is my attempt to define some minimal QGIS package. Unfortunately,
the build crashes with
sip: Unable to find file "QtXml/QtXmlmod.sip"
but:
$ ls -l /gnu/store/8d1ak3bpaaqhw4hnxksan7fnh5ll7i5f-python-pyqt+qscintilla-5.11.3/share/sip/QtXml/QtXmlmod.sip
-r--r--r-- 5 root root 1937 Jan 1 1970 /gnu/store/8d1ak3bpaaqhw4hnxksan7fnh5ll7i5f-python-pyqt+qscintilla-5.11.3/share/sip/QtXml/QtXmlmod.sip
I thought that maybe the QtXml/ directory being a symlink
QtXml -> /gnu/store/mfii8qx5x3kbl1gzg8g8qmblqk6fdmvf-python-pyqt-5.11.3/share/sip/QtXml
was the problem, but including python-pyqt (or python-sip, for that
matter) among the inputs did not solve the issue. Explicitly defining
directories as configure flags does not work, either. Any suggestion how
to progress on this? Thanks!
gnu/packages/geo.scm | 63 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 63 insertions(+)
diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm
index dfb00c7547..26bbcd2f63 100644
--- a/gnu/packages/geo.scm
+++ b/gnu/packages/geo.scm
@@ -42,12 +42,14 @@
#:use-module (guix utils)
#:use-module (gnu packages astronomy)
#:use-module (gnu packages autotools)
+ #:use-module (gnu packages bison)
#:use-module (gnu packages boost)
#:use-module (gnu packages check)
#:use-module (gnu packages compression)
#:use-module (gnu packages databases)
#:use-module (gnu packages datastructures)
#:use-module (gnu packages documentation)
+ #:use-module (gnu packages flex)
#:use-module (gnu packages fonts)
#:use-module (gnu packages fontutils)
#:use-module (gnu packages glib)
@@ -55,7 +57,9 @@
#:use-module (gnu packages gtk)
#:use-module (gnu packages image)
#:use-module (gnu packages icu4c)
+ #:use-module (gnu packages kde)
#:use-module (gnu packages lua)
+ #:use-module (gnu packages maths)
#:use-module (gnu packages pcre)
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
@@ -1037,3 +1041,62 @@ persisted.
@end itemize
")
(license license:expat)))
+
+(define-public qgis
+ (package
+ (name "qgis")
+ (version "3.8.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://qgis.org/downloads/" name "-" version ".tar.bz2"))
+ (sha256
+ (base32
+ ; checked <uri>.md5
+ "1g8pzfm68n28pj7a4z9c1yklnwx5and83svjx6w8q5dwhf23xjiw"))))
+ (build-system cmake-build-system)
+ (native-inputs
+ `(("flex" ,flex)
+ ("bison" ,bison)
+ ("python" ,python)))
+ (inputs
+ `(("qtbase" ,qtbase)
+ ("qtserialport" ,qtserialport)
+ ("qtsvg" ,qtsvg)
+ ("qtlocation" ,qtlocation)
+ ("qttools" ,qttools)
+ ("qtdeclarative" ,qtdeclarative)
+ ("qtwebkit" ,qtwebkit)
+ ("proj.4" ,proj.4)
+ ("geos" ,geos)
+ ("sqlite" ,sqlite)
+ ("libspatialite" ,libspatialite)
+ ("libspatialindex" ,libspatialindex)
+ ("gdal" ,gdal)
+ ("qwt" ,qwt)
+ ("expat" ,expat)
+ ("qscintilla" ,qscintilla)
+ ("qca" ,qca)
+ ("qtkeychain" ,qtkeychain)
+ ("libzip" ,libzip)
+ ("python-pyqt+qscintilla" ,python-pyqt+qscintilla)
+; ("python-sip" ,python-sip)
+ ("exiv2" ,exiv2)
+ ("gsl" ,gsl)))
+ (arguments
+ `(#:configure-flags (list (string-append
+ "-DPYQT5_SIP_DIR="
+ (assoc-ref
+ %build-inputs "python-pyqt+qscintilla")
+ "/share/sip")
+ (string-append
+ "-DQSCI_SIP_DIR="
+ (assoc-ref
+ %build-inputs "python-pyqt+qscintilla")
+ "/share/sip"))))
+ (home-page "https://qgis.org")
+ (synopsis "A free and open source Geographic Information System")
+ (description "QGIS is a professional GIS application that is built on top
+of and proud to be itself @dfn{Free and Open Source Software} (FOSS).")
+ (license license:gpl2+)))
--
2.24.0
next reply other threads:[~2019-11-09 11:28 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-09 11:27 Wiktor Żelazny [this message]
[not found] ` <cu7eey1kl1x.fsf@systemreboot.net>
[not found] ` <20191123104752.gp6gafhjrs47dath@wz.localdomain>
2019-12-01 18:13 ` [bug#38149] [WIP] gnu: Add qgis Arun Isaac
2019-12-02 14:31 ` Wiktor Żelazny
2019-12-03 17:45 ` Arun Isaac
2019-12-05 11:19 ` Arun Isaac
2019-12-07 10:51 ` Wiktor Żelazny
2019-12-10 17:08 ` Arun Isaac
2019-12-30 15:40 ` Wiktor Żelazny
2019-12-18 6:21 ` Björn Höfling
2019-12-18 8:59 ` Björn Höfling
2019-12-18 9:07 ` Björn Höfling
2019-12-20 16:52 ` Arun Isaac
2019-12-23 6:55 ` Danny Milosavljevic
2019-12-26 13:39 ` Arun Isaac
2019-12-26 14:53 ` Marius Bakke
2019-12-27 2:06 ` Arun Isaac
2020-01-27 22:48 ` Marius Bakke
2020-01-28 5:05 ` Arun Isaac
2020-03-22 15:45 ` Guillaume Le Vaillant
2020-03-23 21:00 ` Arun Isaac
2020-03-24 10:52 ` Guillaume Le Vaillant
2020-03-24 11:46 ` bug#38149: " Arun Isaac
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191109112702.14723-1-wz@freeshell.de \
--to=wz@freeshell.de \
--cc=38149@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).