blob: 86cee054a811613aff180ee6105428f42f943f5f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-cpp/libassa/libassa-3.5.0.ebuild,v 1.10 2011/07/19 20:33:31 angelos Exp $
EAPI=3
inherit autotools eutils
DESCRIPTION="A networking library based on Adaptive Communication Patterns"
HOMEPAGE="http://libassa.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="doc static-libs"
RDEPEND=""
DEPEND="doc? ( app-doc/doxygen )"
src_prepare() {
epatch "${FILESDIR}"/${P}-gcc44.patch \
"${FILESDIR}"/${P}-dont-run-ldconfig.patch \
"${FILESDIR}"/${P}-fix-tests.patch \
"${FILESDIR}"/${P}-ldflags.patch \
"${FILESDIR}"/${P}-link-dynamically.patch
AT_M4DIR="${S}/macros"
eautoreconf
}
src_configure() {
econf \
$(use_enable static-libs static) \
$(use_enable doc doxygen)
}
src_install() {
emake DESTDIR="${D}" install || die "install failed"
dodoc AUTHORS ChangeLog NEWS README TODO || die "dodoc failed"
find "${ED}" -name "*.la" -exec rm -rf {} + || die "failed to delete .la files"
}
|