diff mbox

[PATCHv2,1/2] gnu: Add wlc.

Message ID 20160827181710.29345-1-sleep_walker@gnu.org
State New
Headers show

Commit Message

Tomáš Čech Aug. 27, 2016, 6:17 p.m. UTC
* gnu/packages/freedesktop.scm(wlc): New variable.
* gnu/packages/patches/wlc-implement-wlc_view_get_pid.patch: Add it
* gnu/local.mk: Add entry for patch above.
---
 gnu/packages/freedesktop.scm | 41 ++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 40 insertions(+), 1 deletion(-)

Comments

Tomáš Čech Sept. 6, 2016, 8:07 a.m. UTC | #1
I'm not sure if the silence in this thread means that patches are fine
or forgotten so I'm sending new e-mail here.

If there are no objections, I'll commit the patches at the end of the
week.

Best regards,

S_W
Efraim Flashner Sept. 7, 2016, 11:40 a.m. UTC | #2
On Sat, Aug 27, 2016 at 08:17:09PM +0200, Tomáš Čech wrote:
> * gnu/packages/freedesktop.scm(wlc): New variable.
> * gnu/packages/patches/wlc-implement-wlc_view_get_pid.patch: Add it
> * gnu/local.mk: Add entry for patch above.

there's no patch attached

> ---
>  gnu/packages/freedesktop.scm | 41 ++++++++++++++++++++++++++++++++++++++++-
>  1 file changed, 40 insertions(+), 1 deletion(-)
> 
> diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
> index 67f1e1a..0bb87e7 100644
> --- a/gnu/packages/freedesktop.scm
> +++ b/gnu/packages/freedesktop.scm
> @@ -27,10 +27,14 @@
>    #:use-module (guix packages)
>    #:use-module (guix download)
>    #:use-module (guix git-download)
> +  #:use-module (guix build-system cmake)
>    #:use-module (guix build-system gnu)
>    #:use-module (guix build-system python)
> +  #:use-module (gnu packages)
> +  #:use-module (gnu packages gl)
>    #:use-module (gnu packages gnome)
>    #:use-module (gnu packages python)
> +  #:use-module (gnu packages pth)
>    #:use-module (gnu packages linux)
>    #:use-module (gnu packages pkg-config)
>    #:use-module (gnu packages autotools)
> @@ -51,7 +55,8 @@
>    #:use-module (gnu packages acl)
>    #:use-module (gnu packages admin)
>    #:use-module (gnu packages polkit)
> -  #:use-module (gnu packages databases))
> +  #:use-module (gnu packages databases)
> +  #:use-module (gnu packages xdisorg))
>  
>  (define-public xdg-utils
>    (package
> @@ -647,3 +652,37 @@ different sorts of messages in different formats.")
>  useful for both applications which need colour management and applications that
>  wish to perform colour calibration.")
>      (license license:lgpl2.1+)))
> +
> +(define-public wlc
> +  (package
> +    (name "wlc")
> +    (version "0.0.5")
> +    (source (origin
> +              (method url-fetch)
> +              (uri (string-append
> +                    "https://github.com/Cloudef/" name "/releases/download/v"
> +                    version "/" name "-" version ".tar.bz2"))
> +              (sha256
> +               (base32
> +                "0dmiklis820qzin74f16bmbz1jkjy93r5mix8cqbcqpb9f7qxahp"))))
> +    (build-system cmake-build-system)
> +    (native-inputs
> +     `(("pkg-config" ,pkg-config)))
> +    (inputs
> +     `(("libinput" ,libinput)
> +       ("libx11" ,libx11)
> +       ("libxkbcommon" ,libxkbcommon)
> +       ("mesa" ,mesa)
> +       ("pixman" ,pixman)
> +       ("pth" ,pth)
> +       ("wayland" ,wayland)
> +       ("xcb-util-image" ,xcb-util-image)
> +       ("xcb-util-wm" ,xcb-util-wm)
> +       ("xproto" ,xproto)
> +       ("zlib" ,zlib)))
> +    (synopsis "Wayland Compositor Library")
> +    (home-page "https://github.com/Cloudef/wlc")
> +    (description
> +     "This is wayland compositor library used by several projects like sway,
> +orbment or Gram.")
> +    (license license:x11)))
> -- 
> 2.9.2
> 
> 

The package doesn't seem to be able to find all of the wayland libraries
it wants.

-- Found WAYLAND_CLIENT: /gnu/store/9jfrsgr6jw9hzqj81p3vn632m79x5gla-wayland-1.11.0/lib/libwayland-client.so
-- Found WAYLAND_SERVER: /gnu/store/9jfrsgr6jw9hzqj81p3vn632m79x5gla-wayland-1.11.0/lib/libwayland-server.so
-- Could NOT find WAYLAND_EGL (missing:  WAYLAND_EGL_LIBRARIES)
-- Could NOT find WAYLAND (missing:  WAYLAND_LIBRARIES)

This results in it saying it can't find wayland.  Also, why not also
include wayland-protocols and dbus?
David Craven Sept. 7, 2016, 11:57 a.m. UTC | #3
> This results in it saying it can't find wayland.

He's probably using the mesa enable wayland flags patch from core-updates...
diff mbox

Patch

diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index 67f1e1a..0bb87e7 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -27,10 +27,14 @@ 
   #:use-module (guix packages)
   #:use-module (guix download)
   #:use-module (guix git-download)
+  #:use-module (guix build-system cmake)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system python)
+  #:use-module (gnu packages)
+  #:use-module (gnu packages gl)
   #:use-module (gnu packages gnome)
   #:use-module (gnu packages python)
+  #:use-module (gnu packages pth)
   #:use-module (gnu packages linux)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages autotools)
@@ -51,7 +55,8 @@ 
   #:use-module (gnu packages acl)
   #:use-module (gnu packages admin)
   #:use-module (gnu packages polkit)
-  #:use-module (gnu packages databases))
+  #:use-module (gnu packages databases)
+  #:use-module (gnu packages xdisorg))
 
 (define-public xdg-utils
   (package
@@ -647,3 +652,37 @@  different sorts of messages in different formats.")
 useful for both applications which need colour management and applications that
 wish to perform colour calibration.")
     (license license:lgpl2.1+)))
+
+(define-public wlc
+  (package
+    (name "wlc")
+    (version "0.0.5")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://github.com/Cloudef/" name "/releases/download/v"
+                    version "/" name "-" version ".tar.bz2"))
+              (sha256
+               (base32
+                "0dmiklis820qzin74f16bmbz1jkjy93r5mix8cqbcqpb9f7qxahp"))))
+    (build-system cmake-build-system)
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (inputs
+     `(("libinput" ,libinput)
+       ("libx11" ,libx11)
+       ("libxkbcommon" ,libxkbcommon)
+       ("mesa" ,mesa)
+       ("pixman" ,pixman)
+       ("pth" ,pth)
+       ("wayland" ,wayland)
+       ("xcb-util-image" ,xcb-util-image)
+       ("xcb-util-wm" ,xcb-util-wm)
+       ("xproto" ,xproto)
+       ("zlib" ,zlib)))
+    (synopsis "Wayland Compositor Library")
+    (home-page "https://github.com/Cloudef/wlc")
+    (description
+     "This is wayland compositor library used by several projects like sway,
+orbment or Gram.")
+    (license license:x11)))