guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] gnu: Add toxic (Need help with ncurses+libnotify not being f


From: Alex Kost
Subject: Re: [PATCH] gnu: Add toxic (Need help with ncurses+libnotify not being found).
Date: Sun, 21 Aug 2016 10:29:43 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]