Upgraded the iniparser Portage package

Upgraded dev-libs/iniparser to version 3.0b-r1 on amd64, arm, x86
CRAS will use iniparser to read config files.

BUG=chromium-os:25412
TEST=tegra2_kaen, lumpy, and x86-generic build.

Change-Id: Ib04cc3c3d01cfb0f00e2e6296d8b830b1bc2e079
Signed-off-by: Dylan Reid <dgreid@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/18875
Reviewed-by: Mike Frysinger <vapier@chromium.org>
This commit is contained in:
Dylan Reid 2012-03-22 12:25:34 -07:00 committed by Gerrit
parent 5390e95b22
commit 83a4a1641c
3 changed files with 75 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST iniparser3.0b.tar.gz 26080 RMD160 d60234e173a7e888feab24a21a8602834cf64e30 SHA1 0e3672eac056d457699d4121098f0fd3433b9809 SHA256 8a634cadcda15c53c427fc57b783b366df8213e7065646f67ceb526c5bf37426

View File

@ -0,0 +1,27 @@
diff -aur iniparser3.0b/src/iniparser.h iniparser3.0b.patched/src/iniparser.h
--- iniparser3.0b/src/iniparser.h 2007-11-23 21:38:19.000000000 +0000
+++ iniparser3.0b.patched/src/iniparser.h 2009-04-28 11:08:28.644706261 +0100
@@ -39,7 +39,8 @@
---------------------------------------------------------------------------*/
/** For backwards compatibility only */
#define iniparser_getstr(d, k) iniparser_getstring(d, k, NULL)
-#define iniparser_setstr iniparser_setstring
+#define iniparser_setstr iniparser_set
+#define iniparser_setstring iniparser_set
/*-------------------------------------------------------------------------*/
/**
@@ -215,11 +216,11 @@
@return int 0 if Ok, -1 otherwise.
If the given entry can be found in the dictionary, it is modified to
- contain the provided value. If it cannot be found, -1 is returned.
+ contain the provided value. If it cannot be found, it is inserted.
It is Ok to set val to NULL.
*/
/*--------------------------------------------------------------------------*/
-int iniparser_setstring(dictionary * ini, char * entry, char * val);
+int iniparser_set(dictionary * ini, char * entry, char * val);
/*-------------------------------------------------------------------------*/

View File

@ -0,0 +1,47 @@
# Copyright 1999-2010 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.15 2010/04/11 08:18:38 dev-zero Exp $
inherit eutils multilib toolchain-funcs
MY_P="${PN}${PV}"
DESCRIPTION="A free 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 ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}"
S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack ${A}
epatch "${FILESDIR}/${P}-fix-set-functions.patch"
}
src_compile() {
echo "CFLAGS: ${CFLAGS}"
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/*
}