Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 73635
Collapse All | Expand All

(-)../portage/sys-libs/libcap/libcap-1.10-r4.ebuild (-5 / +5 lines)
Lines 13-25 Link Here
13
LICENSE="GPL-2 BSD"
13
LICENSE="GPL-2 BSD"
14
SLOT="0"
14
SLOT="0"
15
KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sparc x86"
15
KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sparc x86"
16
IUSE="python pic static"
16
IUSE="nocxx python pic static"
17
17
18
#patch is in recent 2.2 kernels so it works there
18
#patch is in recent 2.2 kernels so it works there
19
DEPEND="virtual/libc
19
DEPEND="virtual/libc
20
	virtual/os-headers
20
	virtual/os-headers
21
	python? ( >=virtual/python-2.2.1 >=dev-lang/swig-1.3.10 )"
21
	!nocxx? ( python? ( >=virtual/python-2.2.1 ( >=dev-lang/swig-1.3.10 ) ) )"
22
RDEPEND="python? ( >=virtual/python-2.2.1 )
22
RDEPEND="!nocxx? ( python? ( >=virtual/python-2.2.1 ) )
23
	virtual/libc"
23
	virtual/libc"
24
24
25
src_unpack() {
25
src_unpack() {
Lines 35-41 Link Here
35
	local PYTHONVER="`python -V 2>&1 | sed 's/^Python //'|sed 's/\([0-9]*\.[0-9]*\).*/\1/'`"
35
	local PYTHONVER="`python -V 2>&1 | sed 's/^Python //'|sed 's/\([0-9]*\.[0-9]*\).*/\1/'`"
36
	local myflags=""
36
	local myflags=""
37
	use static && CFLAGS="${CFLAGS} -static" && LDFLAGS="${LDFLAGS} -static"
37
	use static && CFLAGS="${CFLAGS} -static" && LDFLAGS="${LDFLAGS} -static"
38
	if use python ; then
38
	if !use nocxx && use python ; then
39
		myflags="${myflags} PYTHON=1 PYTHONMODDIR=/usr/$(get_libdir)/python${PYTHONVER}/site-packages"
39
		myflags="${myflags} PYTHON=1 PYTHONMODDIR=/usr/$(get_libdir)/python${PYTHONVER}/site-packages"
40
		append-flags -I/usr/include/python${PYTHONVER}
40
		append-flags -I/usr/include/python${PYTHONVER}
41
	fi
41
	fi
Lines 46-52 Link Here
46
src_install() {
46
src_install() {
47
	local PYTHONVER="`python -V 2>&1 | sed 's/^Python //'|sed 's/\([0-9]*\.[0-9]*\).*/\1/'`"
47
	local PYTHONVER="`python -V 2>&1 | sed 's/^Python //'|sed 's/\([0-9]*\.[0-9]*\).*/\1/'`"
48
	local myflags=""
48
	local myflags=""
49
	if use python ; then
49
	if !use nocxx && use python ; then
50
		myflags="${myflags} PYTHON=1 PYTHONMODDIR=${D}/usr/$(get_libdir)/python${PYTHONVER}/site-packages"
50
		myflags="${myflags} PYTHON=1 PYTHONMODDIR=${D}/usr/$(get_libdir)/python${PYTHONVER}/site-packages"
51
	fi
51
	fi
52
	make install FAKEROOT="${D}" man_prefix=/usr/share LIBDIR="${D}/$(get_libdir)" ${myflags} || die
52
	make install FAKEROOT="${D}" man_prefix=/usr/share LIBDIR="${D}/$(get_libdir)" ${myflags} || die

Return to bug 73635