[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
152/334: gnu: glibmm: Update package definition.
From: |
guix-commits |
Subject: |
152/334: gnu: glibmm: Update package definition. |
Date: |
Sat, 15 Aug 2020 16:26:51 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit 9848b65e9c207b80903fa555ccbbb418a57dd2f8
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Sat Jul 18 04:08:05 2020 -0400
gnu: glibmm: Update package definition.
* gnu/packages/glib.scm (glibmm) [version]: Update to 2.65.3.
[source]<origin>[sha256]: Modify base32.
[build-system]: Change from gnu to glib-or-gtk.
[outputs]: New output "doc".
[arguments]<#:tests?>: New argument.
<#:phases>['move-doc]: New phase.
[native-inputs]: Add graphviz, doxygen, gobject-introspection, m4,
mm-common, perl, python-wrapper and libxslt.
[synopsis]: Modify.
[description]: Modify.
[home-page]: Modify.
[license]: Add gpl2+.
Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
gnu/packages/glib.scm | 100 +++++++++++++++++++++++++++++---------------------
1 file changed, 59 insertions(+), 41 deletions(-)
diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm
index d4ceba6..c7964b8 100644
--- a/gnu/packages/glib.scm
+++ b/gnu/packages/glib.scm
@@ -64,6 +64,7 @@
#:use-module (gnu packages web)
#:use-module (gnu packages xml)
#:use-module (gnu packages xorg)
+ #:use-module (guix build-system glib-or-gtk)
#:use-module (guix build-system gnu)
#:use-module (guix build-system meson)
#:use-module (guix build-system perl)
@@ -571,48 +572,65 @@ libraries.")
(sha256
(base32 "11j7j1jv4z58d9s7jvl42fnqa1dzl4idgil9r45cjv1w673dys0b"))))))
-(define glibmm
- (package
+ (define glibmm
+ (package
(name "glibmm")
- (version "2.62.0")
- (source (origin
- (method url-fetch)
- (uri (string-append "mirror://gnome/sources/glibmm/"
- (version-major+minor version)
- "/glibmm-" version ".tar.xz"))
- (sha256
- (base32
- "1ziwx6r7k7wbvg4qq1rgrv8zninapgrmhn1hs6926a3krh9ryr9n"))))
- (build-system gnu-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'build 'pre-build
- (lambda _
- ;; This test uses /etc/fstab as an example file to read
- ;; from; choose a better example.
- (substitute* "tests/giomm_simple/main.cc"
- (("/etc/fstab")
- (string-append (getcwd)
- "/tests/giomm_simple/main.cc")))
-
- ;; This test does a DNS lookup, and then expects to be able
- ;; to open a TLS session; just skip it.
- (substitute* "tests/giomm_tls_client/main.cc"
- (("Gio::init.*$")
- "return 77;\n"))
- #t)))))
- (native-inputs `(("pkg-config" ,pkg-config)
- ("glib" ,glib "bin")))
- (propagated-inputs
- `(("libsigc++" ,libsigc++)
- ("glib" ,glib)))
- (home-page "https://gtkmm.org/")
- (synopsis "C++ interface to the GLib library")
- (description
- "Glibmm provides a C++ programming interface to the part of GLib that are
-useful for C++.")
- (license license:lgpl2.1+)))
+ (version "2.65.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append "mirror://gnome/sources/glibmm/"
+ (version-major+minor version)
+ "/glibmm-" version ".tar.xz"))
+ (sha256
+ (base32 "1qk7kkr1xa6n3fdvf3f3p2wmj2haycb7mwhzqmdcrwplnz4qd3rz"))))
+ (build-system glib-or-gtk-build-system)
+ (outputs '("out" "doc"))
+ (arguments
+ `(#:tests? #f ; XXX: Fix-me
+ #:phases
+ (modify-phases %standard-phases
+ ;; (add-after 'unpack 'disable-failing-tests
+ ;; (lambda _
+ ;; (substitute* "tests/Makefile.in"
+ ;; (("giomm_simple/test\$\\(EXEEXT\\)
giomm_stream_vfuncs/test\$\\(EXEEXT\\) \\\\")
+ ;; "")
+ ;; (("giomm_tls_client/test\$\\(EXEEXT\\)
giomm_listmodel/test\$\\(EXEEXT\\) \\\\")
+ ;; ""))
+ ;; #t))
+ (add-after 'install 'move-doc
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (doc (assoc-ref outputs "doc")))
+ (mkdir-p (string-append doc "/share"))
+ (rename-file
+ (string-append out "/share/doc")
+ (string-append doc "/share/doc"))
+ #t))))))
+ (native-inputs
+ `(("dot" ,graphviz)
+ ("doxygen" ,doxygen)
+ ("glib" ,glib "bin")
+ ("gobject-introspection" ,gobject-introspection)
+ ("m4" ,m4)
+ ("mm-common" ,mm-common)
+ ("perl" ,perl)
+ ("pkg-config" ,pkg-config)
+ ("python" ,python-wrapper)
+ ("xsltproc" ,libxslt)))
+ (propagated-inputs
+ `(("libsigc++" ,libsigc++)
+ ("glib" ,glib)))
+ (synopsis "C++ interface to the GLib")
+ (description "Glibmm is a C++ API for parts of glib that are useful for
C++.")
+ (home-page "https://wiki.gnome.org/Projects/GLib")
+ (license
+ (list
+ ;; Libraries
+ license:lgpl2.1+
+ ;; Tools
+ license:gpl2+))))
(define-public python2-pygobject-2
(package
- 120/334: gnu: Add rust-servo-arc@0.1.1., (continued)
- 120/334: gnu: Add rust-servo-arc@0.1.1., guix-commits, 2020/08/15
- 118/334: gnu: Add rust-pin-project@0.4.22., guix-commits, 2020/08/15
- 122/334: gnu: Add rust-xml5ever@0.16.1., guix-commits, 2020/08/15
- 125/334: gnu: libsoup: Update package definition., guix-commits, 2020/08/15
- 127/334: gnu: openjpeg: Update package definition., guix-commits, 2020/08/15
- 132/334: gnu: pango: Update package definition., guix-commits, 2020/08/15
- 136/334: gnu: woff2: Update package definition., guix-commits, 2020/08/15
- 138/334: gnu: Add libcamera., guix-commits, 2020/08/15
- 144/334: gnu: yelp: Update package definition., guix-commits, 2020/08/15
- 145/334: gnu: zenity: Update package definition., guix-commits, 2020/08/15
- 152/334: gnu: glibmm: Update package definition.,
guix-commits <=
- 156/334: gnu: Add pangomm-2.42., guix-commits, 2020/08/15
- 158/334: gnu: gtkmm: Update package definition., guix-commits, 2020/08/15
- 159/334: gnu: gtkmm-2: Update package definition., guix-commits, 2020/08/15
- 160/334: gnu: gtksourceviewmm: Update package definition., guix-commits, 2020/08/15
- 165/334: gnu: Add gtx., guix-commits, 2020/08/15
- 167/334: gnu: Add zeitgeist., guix-commits, 2020/08/15
- 170/334: gnu: Add mmm., guix-commits, 2020/08/15
- 171/334: gnu: Add mrg., guix-commits, 2020/08/15
- 172/334: gnu: gegl: Update package definition., guix-commits, 2020/08/15
- 174/334: gnu: gexiv2: Update package definition., guix-commits, 2020/08/15