blob: 89d10684b842cfc1f3c8fc112604c8a5f851b654 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Copyright 2018-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EGIT_REPO_URI="https://github.com/NVIDIA/${PN}.git"
if [[ ${PV} = 9999* ]]; then
GIT_ECLASS="git-r3"
fi
PYTHON_COMPAT=( python2_7 )
inherit autotools ${GIT_ECLASS} multilib-minimal python-any-r1
DESCRIPTION="The GL Vendor-Neutral Dispatch library"
HOMEPAGE="https://github.com/NVIDIA/libglvnd"
if [[ ${PV} = 9999* ]]; then
SRC_URI=""
else
KEYWORDS="~amd64"
SRC_URI="https://github.com/NVIDIA/${PN}/releases/download/v${PV}/${P}.tar.gz"
fi
LICENSE="MIT"
SLOT="0"
IUSE=""
RDEPEND="
!media-libs/mesa[-libglvnd(-)]
x11-libs/libX11[${MULTILIB_USEDEP}]
"
DEPEND="${PYTHON_DEPS}
${RDEPEND}"
src_prepare() {
default
[[ $PV = 9999* ]] && eautoreconf
}
multilib_src_configure() {
ECONF_SOURCE=${S} econf
}
multilib_src_install() {
default
find "${D}" -name '*.la' -delete || die
}
multilib_src_test() {
emake check
}
|