blob: cb64fd6d089cd1594084754ce5234f8015a68768 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/iniparser/iniparser-3.0.0.ebuild,v 1.4 2012/05/16 12:33:33 aballier Exp $
EAPI="4"
inherit autotools-utils
DESCRIPTION="A free stand-alone ini file parsing library."
HOMEPAGE="http://ndevilla.free.fr/iniparser/"
#name this version 3.0.0 instead of 3.0 as 3.0.0 > 3.0b > 3.0
SRC_URI="http://ndevilla.free.fr/iniparser/${P%.0}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-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"
)
AUTOTOOLS_AUTORECONF=1
src_install() {
autotools-utils_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
}
|