blob: 3f75627858be514b973f36be2482018d1f8de162 (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/libpciaccess/libpciaccess-0.13.ebuild,v 1.2 2012/03/14 17:52:12 mattst88 Exp $
EAPI=4
inherit xorg-2
DESCRIPTION="Library providing generic access to the PCI bus and devices"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
IUSE="minimal zlib"
DEPEND="!<x11-base/xorg-server-1.5
zlib? ( sys-libs/zlib )"
RDEPEND="${DEPEND}"
PATCHES=( "${FILESDIR}"/${P}-fix-out-bwl-macros.patch )
pkg_setup() {
xorg-2_pkg_setup
XORG_CONFIGURE_OPTIONS=(
"$(use_with zlib)"
"--with-pciids-path=${EPREFIX}/usr/share/misc"
)
}
src_install() {
xorg-2_src_install
if ! use minimal; then
dodir /usr/bin || die
${BASH} "${AUTOTOOLS_BUILD_DIR:-${S}}/libtool" --mode=install "$(type -P install)" -c "${AUTOTOOLS_BUILD_DIR:-${S}}/scanpci/scanpci" "${ED}"/usr/bin || die
fi
}
|