all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] gnu: Add toxic (Need help with ncurses+libnotify not being found).
@ 2016-08-21  2:25 ng0
  2016-08-21  7:29 ` Alex Kost
  0 siblings, 1 reply; 6+ messages in thread
From: ng0 @ 2016-08-21  2:25 UTC (permalink / raw)
  To: guix-devel

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

There are serious cosmetic improvements I need to to make on these
patches, I am aware of this, but what I am asking help for is:

I've tried for hours many ways to make toxic find "libnotify" and
"ncursesw" ... It does not
happen... setenv. substitute. ldflags. user_ldflags. cflags. user_cflags. nothing..

Can someone shed some light on this?


[-- Attachment #2: 0001-gnu-Add-libtoxcore.patch --]
[-- Type: text/x-patch, Size: 3497 bytes --]

From a5e87597d89988cd88bbac4de11a4cd6292f58ad Mon Sep 17 00:00:00 2001
From: ng0 <ng0@we.make.ritual.n0.is>
Date: Sat, 20 Aug 2016 22:14:17 +0000
Subject: [PATCH 1/3] gnu: Add libtoxcore.

* gnu/packages/messaging.scm (libtoxcore): New variable.
---
 gnu/packages/messaging.scm | 48 +++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 47 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index de9ac17..0c8bc3d 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -5,6 +5,7 @@
 ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
 ;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
 ;;; Copyright © 2015 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -28,6 +29,7 @@
   #:use-module (guix utils)
   #:use-module (guix packages)
   #:use-module (guix download)
+  #:use-module (guix git-download)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system glib-or-gtk)
   #:use-module (guix build-system python)
@@ -35,6 +37,7 @@
   #:use-module (gnu packages autotools)
   #:use-module (gnu packages avahi)
   #:use-module (gnu packages check)
+  #:use-module (gnu packages crypto)
   #:use-module (gnu packages cyrus-sasl)
   #:use-module (gnu packages databases)
   #:use-module (gnu packages documentation)
@@ -58,7 +61,9 @@
   #:use-module (gnu packages admin)
   #:use-module (gnu packages linux)
   #:use-module (gnu packages tls)
-  #:use-module (gnu packages icu4c))
+  #:use-module (gnu packages icu4c)
+  #:use-module (gnu packages video)
+  #:use-module (gnu packages xiph))
 
 (define-public libotr
   (package
@@ -492,4 +497,45 @@ transformation; audio and video conferences; file transfer; TLS, GPG and
 end-to-end encryption support; XML console.")
     (license gpl3+)))
 
+(define-public libtoxcore
+  (let ((revision "1")
+        (commit "755f084e8720b349026c85afbad58954cb7ff1d4"))
+    (package
+      (name "libtoxcore")
+      (version (string-append "0.0.0" "-"
+                              revision (string-take commit 8)))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/irungentoo/toxcore.git")
+                      (commit commit)))
+                (file-name (string-append name "-" version))
+                (sha256
+                 (base32
+                  "0ap1gvlyihnfivv235dbrgsxsiiz70bhlmlr5gn1027w3h5kqz8w"))))
+      (build-system gnu-build-system)
+      (native-inputs
+       `(("autoconf" ,autoconf)
+         ("automake" ,automake)
+         ("libtool" ,libtool)
+         ;; TODO: Add when test suite is capable of passing.
+         ;; ("check" ,check)
+         ("pkg-config" ,pkg-config)))
+      (inputs
+       `(("libsodium" ,libsodium)
+         ("opus" ,opus)
+         ("libvpx" ,libvpx)))
+      (arguments
+       `(#:phases
+         (modify-phases %standard-phases
+           (add-before 'configure 'autoconf
+             (lambda _
+               (zero? (system* "./autogen.sh")))))
+         #:tests? #f)) ; FIXME: Tests require ip6-localhost in /etc/hosts
+      (synopsis "Library for the Tox encrypted messenger protocol")
+      (description
+       "C library implementation of the Tox encrypted messenger protocol.")
+      (license gpl3+)
+      (home-page "http://tox.chat"))))
+
 ;;; messaging.scm ends here
-- 
2.9.3


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: 0002-gnu-Add-freealut.patch --]
[-- Type: text/x-patch, Size: 1567 bytes --]

From 97c2b1e9f6484c2ea5fefce5e651e592501b5d6d Mon Sep 17 00:00:00 2001
From: ng0 <ng0@we.make.ritual.n0.is>
Date: Sun, 21 Aug 2016 02:17:27 +0000
Subject: [PATCH 2/3] gnu: Add freealut.

