| 1 | # Copyright 1999-2010 Gentoo Foundation |
1 | # Copyright 1999-2012 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/sys-auth/libyubikey/Attic/libyubikey-1.6.ebuild,v 1.1 2010/10/23 16:38:54 flameeyes Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/sys-auth/libyubikey/Attic/libyubikey-1.6.ebuild,v 1.2 2012/06/24 10:07:41 ssuominen Exp $ |
| 4 | |
4 | |
| 5 | EAPI=2 |
5 | EAPI=4 |
| 6 | inherit eutils autotools |
6 | inherit autotools eutils |
| 7 | |
7 | |
| 8 | DESCRIPTION="Yubico C low-level library" |
8 | DESCRIPTION="Yubico C low-level library" |
|
|
9 | HOMEPAGE="http://code.google.com/p/yubico-c/" |
| 9 | SRC_URI="http://yubico-c.googlecode.com/files/${P}.tar.gz" |
10 | SRC_URI="http://yubico-c.googlecode.com/files/${P}.tar.gz" |
| 10 | HOMEPAGE="http://code.google.com/p/yubico-c/" |
|
|
| 11 | |
11 | |
| 12 | KEYWORDS="~amd64" |
12 | KEYWORDS="~amd64" |
| 13 | SLOT="0" |
13 | SLOT="0" |
| 14 | LICENSE="BSD-2" |
14 | LICENSE="BSD-2" |
| 15 | IUSE="" |
15 | IUSE="static-libs" |
| 16 | |
16 | |
| 17 | src_prepare() { |
17 | src_prepare() { |
| 18 | epatch "${FILESDIR}"/${P}-rpath.patch |
18 | epatch "${FILESDIR}"/${P}-rpath.patch |
|
|
19 | sed -i -e '/AM_INIT_AUTOMAKE/s: -Werror::' configure.ac || die #423255 |
| 19 | eautoreconf |
20 | eautoreconf |
| 20 | } |
21 | } |
| 21 | |
22 | |
|
|
23 | src_configure() { |
|
|
24 | econf $(use_enable static-libs static) |
|
|
25 | } |
|
|
26 | |
| 22 | src_install() { |
27 | src_install() { |
| 23 | emake DESTDIR="${D}" install || die |
28 | emake DESTDIR="${D}" install |
| 24 | dodoc AUTHORS ChangeLog NEWS README THANKS || die |
29 | dodoc AUTHORS ChangeLog NEWS README THANKS |
| 25 | find "${D}" -name '*.la' -delete || die |
30 | prune_libtool_files |
| 26 | } |
31 | } |