You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-libs/libconfig/libconfig-1.4.9-r1.ebuild

56 lines
1.3 KiB

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libconfig/libconfig-1.4.9-r1.ebuild,v 1.1 2013/04/02 18:55:41 jer Exp $
EAPI="5"
inherit eutils autotools-multilib
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/${PN}/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-linux"
IUSE="+cxx examples static-libs"
DEPEND="
sys-devel/libtool
sys-devel/bison"
RDEPEND=""
PATCHES=( "${FILESDIR}/${P}-out-of-source-build.patch" )
AUTOTOOLS_AUTORECONF="1"
src_configure() {
local myeconfargs=(
$(use_enable cxx)
--disable-examples
)
autotools-multilib_src_configure
}
local_src_test() {
pushd "${BUILD_DIR}" > /dev/null || die
emake test || die "test failed"
popd > /dev/null || die
}
src_test() {
# It responds to check but that does not work as intended
multilib_foreach_abi local_src_test
}
src_install() {
autotools-multilib_src_install
if use examples; then
local dir
for dir in examples/c examples/c++; do
insinto /usr/share/doc/${PF}/${dir}
doins ${dir}/*
done
fi
}