diff options
author | Markos Chandras <hwoarang@gentoo.org> | 2010-07-16 22:23:26 +0000 |
---|---|---|
committer | Markos Chandras <hwoarang@gentoo.org> | 2010-07-16 22:23:26 +0000 |
commit | ed9eb0b987acaa290976db41c5b1c4b2879ab94f (patch) | |
tree | 626202d42a898475068d191d210891b1290eab60 /app-crypt/bsign/bsign-0.4.5.ebuild | |
parent | old (diff) | |
download | gentoo-2-ed9eb0b987acaa290976db41c5b1c4b2879ab94f.tar.gz gentoo-2-ed9eb0b987acaa290976db41c5b1c4b2879ab94f.tar.bz2 gentoo-2-ed9eb0b987acaa290976db41c5b1c4b2879ab94f.zip |
Introduce static-libs use flag. Fixes bug #273336. Thanks to Dane Smith. Keyworded for amd64
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'app-crypt/bsign/bsign-0.4.5.ebuild')
-rw-r--r-- | app-crypt/bsign/bsign-0.4.5.ebuild | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/app-crypt/bsign/bsign-0.4.5.ebuild b/app-crypt/bsign/bsign-0.4.5.ebuild index e6f28d081aeb..5b461bfcd94a 100644 --- a/app-crypt/bsign/bsign-0.4.5.ebuild +++ b/app-crypt/bsign/bsign-0.4.5.ebuild @@ -1,7 +1,8 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/bsign/bsign-0.4.5.ebuild,v 1.10 2010/04/06 06:08:41 abcd Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-crypt/bsign/bsign-0.4.5.ebuild,v 1.11 2010/07/16 22:23:26 hwoarang Exp $ +EAPI=2 inherit autotools toolchain-funcs DESCRIPTION="embed secure hashes (SHA1) and digital signatures (GNU Privacy Guard) into files" @@ -10,30 +11,25 @@ SRC_URI="mirror://debian/pool/main/b/${PN}/${PN}_${PV}.tar.gz" LICENSE="GPL-2" SLOT="0" -KEYWORDS="~ppc ~x86 ~x86-linux ~ppc-macos" -IUSE="" - -src_unpack() { - unpack ${A} - cd "${S}" +KEYWORDS="~amd64 ~ppc ~ppc-macos ~x86 ~x86-linux" +IUSE="static-libs" +src_prepare() { epatch "${FILESDIR}"/${P}-non-gnu.patch # for Darwin, BSD, Solaris, etc. - [[ ${CHOST} == *-darwin* ]] && sed -i -e '/^LFLAGS/s/-static//' Makefile.in + + if ! use static-libs || [[ ${CHOST} == *-darwin* ]]; then + sed -i -e '/^LFLAGS/s/-static//' Makefile.in + fi sed -i -e "/^CFLAGS/d" \ -e "/^CXXFLAGS/d" configure.in eautoreconf -} - -src_compile() { tc-export CC CXX - econf - emake || die "emake failed" } src_install() { dobin bsign_sign bsign_verify bsign_hash bsign_check || die newbin o/bsign-unstripped bsign || die - doman bsign.1 - dodoc README + doman bsign.1 || die + dodoc README || die } |