1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit eutils multilib-minimal
9 DESCRIPTION="a configuration file parser library"
10 HOMEPAGE="http://www.nongnu.org/confuse/"
11 SRC_URI="https://github.com/martinh/libconfuse/releases/download/v${PV}/${P}.tar.xz"
15 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ~ppc ppc64 sparc x86 ~sparc-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
17 IUSE="nls static-libs"
19 DEPEND="sys-devel/flex
22 nls? ( sys-devel/gettext )"
23 RDEPEND="nls? ( virtual/libintl[${MULTILIB_USEDEP}] )"
32 multilib_src_configure() {
33 # examples are normally compiled but not installed. They
34 # fail during a mingw crosscompile.
35 local ECONF_SOURCE=${BUILD_DIR}
40 $(use_enable static-libs static)
43 multilib_src_install_all() {
46 doman doc/man/man3/*.3
50 dodoc examples/*.{c,conf}