1 |
commit: a9e8f31d83d4bb0de87ee5c6e659d2f522fda3ec |
2 |
Author: Chris Mayo <aklhfex <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Sep 18 17:01:47 2016 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 29 20:34:44 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9e8f31d |
7 |
|
8 |
x11-libs/libxcb: Only install man pages with USE="doc". |
9 |
|
10 |
This reduces the default installation down to 2043 files. |
11 |
|
12 |
Package-Manager: portage-2.3.0 |
13 |
Closes: https://github.com/gentoo/gentoo/pull/2358 |
14 |
|
15 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
16 |
|
17 |
x11-libs/libxcb/libxcb-1.12-r1.ebuild | 64 +++++++++++++++++++++++++++++++++++ |
18 |
1 file changed, 64 insertions(+) |
19 |
|
20 |
diff --git a/x11-libs/libxcb/libxcb-1.12-r1.ebuild b/x11-libs/libxcb/libxcb-1.12-r1.ebuild |
21 |
new file mode 100644 |
22 |
index 00000000..772464b |
23 |
--- /dev/null |
24 |
+++ b/x11-libs/libxcb/libxcb-1.12-r1.ebuild |
25 |
@@ -0,0 +1,64 @@ |
26 |
+# Copyright 1999-2016 Gentoo Foundation |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+# $Id$ |
29 |
+ |
30 |
+EAPI=5 |
31 |
+ |
32 |
+PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} ) |
33 |
+PYTHON_REQ_USE=xml |
34 |
+ |
35 |
+XORG_DOC=doc |
36 |
+XORG_MULTILIB=yes |
37 |
+XORG_EAUTORECONF=yes |
38 |
+inherit python-any-r1 xorg-2 |
39 |
+ |
40 |
+DESCRIPTION="X C-language Bindings library" |
41 |
+HOMEPAGE="https://xcb.freedesktop.org/" |
42 |
+EGIT_REPO_URI="git://anongit.freedesktop.org/git/xcb/libxcb" |
43 |
+[[ ${PV} != 9999* ]] && \ |
44 |
+ SRC_URI="https://xcb.freedesktop.org/dist/${P}.tar.bz2" |
45 |
+ |
46 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
47 |
+IUSE="doc selinux test xkb" |
48 |
+SLOT="0/${PV}" |
49 |
+ |
50 |
+RDEPEND=">=dev-libs/libpthread-stubs-0.3-r1[${MULTILIB_USEDEP}] |
51 |
+ >=x11-libs/libXau-1.0.7-r1[${MULTILIB_USEDEP}] |
52 |
+ >=x11-libs/libXdmcp-1.1.1-r1[${MULTILIB_USEDEP}]" |
53 |
+# Note: ${PYTHON_USEDEP} needs to go verbatim |
54 |
+DEPEND="${RDEPEND} |
55 |
+ test? ( dev-libs/check[${MULTILIB_USEDEP}] ) |
56 |
+ doc? ( app-doc/doxygen[dot] ) |
57 |
+ dev-libs/libxslt |
58 |
+ ${PYTHON_DEPS} |
59 |
+ $(python_gen_any_dep \ |
60 |
+ ">=x11-proto/xcb-proto-1.12-r1[${MULTILIB_USEDEP},\${PYTHON_USEDEP}]")" |
61 |
+ |
62 |
+python_check_deps() { |
63 |
+ has_version --host-root ">=x11-proto/xcb-proto-1.11[${PYTHON_USEDEP}]" |
64 |
+} |
65 |
+ |
66 |
+pkg_setup() { |
67 |
+ python-any-r1_pkg_setup |
68 |
+} |
69 |
+ |
70 |
+PATCHES=( |
71 |
+ "${FILESDIR}/${PN}-1.11-Don-t-install-headers-man-pages-for-disabled-extensi.patch" |
72 |
+ "${FILESDIR}/${P}-fix-inconsistent-use-tabs-space.patch" |
73 |
+) |
74 |
+ |
75 |
+src_configure() { |
76 |
+ XORG_CONFIGURE_OPTIONS=( |
77 |
+ $(use_enable doc devel-docs) |
78 |
+ $(use_enable selinux) |
79 |
+ $(use_enable xkb) |
80 |
+ --enable-xinput |
81 |
+ ) |
82 |
+ xorg-2_src_configure |
83 |
+} |
84 |
+ |
85 |
+pkg_preinst() { |
86 |
+ if ! use doc; then |
87 |
+ rm -r "${D}"/usr/share/man || die |
88 |
+ fi |
89 |
+} |