unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#40646] gnu: Add blueman.
@ 2020-04-15 17:52 Raghav Gururajan
  2020-04-19 11:22 ` Ludovic Courtès
  2020-04-19 11:27 ` Raghav Gururajan
  0 siblings, 2 replies; 7+ messages in thread
From: Raghav Gururajan @ 2020-04-15 17:52 UTC (permalink / raw)
  To: 40646

[-- Attachment #1: Type: text/plain, Size: 84 bytes --]

Hello Guix!

Please find the attached patch to add 'blueman' package.

Regards,
RG.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: blueman.patch --]
[-- Type: text/x-patch, Size: 5156 bytes --]

From 5f1a319c6b75b3eb28e8f80ea9b31fc5d6cf70df Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <raghavgururajan@disroot.org>
Date: Wed, 15 Apr 2020 13:49:55 -0400
Subject: [PATCH 2/2] gnu: Add blueman.

* gnu/packages/networking.scm (blueman): New variable.
---
 gnu/packages/networking.scm | 86 +++++++++++++++++++++++++++++++++++++
 1 file changed, 86 insertions(+)

diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 79b07e23f0..c174911c0a 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -105,7 +105,9 @@
   #:use-module (gnu packages perl)
   #:use-module (gnu packages perl-check)
   #:use-module (gnu packages pkg-config)
+  #:use-module (gnu packages polkit)
   #:use-module (gnu packages pretty-print)
+  #:use-module (gnu packages pulseaudio)
   #:use-module (gnu packages python)
   #:use-module (gnu packages python-web)
   #:use-module (gnu packages python-xyz)
@@ -122,6 +124,90 @@
   #:use-module (gnu packages xml)
   #:use-module (ice-9 match))
 
