blob: dc31bddae7e54f40fc84cf20cd3496aa3b1af322 (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/iniparser/iniparser-3.0b-r1.ebuild,v 1.5 2009/07/01 14:49:46 armin76 Exp $
inherit eutils multilib toolchain-funcs
MY_P="${PN}${PV}"
DESCRIPTION="A ree stand-alone ini file parsing library."
HOMEPAGE="http://ndevilla.free.fr/iniparser/"
SRC_URI="http://ndevilla.free.fr/iniparser/${MY_P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~s390 ~sh ~sparc ~x86"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}"
S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack ${A}
epatch "${FILESDIR}/${P}-fix-set-functions.patch"
}
src_compile() {
sed -i \
-e "s|\(CFLAGS =\) -O2|\1 ${CFLAGS}|" \
-e "s|\(LDFLAGS =\)|\1 ${LDFLAGS}|" \
-e "s|/usr/lib|/usr/$(get_libdir)|" \
Makefile || die "sed failed"
emake CC=$(tc-getCC) AR="$(tc-getAR)" || die "emake failed"
}
src_install() {
dolib libiniparser.a libiniparser.so.0
dosym libiniparser.so.0 /usr/$(get_libdir)/libiniparser.so
insinto /usr/include
doins src/*.h
dodoc AUTHORS README
dohtml html/*
}
|