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}] )"
28 rm doc/man/man3/_* || die
34 multilib_src_configure() {
35 # examples are normally compiled but not installed. They
36 # fail during a mingw crosscompile.
37 local ECONF_SOURCE=${BUILD_DIR}
42 $(use_enable static-libs static)
45 multilib_src_install_all() {
48 doman doc/man/man3/*.3
52 dodoc examples/*.{c,conf}