+(define-public blueman
+  (package
+    (name "blueman")
+    (version "2.1.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri
+        (string-append "https://github.com/blueman-project/blueman/releases/"
+                       "download/2.1.2/blueman-2.1.2.tar.gz"))
+       (sha256
+        (base32 "0wamxdw36c8i3aqwmja5q70fajqwd7inpkvlpkldd54wdxbcd38d"))))
+    (build-system glib-or-gtk-build-system)
+    (arguments
+     `(#:configure-flags
+       (list
+        "--enable-polkit"
+        "--disable-appindicator"         ; Deprecated
+        "--with-systemdsystemunitdir=no" ; Not required
+        "--with-systemduserunitdir=no")  ; Not required
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'patch-python-shebangs
+           (lambda* (#:key inputs #:allow-other-keys)
+             (substitute* "apps/blueman-adapters.in"
+               (("@PYTHON@") (string-append (assoc-ref inputs "python")
+                                            "/bin/python3.7")))
+             (substitute* "apps/blueman-applet.in"
+               (("@PYTHON@") (string-append (assoc-ref inputs "python")
+                                            "/bin/python3.7")))
+             (substitute* "apps/blueman-assistant.in"
+               (("@PYTHON@") (string-append (assoc-ref inputs "python")
+                                            "/bin/python3.7")))
+             (substitute* "apps/blueman-manager.in"
+               (("@PYTHON@") (string-append (assoc-ref inputs "python")
+                                            "/bin/python3.7")))
+             (substitute* "apps/blueman-mechanism.in"
+               (("@PYTHON@") (string-append (assoc-ref inputs "python")
+                                            "/bin/python3.7")))
+             (substitute* "apps/blueman-report.in"
+               (("@PYTHON@") (string-append (assoc-ref inputs "python")
+                                            "/bin/python3.7")))
+             (substitute* "apps/blueman-rfcomm-watcher.in"
+               (("@PYTHON@") (string-append (assoc-ref inputs "python")
+                                            "/bin/python3.7")))
+             (substitute* "apps/blueman-sendto.in"
+               (("@PYTHON@") (string-append (assoc-ref inputs "python")
+                                            "/bin/python3.7")))
+             (substitute* "apps/blueman-services.in"
+               (("@PYTHON@") (string-append (assoc-ref inputs "python")
+                                            "/bin/python3.7")))
+             (substitute* "apps/blueman-tray.in"
+               (("@PYTHON@") (string-append (assoc-ref inputs "python")
+                                            "/bin/python3.7")))
+             #t)))))
+    (native-inputs
+     `(("cython" ,python-cython)
+       ("glib:bin" ,glib "bin")
+       ("gtk+:bin" ,gtk+ "bin")
+       ("intltool" ,intltool)
+       ("libtool" ,libtool)
+       ("pkg-config" ,pkg-config)))
+    (inputs
+     `(("adwaita-icon-theme" ,adwaita-icon-theme)
+       ("bluez" ,bluez)
+       ("dbus" ,dbus)
+       ("gdkpixbuf" ,gdk-pixbuf)
+       ("glib" ,glib)
+       ("gtk+" ,gtk+)
+       ("iproute2" ,iproute)
+       ("net-tools" ,net-tools)
+       ("pango" ,pango)
+       ("polkit" ,polkit)
+       ("pulseaudio" ,pulseaudio)
+       ("pycairo" ,python-pycairo)
+       ("pygobject" ,python-pygobject)
+       ("python" ,python)
+       ("libnm" ,libnma)))
+    (synopsis "GTK+ Bluetooth Manager")
+    (description "Blueman is a bluetooth management utility using bluez dbus
+backend.  It is designed to be easy to use for most common bluetooth tasks.")
+    (home-page "https://github.com/blueman-project/blueman")
+    (license license:gpl3+)))
+
 ;; The gnu.org ‘home’ for this GNU project is a directory listing with 1.6.0 as
 ;; the latest version.  The author's git repository, mentioned in the 1.6.0
 ;; README and otherwise legit-looking, contains a proper 1.7.0 release tarball
-- 
2.26.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [bug#40646] gnu: Add blueman.
  2020-04-15 17:52 [bug#40646] gnu: Add blueman Raghav Gururajan
@ 2020-04-19 11:22 ` Ludovic Courtès
  2020-04-19 11:27 ` Raghav Gururajan
  1 sibling, 0 replies; 7+ messages in thread
From: Ludovic Courtès @ 2020-04-19 11:22 UTC (permalink / raw)
  To: Raghav Gururajan; +Cc: 40646

Hi!

Raghav Gururajan <raghavgururajan@disroot.org> skribis:

> From 5f1a319c6b75b3eb28e8f80ea9b31fc5d6cf70df Mon Sep 17 00:00:00 2001
> From: Raghav Gururajan <raghavgururajan@disroot.org>
> Date: Wed, 15 Apr 2020 13:49:55 -0400
> Subject: [PATCH 2/2] gnu: Add blueman.
>
> * gnu/packages/networking.scm (blueman): New variable.

[...]

> +             (substitute* "apps/blueman-adapters.in"
> +               (("@PYTHON@") (string-append (assoc-ref inputs "python")
> +                                            "/bin/python3.7")))

Are you sure this is necessary?  If these are scripts, the
‘patch-shebangs’ phase should take care of it.  Perhaps it’s enough to
add ‘python-wrapper’ as an input (it provides a “python” executable) and
then you can remove all this?

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#40646] gnu: Add blueman.
  2020-04-15 17:52 [bug#40646] gnu: Add blueman Raghav Gururajan
  2020-04-19 11:22 ` Ludovic Courtès
@ 2020-04-19 11:27 ` Raghav Gururajan
  2020-04-19 22:21   ` Ludovic Courtès
  1 sibling, 1 reply; 7+ messages in thread
From: Raghav Gururajan @ 2020-04-19 11:27 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 40646

Hi Ludo!

>> + (substitute* "apps/blueman-adapters.in"
>> + (("@PYTHON@") (string-append (assoc-ref inputs "python")
>> + "/bin/python3.7")))
> 
> Are you sure this is necessary? If these are scripts, the
> ‘patch-shebangs’ phase should take care of it. Perhaps it’s enough to
> add ‘python-wrapper’ as an input (it provides a “python” executable) and
> then you can remove all this?

It is not necessary. Those scripts were not patched by 'patch-shebangs' phase, and received warnings during build. So corrected them manually. :-)

Regards,
RG.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#40646] gnu: Add blueman.
  2020-04-19 11:27 ` Raghav Gururajan
@ 2020-04-19 22:21   ` Ludovic Courtès
  2020-04-20  0:25     ` Raghav Gururajan
  0 siblings, 1 reply; 7+ messages in thread
From: Ludovic Courtès @ 2020-04-19 22:21 UTC (permalink / raw)
  To: Raghav Gururajan; +Cc: 40646

Hi,

"Raghav Gururajan" <raghavgururajan@disroot.org> skribis:

>>> + (substitute* "apps/blueman-adapters.in"
>>> + (("@PYTHON@") (string-append (assoc-ref inputs "python")
>>> + "/bin/python3.7")))
>> 
>> Are you sure this is necessary? If these are scripts, the
>> ‘patch-shebangs’ phase should take care of it. Perhaps it’s enough to
>> add ‘python-wrapper’ as an input (it provides a “python” executable) and
>> then you can remove all this?
>
> It is not necessary. Those scripts were not patched by 'patch-shebangs' phase, and received warnings during build. So corrected them manually. :-)

I think you overlooked the rest of my comment: if you add
‘python-wrapper’ as an input, everything will be fine.

Could you check?

Thanks in advance!

Ludo’.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#40646] gnu: Add blueman.
  2020-04-19 22:21   ` Ludovic Courtès
