diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2012-11-16 14:43:39 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2012-11-16 14:43:39 +0000 |
commit | 5d184b0ce2022cfbd1a6d5a264571d6fd75ffb2d (patch) | |
tree | ac060be1d73934b866481ec53bdc28d5a14ab68b | |
parent | Bump eapi in the ebuild and solve the log message print. Wrt bug#440540. (diff) | |
download | gentoo-2-5d184b0ce2022cfbd1a6d5a264571d6fd75ffb2d.tar.gz gentoo-2-5d184b0ce2022cfbd1a6d5a264571d6fd75ffb2d.tar.bz2 gentoo-2-5d184b0ce2022cfbd1a6d5a264571d6fd75ffb2d.zip |
Use udev.eclass and remove unnecessary file libtspi.la to avoid dependency_libs content leading to overlinking without -Wl,--as-needed (or the new gold linker in binutils)
(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)
-rw-r--r-- | app-crypt/trousers/ChangeLog | 7 | ||||
-rw-r--r-- | app-crypt/trousers/trousers-0.3.10.ebuild | 27 |
2 files changed, 19 insertions, 15 deletions
diff --git a/app-crypt/trousers/ChangeLog b/app-crypt/trousers/ChangeLog index 3b19d9bf1225..a239174492fd 100644 --- a/app-crypt/trousers/ChangeLog +++ b/app-crypt/trousers/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-crypt/trousers # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/trousers/ChangeLog,v 1.37 2012/11/16 07:18:57 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-crypt/trousers/ChangeLog,v 1.38 2012/11/16 14:43:39 ssuominen Exp $ + + 16 Nov 2012; Samuli Suominen <ssuominen@gentoo.org> trousers-0.3.10.ebuild: + Use udev.eclass and remove unnecessary file libtspi.la to avoid + dependency_libs content leading to overlinking without -Wl,--as-needed (or + the new gold linker in binutils) *trousers-0.3.10 (16 Nov 2012) diff --git a/app-crypt/trousers/trousers-0.3.10.ebuild b/app-crypt/trousers/trousers-0.3.10.ebuild index 5c18a09f5b8b..932b1c2d0a9c 100644 --- a/app-crypt/trousers/trousers-0.3.10.ebuild +++ b/app-crypt/trousers/trousers-0.3.10.ebuild @@ -1,10 +1,10 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/trousers/trousers-0.3.10.ebuild,v 1.1 2012/11/16 07:18:57 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-crypt/trousers/trousers-0.3.10.ebuild,v 1.2 2012/11/16 14:43:39 ssuominen Exp $ -EAPI="3" +EAPI=4 -inherit autotools eutils linux-info user toolchain-funcs +inherit autotools eutils linux-info user toolchain-funcs udev #MY_P="${PN}-${PV%.*}-${PV##*.}" @@ -21,12 +21,13 @@ IUSE="doc" # gtk RDEPEND=">=dev-libs/glib-2 >=dev-libs/openssl-0.9.7:0" - DEPEND="${RDEPEND} virtual/pkgconfig" # S="${WORKDIR}/${P}git" +DOCS="AUTHORS ChangeLog NICETOHAVES README TODO" + pkg_setup() { # Check for driver (not sure it can be an rdep, because ot depends on the # version of virtual/linux-sources... Is that supported by portage?) @@ -69,7 +70,7 @@ pkg_setup() { } src_prepare() { - epatch "${FILESDIR}/${PN}-0.3.5-nouseradd.patch" + epatch "${FILESDIR}"/${PN}-0.3.5-nouseradd.patch sed -i -r \ -e '/CFLAGS/s/ -(Werror|m64)//' \ @@ -78,22 +79,20 @@ src_prepare() { } src_configure() { - #econf --with-gui=$(usev gtk || echo openssl) || die "econf failed" - econf --with-gui=openssl || die "econf failed" + # econf --with-gui=$(usex gtk gtk openssl) + econf --with-gui=openssl } src_install() { keepdir /var/lib/tpm - make DESTDIR="${D}" install || die - dodoc AUTHORS ChangeLog NICETOHAVES README TODO + default use doc && dodoc doc/* - newinitd "${FILESDIR}/tcsd.initd" tcsd - newconfd "${FILESDIR}/tcsd.confd" tcsd - local udevdir=/lib/udev - has_version sys-fs/udev && udevdir="$($(tc-getPKG_CONFIG) --variable=udevdir udev)" - insinto "${udevdir}"/rules.d + newinitd "${FILESDIR}"/tcsd.initd tcsd + newconfd "${FILESDIR}"/tcsd.confd tcsd + insinto "$(udev_get_udevdir)"/rules.d doins "${FILESDIR}"/61-trousers.rules fowners tss:tss /var/lib/tpm + rm -f "${ED}"/usr/lib*/libtspi.la } pkg_postinst() { |