2015-03-03 15:12:02 +03:00
|
|
|
# Copyright 1999-2015 Gentoo Foundation
|
2014-02-03 10:33:07 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2015-08-11 00:17:55 +03:00
|
|
|
# $Id$
|
2014-02-03 10:33:07 +04:00
|
|
|
|
|
|
|
EAPI=4
|
|
|
|
|
|
|
|
AUTOTOOLS_AUTORECONF=1
|
|
|
|
inherit autotools-utils autotools-multilib
|
|
|
|
|
2014-08-12 13:29:40 +04:00
|
|
|
DESCRIPTION="A free stand-alone ini file parsing library"
|
2014-02-03 10:33:07 +04:00
|
|
|
HOMEPAGE="http://ndevilla.free.fr/iniparser/"
|
|
|
|
|
|
|
|
SRC_URI="http://ndevilla.free.fr/iniparser/${P}.tar.gz"
|
|
|
|
LICENSE="MIT"
|
|
|
|
SLOT="0"
|
2015-06-24 09:29:01 +03:00
|
|
|
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
2014-02-03 10:33:07 +04:00
|
|
|
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"
|
|
|
|
)
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
autotools-multilib_src_install
|
|
|
|
|
|
|
|
if use doc; then
|
|
|
|
emake -C doc
|
|
|
|
dohtml -r html/*
|
|
|
|
fi
|
|
|
|
|
|
|
|
if use examples ; then
|
|
|
|
insinto /usr/share/doc/${PF}/examples
|
|
|
|
doins test/*.{c,ini,py}
|
|
|
|
fi
|
|
|
|
}
|