Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libglvnd/, profiles/
Date: Sun, 27 May 2018 00:41:56
Message-Id: 1527381701.79c3c3652df8a25c05d94f9acaaf303a5ddca270.mattst88@gentoo
1 commit: 79c3c3652df8a25c05d94f9acaaf303a5ddca270
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 26 22:54:36 2018 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Sun May 27 00:41:41 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79c3c365
7
8 media-libs/libglvnd: Add package
9
10 package.mask'd for now.
11
12 Bug: https://bugs.gentoo.org/606924
13
14 media-libs/libglvnd/Manifest | 1 +
15 media-libs/libglvnd/libglvnd-1.0.0.20180524.ebuild | 54 ++++++++++++++++++++++
16 media-libs/libglvnd/libglvnd-9999.ebuild | 54 ++++++++++++++++++++++
17 media-libs/libglvnd/metadata.xml | 11 +++++
18 profiles/package.mask | 5 ++
19 5 files changed, 125 insertions(+)
20
21 diff --git a/media-libs/libglvnd/Manifest b/media-libs/libglvnd/Manifest
22 new file mode 100644
23 index 00000000000..c47bf92a2f1
24 --- /dev/null
25 +++ b/media-libs/libglvnd/Manifest
26 @@ -0,0 +1 @@
27 +DIST libglvnd-1.0.0.20180524.tar.gz 796997 BLAKE2B 75c50d2eb864b84e97af5b5f0c9bfde2651436acbad323312ca8b88df8cfa4dd170a743748e8c2269f39d9cb492d6ffaabd66a76ffca3062be2462adca4c79cd SHA512 3e49e4647b50f04dd534282b2f7ae76d84ea3dcd071771492a6560ae327d6167fcd071d32c447af097e68d84e6560d6b2c2b00d1409664e8b6a628b49ccdbdad
28
29 diff --git a/media-libs/libglvnd/libglvnd-1.0.0.20180524.ebuild b/media-libs/libglvnd/libglvnd-1.0.0.20180524.ebuild
30 new file mode 100644
31 index 00000000000..b1d53c3d68e
32 --- /dev/null
33 +++ b/media-libs/libglvnd/libglvnd-1.0.0.20180524.ebuild
34 @@ -0,0 +1,54 @@
35 +# Copyright 1999-2018 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=6
39 +
40 +EGIT_REPO_URI="https://github.com/NVIDIA/${PN}.git"
41 +
42 +if [[ ${PV} = 9999* ]]; then
43 + GIT_ECLASS="git-r3"
44 +fi
45 +
46 +PYTHON_COMPAT=( python2_7 )
47 +inherit autotools ${GIT_ECLASS} multilib-minimal python-any-r1
48 +
49 +DESCRIPTION="The GL Vendor-Neutral Dispatch library"
50 +HOMEPAGE="https://github.com/NVIDIA/libglvnd"
51 +if [[ ${PV} = 9999* ]]; then
52 + SRC_URI=""
53 +else
54 + KEYWORDS="~amd64"
55 + COMMIT="8709003ffdc905d144855c3117a31da220149d4c"
56 + SRC_URI="https://github.com/NVIDIA/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
57 + S=${WORKDIR}/${PN}-${COMMIT}
58 +fi
59 +
60 +LICENSE="MIT"
61 +SLOT="0"
62 +IUSE=""
63 +
64 +RDEPEND="
65 + !media-libs/mesa[-libglvnd(-)]
66 + x11-libs/libX11[${MULTILIB_USEDEP}]
67 + "
68 +DEPEND="${PYTHON_DEPS}
69 + ${RDEPEND}"
70 +
71 +src_unpack() {
72 + default
73 + [[ $PV = 9999* ]] && git-r3_src_unpack
74 +}
75 +
76 +src_prepare() {
77 + default
78 + eautoreconf
79 +}
80 +
81 +multilib_src_configure() {
82 + ECONF_SOURCE=${S} econf
83 +}
84 +
85 +multilib_src_install() {
86 + default
87 + find "${D}" -name '*.la' -delete || die
88 +}
89
90 diff --git a/media-libs/libglvnd/libglvnd-9999.ebuild b/media-libs/libglvnd/libglvnd-9999.ebuild
91 new file mode 100644
92 index 00000000000..9f9f724cecc
93 --- /dev/null
94 +++ b/media-libs/libglvnd/libglvnd-9999.ebuild
95 @@ -0,0 +1,54 @@
96 +# Copyright 1999-2018 Gentoo Foundation
97 +# Distributed under the terms of the GNU General Public License v2
98 +
99 +EAPI=6
100 +
101 +EGIT_REPO_URI="https://github.com/NVIDIA/${PN}.git"
102 +
103 +if [[ ${PV} = 9999* ]]; then
104 + GIT_ECLASS="git-r3"
105 +fi
106 +
107 +PYTHON_COMPAT=( python2_7 )
108 +inherit autotools ${GIT_ECLASS} multilib-minimal python-any-r1
109 +
110 +DESCRIPTION="The GL Vendor-Neutral Dispatch library"
111 +HOMEPAGE="https://github.com/NVIDIA/libglvnd"
112 +if [[ ${PV} = 9999* ]]; then
113 + SRC_URI=""
114 +else
115 + KEYWORDS="~amd64"
116 + COMMIT=""
117 + SRC_URI="https://github.com/NVIDIA/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
118 + S=${WORKDIR}/${PN}-${COMMIT}
119 +fi
120 +
121 +LICENSE="MIT"
122 +SLOT="0"
123 +IUSE=""
124 +
125 +RDEPEND="
126 + !media-libs/mesa[-libglvnd(-)]
127 + x11-libs/libX11[${MULTILIB_USEDEP}]
128 + "
129 +DEPEND="${PYTHON_DEPS}
130 + ${RDEPEND}"
131 +
132 +src_unpack() {
133 + default
134 + [[ $PV = 9999* ]] && git-r3_src_unpack
135 +}
136 +
137 +src_prepare() {
138 + default
139 + eautoreconf
140 +}
141 +
142 +multilib_src_configure() {
143 + ECONF_SOURCE=${S} econf
144 +}
145 +
146 +multilib_src_install() {
147 + default
148 + find "${D}" -name '*.la' -delete || die
149 +}
150
151 diff --git a/media-libs/libglvnd/metadata.xml b/media-libs/libglvnd/metadata.xml
152 new file mode 100644
153 index 00000000000..7a349da8f2d
154 --- /dev/null
155 +++ b/media-libs/libglvnd/metadata.xml
156 @@ -0,0 +1,11 @@
157 +<?xml version="1.0" encoding="UTF-8"?>
158 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
159 +<pkgmetadata>
160 + <maintainer type="project">
161 + <email>x11@g.o</email>
162 + <name>X11</name>
163 + </maintainer>
164 + <upstream>
165 + <remote-id type="github">NVIDIA/libglvnd</remote-id>
166 + </upstream>
167 +</pkgmetadata>
168
169 diff --git a/profiles/package.mask b/profiles/package.mask
170 index bfdbb981c43..0ab611cfedf 100644
171 --- a/profiles/package.mask
172 +++ b/profiles/package.mask
173 @@ -29,6 +29,11 @@
174
175 #--- END OF EXAMPLES ---
176
177 +# Matt Turner <mattst88@g.o> (25 May 2018)
178 +# New package. Needs to interact with media-libs/mesa and
179 +# x11-drivers/nvidia-drivers. Work in progress.
180 +media-libs/libglvnd
181 +
182 # Andreas Sturmlechner <asturm@g.o> (24 May 2018)
183 # Depends on dead Qt4. Masked for removal in 30 days. Bug #629018
184 dev-libs/libattica