@ 2020-04-20  0:25     ` Raghav Gururajan
  2020-04-20  6:10       ` [bug#40646] gnu: Add blueman. (v2) Raghav Gururajan
  0 siblings, 1 reply; 7+ messages in thread
From: Raghav Gururajan @ 2020-04-20  0:25 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 40646

[-- Attachment #1: Type: text/plain, Size: 1104 bytes --]

Hi Ludo!

Yes yes, sorry, I did not over look. I was gonna try it and then goon let you know. :-)

Regards,
RG.

On April 19, 2020 6:21:23 p.m. EDT, "Ludovic Courtès" <ludo@gnu.org> wrote:
>Hi,
>
>"Raghav Gururajan" <raghavgururajan@disroot.org> skribis:
>
>>>> + (substitute* "apps/blueman-adapters.in"
>>>> + (("@PYTHON@") (string-append (assoc-ref inputs "python")
>>>> + "/bin/python3.7")))
>>> 
>>> Are you sure this is necessary? If these are scripts, the
>>> ‘patch-shebangs’ phase should take care of it. Perhaps it’s enough
>to
>>> add ‘python-wrapper’ as an input (it provides a “python” executable)
>and
>>> then you can remove all this?
>>
>> It is not necessary. Those scripts were not patched by
>'patch-shebangs' phase, and received warnings during build. So
>corrected them manually. :-)
>
>I think you overlooked the rest of my comment: if you add
>‘python-wrapper’ as an input, everything will be fine.
>
>Could you check?
>
>Thanks in advance!
>
>Ludo’.

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

[-- Attachment #2: Type: text/html, Size: 1751 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#40646] gnu: Add blueman. (v2)
  2020-04-20  0:25     ` Raghav Gururajan
@ 2020-04-20  6:10       ` Raghav Gururajan
  2020-04-22 15:20         ` bug#40646: " Ludovic Courtès
  0 siblings, 1 reply; 7+ messages in thread
From: Raghav Gururajan @ 2020-04-20  6:10 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 40646

[-- Attachment #1: Type: text/plain, Size: 1240 bytes --]

Hi Ludo!

> Yes yes, sorry, I did not over look. I was gonna try it and then goon let you
> know. :-)
> 
> Regards,
> RG.
> 
> On April 19, 2020 6:21:23 p.m. EDT, "Ludovic Courtès" <ludo@gnu.org> wrote:
> >Hi,
> >
> >"Raghav Gururajan" <raghavgururajan@disroot.org> skribis:
> >  
> >>>> + (substitute* "apps/blueman-adapters.in"
> >>>> + (("@PYTHON@") (string-append (assoc-ref inputs "python")
> >>>> + "/bin/python3.7")))  
> >>> 
> >>> Are you sure this is necessary? If these are scripts, the
> >>> ‘patch-shebangs’ phase should take care of it. Perhaps it’s enough  
> >to  
> >>> add ‘python-wrapper’ as an input (it provides a “python” executable)  
> >and  
> >>> then you can remove all this?  
> >>
> >> It is not necessary. Those scripts were not patched by  
> >'patch-shebangs' phase, and received warnings during build. So
> >corrected them manually. :-)
> >
> >I think you overlooked the rest of my comment: if you add
> >‘python-wrapper’ as an input, everything will be fine.
> >
> >Could you check?
> >
> >Thanks in advance!

Please find the revised patch attached with this email. I tried
'python-wrapper', but still getting warnings during build.

Regards,
RG.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-blueman.patch --]
[-- Type: text/x-patch, Size: 3024 bytes --]

From 8278afcea18d19324b790343e3a047bc9ab567d7 Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <raghavgururajan@disroot.org>
Date: Mon, 20 Apr 2020 02:05:49 -0400
Subject: [PATCH] gnu: Add blueman.

* gnu/packages/networking.scm (blueman): New variable.
---
 gnu/packages/networking.scm | 51 +++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index f754683bb9..43d14197f4 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -105,7 +105,9 @@
   #:use-module (gnu packages perl)
   #:use-module (gnu packages perl-check)
   #:use-module (gnu packages pkg-config)
+  #:use-module (gnu packages polkit)
   #:use-module (gnu packages pretty-print)
+  #:use-module (gnu packages pulseaudio)
   #:use-module (gnu packages python)
   #:use-module (gnu packages python-web)
   #:use-module (gnu packages python-xyz)
@@ -122,6 +124,55 @@
   #:use-module (gnu packages xml)
   #:use-module (ice-9 match))
 
+(define-public blueman
+  (package
+    (name "blueman")
+    (version "2.1.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri
+        (string-append "https://github.com/blueman-project/blueman/releases/"
+                       "download/2.1.2/blueman-2.1.2.tar.gz"))
+       (sha256
+        (base32 "0wamxdw36c8i3aqwmja5q70fajqwd7inpkvlpkldd54wdxbcd38d"))))
+    (build-system glib-or-gtk-build-system)
+    (arguments
+     `(#:configure-flags
+       (list
+        "--enable-polkit"
+        "--disable-appindicator"         ; Deprecated
+        "--with-systemdsystemunitdir=no" ; Not required
+        "--with-systemduserunitdir=no")))  ; Not required
+    (native-inputs
+     `(("cython" ,python-cython)
+       ("glib:bin" ,glib "bin")
+       ("gtk+:bin" ,gtk+ "bin")
+       ("intltool" ,intltool)
+       ("libtool" ,libtool)
+       ("pkg-config" ,pkg-config)))
+    (inputs
+     `(("adwaita-icon-theme" ,adwaita-icon-theme)
+       ("bluez" ,bluez)
+       ("dbus" ,dbus)
+       ("gdkpixbuf" ,gdk-pixbuf)
+       ("glib" ,glib)
+       ("gtk+" ,gtk+)
+       ("iproute2" ,iproute)
+       ("net-tools" ,net-tools)
+       ("pango" ,pango)
+       ("polkit" ,polkit)
+       ("pulseaudio" ,pulseaudio)
+       ("pycairo" ,python-pycairo)
+       ("pygobject" ,python-pygobject)
+       ("python" ,python-wrapper)
+       ("libnm" ,libnma)))
+    (synopsis "GTK+ Bluetooth Manager")
+    (description "Blueman is a bluetooth management utility using bluez dbus
+backend.  It is designed to be easy to use for most common bluetooth tasks.")
+    (home-page "https://github.com/blueman-project/blueman")
+    (license license:gpl3+)))
+
 ;; The gnu.org ‘home’ for this GNU project is a directory listing with 1.6.0 as
 ;; the latest version.  The author's git repository, mentioned in the 1.6.0
 ;; README and otherwise legit-looking, contains a proper 1.7.0 release tarball
