commit:     367bdad0c4b69a5f2ddd358313b9da6878cb964c
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 16 16:26:43 2017 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Thu Mar 16 16:29:16 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=367bdad0

x11-libs/libXpresent: New package

Bug: https://bugs.gentoo.org/549040

 x11-libs/libXpresent/Manifest                      |  1 +
 ...ibXpresent-1.0.0-add-depends-to-pkgconfig.patch | 29 ++++++++++++++++++++++
 x11-libs/libXpresent/libXpresent-1.0.0.ebuild      | 26 +++++++++++++++++++
 x11-libs/libXpresent/metadata.xml                  |  8 ++++++
 4 files changed, 64 insertions(+)

diff --git a/x11-libs/libXpresent/Manifest b/x11-libs/libXpresent/Manifest
new file mode 100644
index 00000000000..9533962c171
--- /dev/null
+++ b/x11-libs/libXpresent/Manifest
@@ -0,0 +1 @@
+DIST libXpresent-1.0.0.tar.bz2 263461 SHA256 
c11ae015141a9afbe10f4f2b8ee00b11adca6373dc1b9808d7c6c138b2da7b8a SHA512 
e88b4ec4fcbc0417a0cbecc0ecd73f8085c496dc6d1a4902b6550750a69a1cb8bb76c436c7941ee3bf3c61ffc85bbd8f8327fca30f14815dbef1cd53bb8db16b
 WHIRLPOOL 
375532a8a5bd81332d4cda21a34cea617e7b09c649371efc85d103e1c379b4791a7c24ae3d01efdf2e6527e56111561ca50a2831ec1ecc2daa30beb374362dfd

diff --git 
a/x11-libs/libXpresent/files/libXpresent-1.0.0-add-depends-to-pkgconfig.patch 
b/x11-libs/libXpresent/files/libXpresent-1.0.0-add-depends-to-pkgconfig.patch
new file mode 100644
index 00000000000..1b5be70a4f3
--- /dev/null
+++ 
b/x11-libs/libXpresent/files/libXpresent-1.0.0-add-depends-to-pkgconfig.patch
@@ -0,0 +1,29 @@
+[mattst88] Dropped configure.ac changes. ebuild depends on these.
+
+From dd6771cdf6f04cde37eb14891573c0e55be83241 Mon Sep 17 00:00:00 2001
+From: Julien Cristau <jcris...@debian.org>
+Date: Sun, 26 Apr 2015 17:53:15 +0200
+Subject: configure, xpresent.pc: require xext, xfixes and xrandr
+
+include/X11/extensions/Xpresent.h:#include <X11/extensions/Xfixes.h>
+include/X11/extensions/Xpresent.h:#include <X11/extensions/Xrandr.h>
+include/X11/extensions/Xpresent.h:#include <X11/extensions/sync.h>
+
+v2: also add requirement in xpresent.pc since we include those in our
+    public header
+
+Signed-off-by: Julien Cristau <jcris...@debian.org>
+
+diff --git a/xpresent.pc.in b/xpresent.pc.in
+index d5d0d38..8f6047a 100644
+--- a/xpresent.pc.in
++++ b/xpresent.pc.in
+@@ -7,6 +7,6 @@ Name: Xpresent
+ Description: X Present  Library
+ Version: @PACKAGE_VERSION@
+ Requires: xproto presentproto >= @PRESENTEXT_VERSION@
+-Requires.private: x11
++Requires.private: x11 xext xfixes xrandr
+ Cflags: -I${includedir}
+ Libs: -L${libdir} -lXpresent
+-- 

diff --git a/x11-libs/libXpresent/libXpresent-1.0.0.ebuild 
b/x11-libs/libXpresent/libXpresent-1.0.0.ebuild
new file mode 100644
index 00000000000..f324f79c578
--- /dev/null
+++ b/x11-libs/libXpresent/libXpresent-1.0.0.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+XORG_MULTILIB=yes
+inherit xorg-2
+
+DESCRIPTION="X Present Extension C Library"
+
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+RDEPEND="
+       x11-libs/libX11[${MULTILIB_USEDEP}]
+       x11-libs/libXext[${MULTILIB_USEDEP}]
+       x11-libs/libXfixes[${MULTILIB_USEDEP}]
+       x11-libs/libXrandr[${MULTILIB_USEDEP}]
+       x11-proto/presentproto[${MULTILIB_USEDEP}]
+       x11-proto/xextproto[${MULTILIB_USEDEP}]
+       x11-proto/xproto[${MULTILIB_USEDEP}]
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-add-depends-to-pkgconfig.patch )

diff --git a/x11-libs/libXpresent/metadata.xml 
b/x11-libs/libXpresent/metadata.xml
new file mode 100644
index 00000000000..e943b72b8a4
--- /dev/null
+++ b/x11-libs/libXpresent/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+<maintainer type="project">
+       <email>x...@gentoo.org</email>
+       <name>X11</name>
+</maintainer>
+</pkgmetadata>

Reply via email to