# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=4 AUTOTOOLS_AUTORECONF=1 inherit autotools-multilib DESCRIPTION="A free stand-alone ini file parsing library." HOMEPAGE="http://ndevilla.free.fr/iniparser/" SRC_URI="http://ndevilla.free.fr/iniparser/${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" IUSE="doc examples static-libs" DEPEND="doc? ( app-doc/doxygen ) sys-devel/libtool" RDEPEND="" # the tests are rather examples than tests, no point in running them RESTRICT="test" S="${WORKDIR}/${PN}" DOCS=( AUTHORS README ) PATCHES=( "${FILESDIR}/${PN}-3.0b-cpp.patch" "${FILESDIR}/${PN}-3.0-autotools.patch" ) ehook autotools-multilib-global-post_src_compile \ iniparser_post_src_compile iniparser_post_src_compile() { use doc && emake -C doc } ehook autotools-multilib-global-post_src_install \ iniparser_post_src_install iniparser_post_src_install() { use doc && dohtml -r html/* if use examples ; then insinto /usr/share/doc/${PF}/examples doins test/*.{c,ini,py} fi }