-- 
2.26.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* bug#40646: gnu: Add blueman. (v2)
  2020-04-20  6:10       ` [bug#40646] gnu: Add blueman. (v2) Raghav Gururajan
@ 2020-04-22 15:20         ` Ludovic Courtès
  0 siblings, 0 replies; 7+ messages in thread
From: Ludovic Courtès @ 2020-04-22 15:20 UTC (permalink / raw)
  To: Raghav Gururajan; +Cc: 40646-done

[-- Attachment #1: Type: text/plain, Size: 403 bytes --]

Hi,

Raghav Gururajan <raghavgururajan@disroot.org> skribis:

> From 8278afcea18d19324b790343e3a047bc9ab567d7 Mon Sep 17 00:00:00 2001
> From: Raghav Gururajan <raghavgururajan@disroot.org>
> Date: Mon, 20 Apr 2020 02:05:49 -0400
> Subject: [PATCH] gnu: Add blueman.
>
> * gnu/packages/networking.scm (blueman): New variable.

Applied with the cosmetic changes below.  Thanks!

Ludo’.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 796 bytes --]

diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 9864783bd4..6231632c06 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -167,9 +167,10 @@
        ("pygobject" ,python-pygobject)
        ("python" ,python-wrapper)
        ("libnm" ,libnma)))
-    (synopsis "GTK+ Bluetooth Manager")
-    (description "Blueman is a bluetooth management utility using bluez dbus
-backend.  It is designed to be easy to use for most common bluetooth tasks.")
+    (synopsis "GTK+ Bluetooth manager")
+    (description "Blueman is a Bluetooth management utility using the Bluez
+D-Bus backend.  It is designed to be easy to use for most common Bluetooth
+tasks.")
     (home-page "https://github.com/blueman-project/blueman")
     (license license:gpl3+)))
 

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-04-22 15:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-15 17:52 [bug#40646] gnu: Add blueman Raghav Gururajan
2020-04-19 11:22 ` Ludovic Courtès
2020-04-19 11:27 ` Raghav Gururajan
2020-04-19 22:21   ` Ludovic Courtès
2020-04-20  0:25     ` Raghav Gururajan
2020-04-20  6:10       ` [bug#40646] gnu: Add blueman. (v2) Raghav Gururajan
2020-04-22 15:20         ` bug#40646: " Ludovic Courtès

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).