summaryrefslogtreecommitdiff
blob: aedf631d19fe4810a710f8ac542aeb8440e45676 (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libconfig/libconfig-1.3.2.ebuild,v 1.6 2010/12/11 22:27:00 xmw Exp $

EAPI="2"

inherit autotools

DESCRIPTION="Libconfig is a simple library for manipulating structured configuration files"
HOMEPAGE="http://www.hyperrealm.com/libconfig/libconfig.html"
SRC_URI="http://www.hyperrealm.com/libconfig/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~mips ppc ppc64 sparc x86"
IUSE=""

DEPEND="sys-devel/libtool"
RDEPEND=""

src_prepare() {
	sed -i Makefile.am \
		-e 's#^SUBDIRS = . samples doc$#SUBDIRS = . doc#' \
		-e '/^libinc_cpp/s: $(libinc) ::g' || die "sed failed"

	eautoreconf
}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed"
}