/[gentoo-x86]/net-libs/libsmi/libsmi-0.4.8-r1.ebuild
Gentoo

Contents of /net-libs/libsmi/libsmi-0.4.8-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Fri Jul 18 15:31:52 2014 UTC (6 years, 4 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +8 -8 lines
EAPI bump. Clean up patch. Add USE=static-libs.

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A792A613)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-libs/libsmi/libsmi-0.4.8-r1.ebuild,v 1.10 2013/01/22 05:47:42 vapier Exp $
4
5 EAPI=5
6 inherit eutils flag-o-matic
7
8 DESCRIPTION="A Library to Access SMI MIB Information"
9 SRC_URI="ftp://ftp.ibr.cs.tu-bs.de/pub/local/${PN}/${P}.tar.gz"
10 HOMEPAGE="http://www.ibr.cs.tu-bs.de/projects/libsmi"
11
12 LICENSE="BSD"
13 SLOT="0"
14 KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
15 IUSE="static-libs"
16
17 src_prepare() {
18 epatch "${FILESDIR}"/${P}-CVE-2010-2891.patch
19 }
20
21 src_configure() {
22 replace-flags -O? -O2
23 econf $(use_enable static-libs static)
24 }
25
26 src_test() {
27 # sming test is known to fail and some other fail if LC_ALL!=C:
28 # http://mail.ibr.cs.tu-bs.de/pipermail/libsmi/2008-March/001014.html
29 sed -i '/^[[:space:]]*smidump-sming.test \\$/d' test/Makefile
30 LC_ALL=C emake -j1 check || die
31 }
32
33 src_install () {
34 default
35 dodoc smi.conf-example ANNOUNCE ChangeLog README THANKS TODO \
36 doc/{*.txt,smi.dia,smi.dtd,smi.xsd}
37 prune_libtool_files
38 }

  ViewVC Help
Powered by ViewVC 1.1.20