Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 540036 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/sys-apps/hwloc/hwloc-1.10.0-r1.ebuild (-18 / +15 lines)
Lines 4-10 Link Here
4
4
5
EAPI=5
5
EAPI=5
6
6
7
inherit flag-o-matic cuda autotools-utils multilib versionator
7
inherit flag-o-matic cuda autotools-multilib multilib versionator
8
8
9
MY_PV=v$(get_version_component_range 1-2)
9
MY_PV=v$(get_version_component_range 1-2)
10
10
Lines 18-38 Link Here
18
IUSE="cairo cuda debug gl +numa opencl +pci plugins svg static-libs xml X"
18
IUSE="cairo cuda debug gl +numa opencl +pci plugins svg static-libs xml X"
19
19
20
# TODO opencl only works with AMD so no virtual
20
# TODO opencl only works with AMD so no virtual
21
# dev-util/nvidia-cuda-toolkit is always multilib
21
22
22
RDEPEND="sys-libs/ncurses
23
RDEPEND=">=sys-libs/ncurses-5.9-r3[${MULTILIB_USEDEP}]
23
	cairo? ( x11-libs/cairo[X?,svg?] )
24
	cairo? ( >=x11-libs/cairo-1.12.14-r4[X?,svg?,${MULTILIB_USEDEP}] )
24
	cuda? ( dev-util/nvidia-cuda-toolkit )
25
	cuda? ( dev-util/nvidia-cuda-toolkit )
25
	gl? ( media-video/nvidia-settings )
26
	gl? ( media-video/nvidia-settings )
26
	opencl? ( x11-drivers/ati-drivers )
27
	opencl? ( x11-drivers/ati-drivers:* )
27
	pci? (
28
	pci? (
28
		sys-apps/pciutils
29
		>=sys-apps/pciutils-3.3.0-r2[${MULTILIB_USEDEP}]
29
		x11-libs/libpciaccess
30
		>=x11-libs/libpciaccess-0.13.1-r1[${MULTILIB_USEDEP}]
30
	)
31
	)
31
	plugins? ( dev-libs/libltdl:0 )
32
	plugins? ( dev-libs/libltdl:0[${MULTILIB_USEDEP}] )
32
	numa? ( sys-process/numactl )
33
	numa? ( >=sys-process/numactl-2.0.10-r1[${MULTILIB_USEDEP}] )
33
	xml? ( dev-libs/libxml2 )"
34
	xml? ( >=dev-libs/libxml2-2.9.1-r4[${MULTILIB_USEDEP}] )"
34
DEPEND="${RDEPEND}
35
DEPEND="${RDEPEND}
35
	virtual/pkgconfig"
36
	>=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]"
36
37
37
DOCS=( AUTHORS NEWS README VERSION )
38
DOCS=( AUTHORS NEWS README VERSION )
38
39
Lines 43-63 Link Here
43
	if use cuda ; then
44
	if use cuda ; then
44
		append-cflags -I/opt/cuda/include
45
		append-cflags -I/opt/cuda/include
45
		append-cppflags -I/opt/cuda/include
46
		append-cppflags -I/opt/cuda/include
46
		append-ldflags -L/opt/cuda/$(get_libdir)
47
	fi
47
	fi
48
	autotools-utils_src_prepare
48
	autotools-utils_src_prepare
49
}
49
}
50
50
51
src_configure() {
51
multilib_src_configure() {
52
	export HWLOC_PKG_CONFIG=$(tc-getPKG_CONFIG) #393467
52
	export HWLOC_PKG_CONFIG=$(tc-getPKG_CONFIG) #393467
53
	use cuda && local LDFLAGS="${LDFLAGS} -L/opt/cuda/$(get_libdir)"
53
	local myeconfargs=(
54
	local myeconfargs=(
54
		--disable-silent-rules
55
		--disable-silent-rules
55
		--docdir="${EPREFIX}"/usr/share/doc/${PF}
56
		--docdir="${EPREFIX}"/usr/share/doc/${PF}
56
		$(use_enable cairo)
57
		$(use_enable cairo)
57
		$(use_enable cuda)
58
		$(use_enable cuda)
58
		$(use_enable debug)
59
		$(use_enable debug)
59
		$(use_enable gl)
60
		$(multilib_native_use_enable gl)
60
		$(use_enable opencl)
61
		$(multilib_native_use_enable opencl)
61
		$(use_enable pci)
62
		$(use_enable pci)
62
		$(use_enable plugins)
63
		$(use_enable plugins)
63
		$(use_enable numa libnuma)
64
		$(use_enable numa libnuma)
Lines 66-72 Link Here
66
	)
67
	)
67
	autotools-utils_src_configure
68
	autotools-utils_src_configure
68
}
69
}
69
70
src_install() {
71
	autotools-utils_src_install
72
}

Return to bug 540036