diff options
Diffstat (limited to 'sys-libs/libcap/libcap-1.10-r7.ebuild')
-rw-r--r-- | sys-libs/libcap/libcap-1.10-r7.ebuild | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sys-libs/libcap/libcap-1.10-r7.ebuild b/sys-libs/libcap/libcap-1.10-r7.ebuild index efb7fe7e00a5..1ff396ebaa58 100644 --- a/sys-libs/libcap/libcap-1.10-r7.ebuild +++ b/sys-libs/libcap/libcap-1.10-r7.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap/libcap-1.10-r7.ebuild,v 1.1 2006/07/13 14:42:17 azarah Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcap/libcap-1.10-r7.ebuild,v 1.2 2006/07/13 15:44:13 solar Exp $ -inherit flag-o-matic eutils python +inherit flag-o-matic eutils python toolchain-funcs DEB_PVER="14" DESCRIPTION="POSIX 1003.1e capabilities" @@ -13,7 +13,7 @@ SRC_URI="http://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.4/${ LICENSE="GPL-2 BSD" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" -IUSE="nocxx python static" +IUSE="nocxx python" #patch is in recent 2.2 kernels so it works there DEPEND="virtual/os-headers @@ -36,11 +36,12 @@ src_unpack() { src_compile() { local myflags= - if use static; then - append-flags -static - append-ldflags -static - fi - if ! use nocxx && use python ; then + # -static is never should never be used on shared objects like a lib. + #if use static; then + # append-flags -static + # append-ldflags -static + #fi + if ! tc-is-cross-compiler && ! use nocxx && use python ; then python_version myflags="${myflags} PYTHON=1 PYTHONMODDIR=/usr/$(get_libdir)/python${PYVER}/site-packages" append-flags "-I/usr/include/python${PYVER}" @@ -63,7 +64,7 @@ src_install() { dodoc CHANGELOG README pgp.keys.asc doc/capability.notes capfaq-0.2.txt doman doc/*.3 - if ! use nocxx && use python ; then + if ! tc-is-cross-compiler && ! use nocxx && use python ; then python_version local PYTHONMODDIR="/usr/$(get_libdir)/python${PYVER}/site-packages" exeinto "${PYTHONMODDIR}" @@ -72,4 +73,3 @@ src_install() { doins libcap/libcap.py fi } - |