* gnu/packages/audio.scm (freealut): New variable.
---
 gnu/packages/audio.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index a214ef3..eb08e24 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -1509,6 +1509,30 @@ buffers, and audio capture.")
     (home-page "http://kcat.strangesoft.net/openal.html")
     (license license:lgpl2.0+)))
 
+(define-public freealut
+  (package
+    (name "freealut")
+    (version "1.1.0")
+    (source (origin
+              (method url-fetch)
+              ;; upstream url is dead
+              (uri (string-append
+                    "http://pkgs.fedoraproject.org/repo/pkgs/" name "/" name "-" version
+                    ".tar.gz" "/e089b28a0267faabdb6c079ee173664a/" name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "0kzlil6112x2429nw6mycmif8y6bxr2cwjcvp18vh6s7g63ymlb0"))))
+    (build-system cmake-build-system)
+    (arguments
+     `(#:tests? #f))  ; no check target
+    (inputs
+     `(("openal" ,openal)))
+    (synopsis "Free implementation of OpenAL's ALUT standard")
+    (description
+     "OpenAL Utility Toolkit")
+    (home-page "http://kcat.strangesoft.net/openal.html")
+    (license license:lgpl2.0)))
+
 (define-public patchage
   (package
     (name "patchage")
-- 
2.9.3


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #4: 0003-gnu-Add-toxic.patch --]
[-- Type: text/x-patch, Size: 2864 bytes --]

From 60ef9e92a87af1a09d2cd54a2dae06904a4e211a Mon Sep 17 00:00:00 2001
From: ng0 <ng0@we.make.ritual.n0.is>
Date: Sun, 21 Aug 2016 02:18:02 +0000
Subject: [PATCH 3/3] gnu: Add toxic.

* gnu/packages/messaging.scm (toxic): New variable.
---
 gnu/packages/messaging.scm | 47 +++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 46 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index 0c8bc3d..266b5b7 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -34,10 +34,13 @@
   #:use-module (guix build-system glib-or-gtk)
   #:use-module (guix build-system python)
   #:use-module (gnu packages)
+  #:use-module (gnu packages aidc)
+  #:use-module (gnu packages audio)
   #:use-module (gnu packages autotools)
   #:use-module (gnu packages avahi)
   #:use-module (gnu packages check)
   #:use-module (gnu packages crypto)
+  #:use-module (gnu packages curl)
   #:use-module (gnu packages cyrus-sasl)
   #:use-module (gnu packages databases)
   #:use-module (gnu packages documentation)
@@ -63,7 +66,8 @@
   #:use-module (gnu packages tls)
   #:use-module (gnu packages icu4c)
   #:use-module (gnu packages video)
-  #:use-module (gnu packages xiph))
+  #:use-module (gnu packages xiph)
+  #:use-module (gnu packages textutils))
 
 (define-public libotr
   (package
@@ -538,4 +542,45 @@ end-to-end encryption support; XML console.")
       (license gpl3+)
       (home-page "http://tox.chat"))))
 
+(define-public toxic
+  (package
+    (name "toxic")
+    (version "0.7.0")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://github.com/JFreegman/"
+                                  name "/archive/v" version ".tar.gz"))
+              (file-name (string-append name "-" version))
+              (sha256
+               (base32
+                "01khprl4rrlncnpq9xiq128c0r400snpvx9qjhrfw97xqdfsn7pi"))))
+      (build-system gnu-build-system)
+      (native-inputs
+       `(("autoconf" ,autoconf)
+         ("automake" ,automake)
+         ("libtool" ,libtool)
+         ("pkg-config" ,pkg-config)))
+      (inputs
+       `(("libtoxcore" ,libtoxcore)
+         ("ncurses" ,ncurses)
+         ("curl" ,curl)
+         ("openal" ,openal)
+         ("freealut" ,freealut)
+         ("libnotify" ,libnotify)
+         ("asciidoc" ,asciidoc)
+         ("libx11" ,libx11)
+         ("libvpx" ,libvpx)
+         ("qrencode" ,qrencode)
+         ("libconfig" ,libconfig)
+         ("libsodium" ,libsodium)))
+      (arguments
+       `(#:phases
+         (modify-phases %standard-phases
+           (delete 'configure)))) ; No configure script
+      (synopsis "Ncurses based Tox client")
+      (description
+       "Yay, new stuff..")
+      (license gpl3+)
+      (home-page "http://tox.chat")))
+
 ;;; messaging.scm ends here
-- 
2.9.3


[-- Attachment #5: Type: text/plain, Size: 70 bytes --]


-- 
ng0
For non-prism friendly talk find me on http://www.psyced.org

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

* Re: [PATCH] gnu: Add toxic (Need help with ncurses+libnotify not being found).
  2016-08-21  2:25 [PATCH] gnu: Add toxic (Need help with ncurses+libnotify not being found) ng0
@ 2016-08-21  7:29 ` Alex Kost
  2016-08-21 10:14   ` ng0
  0 siblings, 1 reply; 6+ messages in thread
From: Alex Kost @ 2016-08-21  7:29 UTC (permalink / raw)
  To: ng0; +Cc: guix-devel

ng0 (2016-08-21 05:25 +0300) wrote:

> There are serious cosmetic improvements I need to to make on these
> patches, I am aware of this, but what I am asking help for is:
>
> I've tried for hours many ways to make toxic find "libnotify" and
> "ncursesw" ... It does not
> happen... setenv. substitute. ldflags. user_ldflags. cflags. user_cflags. nothing..
>
> Can someone shed some light on this?

As I see 'toxic' has a hand-written Makefile, so it probably doesn't use
pkg-config properly to find "libnotify".  Did you try to add
"<libnotify-store-dir>/include/libnotify" to CPATH (as it is
done in 'webkitgtk' package, for example)?

[...]
> +(define-public libtoxcore
> +  (let ((revision "1")
> +        (commit "755f084e8720b349026c85afbad58954cb7ff1d4"))
> +    (package
> +      (name "libtoxcore")
> +      (version (string-append "0.0.0" "-"
> +                              revision (string-take commit 8)))
> +      (source (origin
> +                (method git-fetch)
> +                (uri (git-reference
> +                      (url "https://github.com/irungentoo/toxcore.git")
> +                      (commit commit)))
> +                (file-name (string-append name "-" version))

I prefer:          (file-name (string-append name "-" version "-checkout"))
I think it is more clean.

> +                (sha256
> +                 (base32
> +                  "0ap1gvlyihnfivv235dbrgsxsiiz70bhlmlr5gn1027w3h5kqz8w"))))
> +      (build-system gnu-build-system)
> +      (native-inputs
> +       `(("autoconf" ,autoconf)
> +         ("automake" ,automake)
> +         ("libtool" ,libtool)
> +         ;; TODO: Add when test suite is capable of passing.
> +         ;; ("check" ,check)
> +         ("pkg-config" ,pkg-config)))
> +      (inputs
> +       `(("libsodium" ,libsodium)
> +         ("opus" ,opus)
> +         ("libvpx" ,libvpx)))
> +      (arguments
> +       `(#:phases
> +         (modify-phases %standard-phases
> +           (add-before 'configure 'autoconf

It should be added after 'unpack' phase, because... I forgot the reason :-)
but it relates to other phases between 'unpack' and 'configure' on "arm"
or "mips" systems.

[...]
> +(define-public toxic
> +  (package
> +    (name "toxic")
> +    (version "0.7.0")
> +    (source (origin
> +              (method url-fetch)
> +              (uri (string-append "https://github.com/JFreegman/"
> +                                  name "/archive/v" version ".tar.gz"))
> +              (file-name (string-append name "-" version))

Don't forget to change it to:

                 (file-name (string-append name "-" version ".tar.gz"))

-- 
Alex

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

* Re: [PATCH] gnu: Add toxic (Need help with ncurses+libnotify not being found).
  2016-08-21  7:29 ` Alex Kost
@ 2016-08-21 10:14   ` ng0
  2016-08-21 16:39     ` ng0
  0 siblings, 1 reply; 6+ messages in thread
From: ng0 @ 2016-08-21 10:14 UTC (permalink / raw)
  To: Alex Kost; +Cc: guix-devel

Hi,

thanks for the CPATH info, I will try that.

Alex Kost <alezost@gmail.com> writes:

> ng0 (2016-08-21 05:25 +0300) wrote:
>
>> There are serious cosmetic improvements I need to to make on these
>> patches, I am aware of this, but what I am asking help for is:
>>
>> I've tried for hours many ways to make toxic find "libnotify" and
>> "ncursesw" ... It does not
>> happen... setenv. substitute. ldflags. user_ldflags. cflags. user_cflags. nothing..
>>
>> Can someone shed some light on this?
>
> As I see 'toxic' has a hand-written Makefile, so it probably doesn't use
> pkg-config properly to find "libnotify".  Did you try to add
> "<libnotify-store-dir>/include/libnotify" to CPATH (as it is
> done in 'webkitgtk' package, for example)?

I think so, but I will try again, thanks for the package example.

> [...]
>> +(define-public libtoxcore
>> +  (let ((revision "1")
>> +        (commit "755f084e8720b349026c85afbad58954cb7ff1d4"))
>> +    (package
>> +      (name "libtoxcore")
>> +      (version (string-append "0.0.0" "-"
>> +                              revision (string-take commit 8)))
>> +      (source (origin
>> +                (method git-fetch)
>> +                (uri (git-reference
>> +                      (url "https://github.com/irungentoo/toxcore.git")
>> +                      (commit commit)))
>> +                (file-name (string-append name "-" version))
>
> I prefer:          (file-name (string-append name "-" version "-checkout"))
> I think it is more clean.

^ see "I am aware of the fact that it needs cosmetic changes" or: wip is
very wip at my side usually, I would've changed this before an official
patch send.

>> +                (sha256
>> +                 (base32
>> +                  "0ap1gvlyihnfivv235dbrgsxsiiz70bhlmlr5gn1027w3h5kqz8w"))))
>> +      (build-system gnu-build-system)
>> +      (native-inputs
>> +       `(("autoconf" ,autoconf)
>> +         ("automake" ,automake)
>> +         ("libtool" ,libtool)
>> +         ;; TODO: Add when test suite is capable of passing.
>> +         ;; ("check" ,check)
>> +         ("pkg-config" ,pkg-config)))
>> +      (inputs
>> +       `(("libsodium" ,libsodium)
>> +         ("opus" ,opus)
>> +         ("libvpx" ,libvpx)))
>> +      (arguments
>> +       `(#:phases
>> +         (modify-phases %standard-phases
>> +           (add-before 'configure 'autoconf
>
> It should be added after 'unpack' phase, because... I forgot the reason :-)
> but it relates to other phases between 'unpack' and 'configure' on "arm"
> or "mips" systems.

This package is a version bumped + changed alist to add-after/before
package based on the pacakage davexunit has. I will adjust later.

> [...]
>> +(define-public toxic
>> +  (package
>> +    (name "toxic")
>> +    (version "0.7.0")
>> +    (source (origin
>> +              (method url-fetch)
>> +              (uri (string-append "https://github.com/JFreegman/"
>> +                                  name "/archive/v" version ".tar.gz"))
>> +              (file-name (string-append name "-" version))
>
> Don't forget to change it to:
>
>                  (file-name (string-append name "-" version ".tar.gz"))
>
> -- 
> Alex

-- 
ng0
For non-prism friendly talk find me on http://www.psyced.org

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

* Re: [PATCH] gnu: Add toxic (Need help with ncurses+libnotify not being found).
  2016-08-21 10:14   ` ng0
@ 2016-08-21 16:39     ` ng0
  2016-08-21 17:31       ` [PATCH] gnu: Add libtoxcore ng0
  0 siblings, 1 reply; 6+ messages in thread
From: ng0 @ 2016-08-21 16:39 UTC (permalink / raw)
  To: Alex Kost; +Cc: guix-devel

ng0 <ng0@we.make.ritual.n0.is> writes:

> Hi,
>
> thanks for the CPATH info, I will try that.
>
> Alex Kost <alezost@gmail.com> writes:
>
>> ng0 (2016-08-21 05:25 +0300) wrote:
>>
>>> There are serious cosmetic improvements I need to to make on these
>>> patches, I am aware of this, but what I am asking help for is:
>>>
>>> I've tried for hours many ways to make toxic find "libnotify" and
>>> "ncursesw" ... It does not
>>> happen... setenv. substitute. ldflags. user_ldflags. cflags. user_cflags. nothing..
>>>
>>> Can someone shed some light on this?
>>
>> As I see 'toxic' has a hand-written Makefile, so it probably doesn't use
>> pkg-config properly to find "libnotify".  Did you try to add
>> "<libnotify-store-dir>/include/libnotify" to CPATH (as it is
>> done in 'webkitgtk' package, for example)?
>
> I think so, but I will try again, thanks for the package example.
>
>> [...]
>>> +(define-public libtoxcore
>>> +  (let ((revision "1")
>>> +        (commit "755f084e8720b349026c85afbad58954cb7ff1d4"))
>>> +    (package
>>> +      (name "libtoxcore")
>>> +      (version (string-append "0.0.0" "-"
>>> +                              revision (string-take commit 8)))
>>> +      (source (origin
>>> +                (method git-fetch)
>>> +                (uri (git-reference
>>> +                      (url "https://github.com/irungentoo/toxcore.git")
>>> +                      (commit commit)))
>>> +                (file-name (string-append name "-" version))
>>
>> I prefer:          (file-name (string-append name "-" version "-checkout"))
>> I think it is more clean.
>
> ^ see "I am aware of the fact that it needs cosmetic changes" or: wip is
> very wip at my side usually, I would've changed this before an official
> patch send.
>
>>> +                (sha256
>>> +                 (base32
>>> +                  "0ap1gvlyihnfivv235dbrgsxsiiz70bhlmlr5gn1027w3h5kqz8w"))))
>>> +      (build-system gnu-build-system)
>>> +      (native-inputs
>>> +       `(("autoconf" ,autoconf)
>>> +         ("automake" ,automake)
>>> +         ("libtool" ,libtool)
>>> +         ;; TODO: Add when test suite is capable of passing.
>>> +         ;; ("check" ,check)
>>> +         ("pkg-config" ,pkg-config)))
>>> +      (inputs
>>> +       `(("libsodium" ,libsodium)
>>> +         ("opus" ,opus)
>>> +         ("libvpx" ,libvpx)))
>>> +      (arguments
>>> +       `(#:phases
>>> +         (modify-phases %standard-phases
>>> +           (add-before 'configure 'autoconf
>>
>> It should be added after 'unpack' phase, because... I forgot the reason :-)
>> but it relates to other phases between 'unpack' and 'configure' on "arm"
>> or "mips" systems.
>
> This package is a version bumped + changed alist to add-after/before
> package based on the pacakage davexunit has. I will adjust later.
>
>> [...]
>>> +(define-public toxic
>>> +  (package
>>> +    (name "toxic")
>>> +    (version "0.7.0")
>>> +    (source (origin
>>> +              (method url-fetch)
>>> +              (uri (string-append "https://github.com/JFreegman/"
>>> +                                  name "/archive/v" version ".tar.gz"))
>>> +              (file-name (string-append name "-" version))
>>
>> Don't forget to change it to:
>>
>>                  (file-name (string-append name "-" version ".tar.gz"))

I don't want to fix this. This is upstreams (toxic) problem, so I wait
on the result of my bugtickets.
The utox OrangeGoblin packaged works, I version bumped it.. I will
create an updated patch of libtoxcore, so that OrangeGoblin can send in
utox based on that.

-- 
ng0
For non-prism friendly talk find me on http://www.psyced.org

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

* Re: [PATCH] gnu: Add libtoxcore.
  2016-08-21 16:39     ` ng0
@ 2016-08-21 17:31       ` ng0
  2016-08-22 10:22         ` ng0
  0 siblings, 1 reply; 6+ messages in thread
From: ng0 @ 2016-08-21 17:31 UTC (permalink / raw)
  To: Alex Kost; +Cc: guix-devel

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

I have started a request with other people to let tox* publish release
tarballs instead of just git and github's "master.tar.gz".


[-- Attachment #2: 0002-gnu-Add-libtoxcore.patch --]
[-- Type: text/x-patch, Size: 3501 bytes --]

From 3df3eee3c5841f954aca35c1024e54ec09e28f24 Mon Sep 17 00:00:00 2001
From: ng0 <ng0@we.make.ritual.n0.is>
Date: Sat, 20 Aug 2016 22:14:17 +0000
Subject: [PATCH 2/5] gnu: Add libtoxcore.

* gnu/packages/messaging.scm (libtoxcore): New variable.
---
 gnu/packages/messaging.scm | 48 +++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 47 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index de9ac17..e3c0c0b 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -5,6 +5,7 @@
 ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
 ;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
 ;;; Copyright © 2015 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -28,6 +29,7 @@
   #:use-module (guix utils)
   #:use-module (guix packages)
   #:use-module (guix download)
+  #:use-module (guix git-download)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system glib-or-gtk)
   #:use-module (guix build-system python)
@@ -35,6 +37,7 @@
   #:use-module (gnu packages autotools)
   #:use-module (gnu packages avahi)
   #:use-module (gnu packages check)
+  #:use-module (gnu packages crypto)
   #:use-module (gnu packages cyrus-sasl)
   #:use-module (gnu packages databases)
   #:use-module (gnu packages documentation)
@@ -58,7 +61,9 @@
   #:use-module (gnu packages admin)
   #:use-module (gnu packages linux)
   #:use-module (gnu packages tls)
-  #:use-module (gnu packages icu4c))
+  #:use-module (gnu packages icu4c)
+  #:use-module (gnu packages video)
+  #:use-module (gnu packages xiph))
 
 (define-public libotr
   (package
@@ -492,4 +497,45 @@ transformation; audio and video conferences; file transfer; TLS, GPG and
 end-to-end encryption support; XML console.")
     (license gpl3+)))
 
+(define-public libtoxcore
+  (let ((revision "1")
+        (commit "755f084e8720b349026c85afbad58954cb7ff1d4"))
+    (package
+      (name "libtoxcore")
+      (version (string-append "0.0.0" "-"
+                              revision (string-take commit 8)))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/irungentoo/toxcore.git")
+                      (commit commit)))
+                (file-name (string-append name "-" version "-checkout"))
+                (sha256
+                 (base32
+                  "0ap1gvlyihnfivv235dbrgsxsiiz70bhlmlr5gn1027w3h5kqz8w"))))
+      (build-system gnu-build-system)
+      (native-inputs
+       `(("autoconf" ,autoconf)
+         ("automake" ,automake)
+         ("libtool" ,libtool)
+         ;; TODO: Add when test suite is capable of passing.
+         ;; ("check" ,check)
+         ("pkg-config" ,pkg-config)))
+      (inputs
+       `(("libsodium" ,libsodium)
+         ("opus" ,opus)
+         ("libvpx" ,libvpx)))
+      (arguments
+       `(#:phases
+         (modify-phases %standard-phases
+           (add-after 'unpack 'autoconf
+             (lambda _
+               (zero? (system* "./autogen.sh")))))
+         #:tests? #f)) ; FIXME: Testsuite fails, reasons unspecific.
+      (synopsis "Library for the Tox encrypted messenger protocol")
+      (description
+       "C library implementation of the Tox encrypted messenger protocol.")
+      (license gpl3+)
+      (home-page "https://tox.chat"))))
+
 ;;; messaging.scm ends here
-- 
2.9.3


[-- Attachment #3: Type: text/plain, Size: 166 bytes --]


About the very short description of freealut: I have 0 clue what exactly
this is other than what the description says and that it is needed for
tox client "toxic".


[-- Attachment #4: 0003-gnu-Add-freealut.patch --]
[-- Type: text/x-patch, Size: 2072 bytes --]

From b04d4bf50354dbe481d237380428b4e2de3c22fe Mon Sep 17 00:00:00 2001
From: ng0 <ng0@we.make.ritual.n0.is>
Date: Sun, 21 Aug 2016 02:17:27 +0000
Subject: [PATCH 3/5] gnu: Add freealut.

* gnu/packages/audio.scm (freealut): New variable.
---
 gnu/packages/audio.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index a214ef3..900fb4b 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -6,6 +6,7 @@
 ;;; Copyright © 2015, 2016 Mark H Weaver <mhw@netris.org>
 ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
+;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1509,6 +1510,32 @@ buffers, and audio capture.")
     (home-page "http://kcat.strangesoft.net/openal.html")
     (license license:lgpl2.0+)))
 
+(define-public freealut
+  (package
+    (name "freealut")
+    (version "1.1.0")
+    (source (origin
+              (method url-fetch)
+              ;; Upstream url is unclear, many systems use Fedora, there is also
+              ;; https://github.com/vancegroup/freealut though the status of it
+              ;; (official? unofficial?) is not clear.
+              (uri (string-append
+                    "https://pkgs.fedoraproject.org/repo/pkgs/" name "/" name "-"
+                    version ".tar.gz" "/e089b28a0267faabdb6c079ee173664a/" name
+                    "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "0kzlil6112x2429nw6mycmif8y6bxr2cwjcvp18vh6s7g63ymlb0"))))
+    (build-system cmake-build-system)
+    (arguments
+     `(#:tests? #f))  ; no check target
+    (inputs
+     `(("openal" ,openal)))
+    (synopsis "Free implementation of OpenAL's ALUT standard")
+    (description "freealut is the OpenAL Utility Toolkit.")
+    (home-page "http://kcat.strangesoft.net/openal.html")
+    (license license:lgpl2.0)))
+
 (define-public patchage
   (package
     (name "patchage")
-- 
2.9.3


[-- Attachment #5: Type: text/plain, Size: 155 bytes --]


I will not add toxic unless
https://github.com/JFreegman/toxic/issues/405 is solved.
-- 
ng0
For non-prism friendly talk find me on http://www.psyced.org

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

* Re: [PATCH] gnu: Add libtoxcore.
  2016-08-21 17:31       ` [PATCH] gnu: Add libtoxcore ng0
@ 2016-08-22 10:22         ` ng0
  0 siblings, 0 replies; 6+ messages in thread
From: ng0 @ 2016-08-22 10:22 UTC (permalink / raw)
  To: Alex Kost; +Cc: guix-devel

ng0 <ng0@we.make.ritual.n0.is> writes:

> I have started a request with other people to let tox* publish release
> tarballs instead of just git and github's "master.tar.gz".
>
> From 3df3eee3c5841f954aca35c1024e54ec09e28f24 Mon Sep 17 00:00:00 2001
> From: ng0 <ng0@we.make.ritual.n0.is>
> Date: Sat, 20 Aug 2016 22:14:17 +0000
> Subject: [PATCH 2/5] gnu: Add libtoxcore.
>
> * gnu/packages/messaging.scm (libtoxcore): New variable.
> ---
>  gnu/packages/messaging.scm | 48 +++++++++++++++++++++++++++++++++++++++++++++-
>  1 file changed, 47 insertions(+), 1 deletion(-)
>
> diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
> index de9ac17..e3c0c0b 100644
> --- a/gnu/packages/messaging.scm
> +++ b/gnu/packages/messaging.scm
> @@ -5,6 +5,7 @@
>  ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
>  ;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
>  ;;; Copyright © 2015 Efraim Flashner <efraim@flashner.co.il>
> +;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
>  ;;;
>  ;;; This file is part of GNU Guix.
>  ;;;
> @@ -28,6 +29,7 @@
>    #:use-module (guix utils)
>    #:use-module (guix packages)
>    #:use-module (guix download)
> +  #:use-module (guix git-download)
>    #:use-module (guix build-system gnu)
>    #:use-module (guix build-system glib-or-gtk)
>    #:use-module (guix build-system python)
> @@ -35,6 +37,7 @@
>    #:use-module (gnu packages autotools)
>    #:use-module (gnu packages avahi)
>    #:use-module (gnu packages check)
> +  #:use-module (gnu packages crypto)
>    #:use-module (gnu packages cyrus-sasl)
>    #:use-module (gnu packages databases)
>    #:use-module (gnu packages documentation)
> @@ -58,7 +61,9 @@
>    #:use-module (gnu packages admin)
>    #:use-module (gnu packages linux)
>    #:use-module (gnu packages tls)
> -  #:use-module (gnu packages icu4c))
> +  #:use-module (gnu packages icu4c)
> +  #:use-module (gnu packages video)
> +  #:use-module (gnu packages xiph))
>  
>  (define-public libotr
>    (package
> @@ -492,4 +497,45 @@ transformation; audio and video conferences; file transfer; TLS, GPG and
>  end-to-end encryption support; XML console.")
>      (license gpl3+)))

Here I should prepend a link to a bugticket or stating that upstream
does currently not release usable tarballs (only tarball is
master.tar.gz on github, which is not usable for us.
).

> +(define-public libtoxcore
> +  (let ((revision "1")
> +        (commit "755f084e8720b349026c85afbad58954cb7ff1d4"))
> +    (package
> +      (name "libtoxcore")
> +      (version (string-append "0.0.0" "-"
> +                              revision (string-take commit 8)))
> +      (source (origin
> +                (method git-fetch)
> +                (uri (git-reference
> +                      (url "https://github.com/irungentoo/toxcore.git")
> +                      (commit commit)))
> +                (file-name (string-append name "-" version "-checkout"))
> +                (sha256
> +                 (base32
> +                  "0ap1gvlyihnfivv235dbrgsxsiiz70bhlmlr5gn1027w3h5kqz8w"))))
> +      (build-system gnu-build-system)
> +      (native-inputs
> +       `(("autoconf" ,autoconf)
> +         ("automake" ,automake)
> +         ("libtool" ,libtool)
> +         ;; TODO: Add when test suite is capable of passing.
> +         ;; ("check" ,check)
> +         ("pkg-config" ,pkg-config)))
> +      (inputs
> +       `(("libsodium" ,libsodium)
> +         ("opus" ,opus)
> +         ("libvpx" ,libvpx)))
> +      (arguments
> +       `(#:phases
> +         (modify-phases %standard-phases
> +           (add-after 'unpack 'autoconf
> +             (lambda _
> +               (zero? (system* "./autogen.sh")))))
> +         #:tests? #f)) ; FIXME: Testsuite fails, reasons unspecific.
> +      (synopsis "Library for the Tox encrypted messenger protocol")
> +      (description
> +       "C library implementation of the Tox encrypted messenger protocol.")
> +      (license gpl3+)
> +      (home-page "https://tox.chat"))))
> +
>  ;;; messaging.scm ends here
> -- 
> 2.9.3
>
>
> About the very short description of freealut: I have 0 clue what exactly
> this is other than what the description says and that it is needed for
> tox client "toxic".
>
> From b04d4bf50354dbe481d237380428b4e2de3c22fe Mon Sep 17 00:00:00 2001
> From: ng0 <ng0@we.make.ritual.n0.is>
> Date: Sun, 21 Aug 2016 02:17:27 +0000
> Subject: [PATCH 3/5] gnu: Add freealut.
>
> * gnu/packages/audio.scm (freealut): New variable.
> ---
>  gnu/packages/audio.scm | 27 +++++++++++++++++++++++++++
>  1 file changed, 27 insertions(+)
>
> diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
> index a214ef3..900fb4b 100644
> --- a/gnu/packages/audio.scm
> +++ b/gnu/packages/audio.scm
> @@ -6,6 +6,7 @@
>  ;;; Copyright © 2015, 2016 Mark H Weaver <mhw@netris.org>
>  ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
>  ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
> +;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
>  ;;;
>  ;;; This file is part of GNU Guix.
>  ;;;
> @@ -1509,6 +1510,32 @@ buffers, and audio capture.")
>      (home-page "http://kcat.strangesoft.net/openal.html")
>      (license license:lgpl2.0+)))
>  
> +(define-public freealut
> +  (package
> +    (name "freealut")
> +    (version "1.1.0")
> +    (source (origin
> +              (method url-fetch)
> +              ;; Upstream url is unclear, many systems use Fedora, there is also
> +              ;; https://github.com/vancegroup/freealut though the status of it
> +              ;; (official? unofficial?) is not clear.
> +              (uri (string-append
> +                    "https://pkgs.fedoraproject.org/repo/pkgs/" name "/" name "-"
> +                    version ".tar.gz" "/e089b28a0267faabdb6c079ee173664a/" name
> +                    "-" version ".tar.gz"))
> +              (sha256
> +               (base32
> +                "0kzlil6112x2429nw6mycmif8y6bxr2cwjcvp18vh6s7g63ymlb0"))))
> +    (build-system cmake-build-system)
> +    (arguments
> +     `(#:tests? #f))  ; no check target
> +    (inputs
> +     `(("openal" ,openal)))
> +    (synopsis "Free implementation of OpenAL's ALUT standard")
> +    (description "freealut is the OpenAL Utility Toolkit.")

This is the OpenAL home page because I don't know where else ALUT would
be. Iassume this to be okay until someone really /finds/ upstream.

> +    (home-page "http://kcat.strangesoft.net/openal.html")
> +    (license license:lgpl2.0)))
> +
>  (define-public patchage
>    (package
>      (name "patchage")
> -- 
> 2.9.3
>
>
> I will not add toxic unless
> https://github.com/JFreegman/toxic/issues/405 is solved.
> -- 
> ng0
> For non-prism friendly talk find me on http://www.psyced.org

-- 
ng0
For non-prism friendly talk find me on http://www.psyced.org

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

end of thread, other threads:[~2016-08-22 10:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-21  2:25 [PATCH] gnu: Add toxic (Need help with ncurses+libnotify not being found) ng0
2016-08-21  7:29 ` Alex Kost
2016-08-21 10:14   ` ng0
2016-08-21 16:39     ` ng0
2016-08-21 17:31       ` [PATCH] gnu: Add libtoxcore ng0
2016-08-22 10:22         ` ng0

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.