diff options
author | 2011-08-04 14:01:47 +0000 | |
---|---|---|
committer | 2011-08-04 14:01:47 +0000 | |
commit | 819fffdbd23684622da5a164ea85c016d4df6bff (patch) | |
tree | 2f262aedc35f42007a6413d00f00ed1d15bfbf2f /sys-libs/libunwind/libunwind-0.99-r1.ebuild | |
parent | Old. (diff) | |
download | gentoo-2-819fffdbd23684622da5a164ea85c016d4df6bff.tar.gz gentoo-2-819fffdbd23684622da5a164ea85c016d4df6bff.tar.bz2 gentoo-2-819fffdbd23684622da5a164ea85c016d4df6bff.zip |
USE="static-libs" and remove unnecessary libtool files
(Portage version: 2.2.0_alpha47/cvs/Linux x86_64)
Diffstat (limited to 'sys-libs/libunwind/libunwind-0.99-r1.ebuild')
-rw-r--r-- | sys-libs/libunwind/libunwind-0.99-r1.ebuild | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/sys-libs/libunwind/libunwind-0.99-r1.ebuild b/sys-libs/libunwind/libunwind-0.99-r1.ebuild index d6cfb55997eb..bc1c7797cee3 100644 --- a/sys-libs/libunwind/libunwind-0.99-r1.ebuild +++ b/sys-libs/libunwind/libunwind-0.99-r1.ebuild @@ -1,7 +1,8 @@ -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libunwind/libunwind-0.99-r1.ebuild,v 1.4 2010/05/19 20:27:30 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libunwind/libunwind-0.99-r1.ebuild,v 1.5 2011/08/04 14:01:47 ssuominen Exp $ +EAPI=4 inherit autotools eutils DESCRIPTION="Portable and efficient API to determine the call-chain of a program" @@ -11,20 +12,27 @@ SRC_URI="http://download.savannah.nongnu.org/releases/libunwind/${P}.tar.gz" LICENSE="MIT" SLOT="7" KEYWORDS="amd64 ia64 x86" -IUSE="" +IUSE="static-libs" RESTRICT="test" # https://savannah.nongnu.org/bugs/?22368 # https://bugs.gentoo.org/273372 -src_unpack() { - unpack ${A} - cd "${S}" - epatch "${FILESDIR}"/${P}-disable-setjmp.patch \ +DOCS=( AUTHORS ChangeLog NEWS README TODO ) + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-disable-setjmp.patch \ "${FILESDIR}"/${P}-implicit-declaration.patch eautoreconf } +src_configure() { + econf $(use_enable static-libs static) +} + src_install() { - emake install DESTDIR="${D}" || die - dodoc AUTHORS ChangeLog NEWS README TODO + default + # libunwind-ptrace.a (and libunwind-ptrace.h) is separate API and without + # shared library, so we keep it in any case + use static-libs || rm -f "${D}"usr/lib*/libunwind{-generic.a,*.la} } |