Hello!

X.org recently consolidated the various -proto packages (xproto,
xf86driproto, etc) into a single "xorgproto" package:
<https://lists.x.org/archives/xorg-announce/2018-February/002835.html>.

I'd like to push the attached patch to 'master' and use it for any new
packages, and replace xproto and friends in the next rebuild cycle.

I've tried building a few packages with this and it seems to work.  WDYT?

From 467e8aba28caeab03fb63eb74b1fe622cbaf0d1d Mon Sep 17 00:00:00 2001
From: Marius Bakke <mba...@fastmail.com>
Date: Fri, 16 Feb 2018 21:55:00 +0100
Subject: [PATCH] gnu: Add xorgproto.

* gnu/packages/xorg.scm (xorgproto): New public variable.
---
 gnu/packages/xorg.scm | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/xorg.scm b/gnu/packages/xorg.scm
index f40686eb6..d0d80a3f9 100644
--- a/gnu/packages/xorg.scm
+++ b/gnu/packages/xorg.scm
@@ -4768,7 +4768,27 @@ but are depended upon by many other X Window System packages to provide
 common definitions and porting layer.")
     (license license:x11)))
 
-
+(define-public xorgproto
+  (package
+    (name "xorgproto")
+    (version "2018.2")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "mirror://xorg/individual/proto/"
+                                  name "-" version ".tar.bz2"))
+              (sha256
+               (base32
+                "0r3fk48vp24hk4viw4fjpyh0y7rdg13p5faxc0vicdyqcn5w02cp"))))
+    (build-system gnu-build-system)
+    (propagated-inputs
+     ;; To get util-macros in (almost?) all package inputs.
+     `(("util-macros" ,util-macros)))
+    (home-page "https://cgit.freedesktop.org/xorg/proto/xorgproto";)
+    (synopsis "Xorg protocol headers")
+    (description
+     "This package provides the headers and specification documents defining
+the core protocol and (many) extensions for the X Window System.")
+    (license license:x11)))
 
 ;; packages of height 2 in the propagated-inputs tree
 
-- 
2.16.1

Attachment: signature.asc
Description: PGP signature

Reply via email to