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/iniparser/iniparser-3.1-r1.ebuild

48 lines
1.1 KiB

# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/iniparser/iniparser-3.1-r1.ebuild,v 1.13 2015/06/03 14:45:51 vapier Exp $
EAPI=4
AUTOTOOLS_AUTORECONF=1
inherit autotools-utils 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="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~x86-macos"
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
}