diff options
author | Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org> | 2009-05-04 09:02:47 +0000 |
---|---|---|
committer | Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org> | 2009-05-04 09:02:47 +0000 |
commit | 7d7f2c8fa1c3e851c1cb32809d5a4b4aaf4e36d9 (patch) | |
tree | 352abd5965b7ce37ca33a49e3c4c345331f6c640 /dev-libs/iniparser/iniparser-3.0b-r1.ebuild | |
parent | Mask IO-Compress-2.018 deps too (diff) | |
download | gentoo-2-7d7f2c8fa1c3e851c1cb32809d5a4b4aaf4e36d9.tar.gz gentoo-2-7d7f2c8fa1c3e851c1cb32809d5a4b4aaf4e36d9.tar.bz2 gentoo-2-7d7f2c8fa1c3e851c1cb32809d5a4b4aaf4e36d9.zip |
Applied patch to sync headers and source of iniparser. Thanks to John Keeping <john.keeping@lineone.net> - fixes bug 267753.
Applied with dev-zero's agreement.
(Portage version: 2.2_rc31/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/iniparser/iniparser-3.0b-r1.ebuild')
-rw-r--r-- | dev-libs/iniparser/iniparser-3.0b-r1.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-libs/iniparser/iniparser-3.0b-r1.ebuild b/dev-libs/iniparser/iniparser-3.0b-r1.ebuild new file mode 100644 index 000000000000..8b8d7de069dd --- /dev/null +++ b/dev-libs/iniparser/iniparser-3.0b-r1.ebuild @@ -0,0 +1,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.1 2009/05/04 09:02:47 jmbsvicetto 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="~amd64 ~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/* +} |