diff options
author | Tiziano Müller <dev-zero@gentoo.org> | 2010-04-11 08:18:38 +0000 |
---|---|---|
committer | Tiziano Müller <dev-zero@gentoo.org> | 2010-04-11 08:18:38 +0000 |
commit | 0813ae1cd9595ff7dcd398b96a7735f179e7ce93 (patch) | |
tree | 9604fa3048bfafdc7720794f160050df868e2a00 | |
parent | stable on ia64. wrt bug #302064. (diff) | |
download | historical-0813ae1cd9595ff7dcd398b96a7735f179e7ce93.tar.gz historical-0813ae1cd9595ff7dcd398b96a7735f179e7ce93.tar.bz2 historical-0813ae1cd9595ff7dcd398b96a7735f179e7ce93.zip |
Respect CC properly (bug #296050, thanks to Jeroen Roovers). Make headers C++ compatible (bug #264508, thanks to Lei Qing).
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64
-rw-r--r-- | dev-libs/iniparser/ChangeLog | 12 | ||||
-rw-r--r-- | dev-libs/iniparser/Manifest | 17 | ||||
-rw-r--r-- | dev-libs/iniparser/files/iniparser-3.0b-cpp.patch | 47 | ||||
-rw-r--r-- | dev-libs/iniparser/files/iniparser-3.0b-makefile.patch | 49 | ||||
-rw-r--r-- | dev-libs/iniparser/iniparser-3.0b-r1.ebuild | 5 | ||||
-rw-r--r-- | dev-libs/iniparser/iniparser-3.0b-r2.ebuild | 58 |
6 files changed, 172 insertions, 16 deletions
diff --git a/dev-libs/iniparser/ChangeLog b/dev-libs/iniparser/ChangeLog index 9899154c3ffa..db9d66599605 100644 --- a/dev-libs/iniparser/ChangeLog +++ b/dev-libs/iniparser/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for dev-libs/iniparser -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/iniparser/ChangeLog,v 1.15 2009/12/27 08:02:24 josejx Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/iniparser/ChangeLog,v 1.16 2010/04/11 08:18:38 dev-zero Exp $ + +*iniparser-3.0b-r2 (11 Apr 2010) + + 11 Apr 2010; Tiziano Müller <dev-zero@gentoo.org> + iniparser-3.0b-r1.ebuild, +iniparser-3.0b-r2.ebuild, + +files/iniparser-3.0b-cpp.patch, +files/iniparser-3.0b-makefile.patch: + Respect CC properly (bug #296050, thanks to Jeroen Roovers). Make headers + C++ compatible (bug #264508, thanks to Lei Qing). 27 Dec 2009; Joseph Jezak <josejx@gentoo.org> iniparser-3.0b-r1.ebuild: Marked ppc/ppc64 stable for bug #291428. diff --git a/dev-libs/iniparser/Manifest b/dev-libs/iniparser/Manifest index 117134e560ab..182d445658a0 100644 --- a/dev-libs/iniparser/Manifest +++ b/dev-libs/iniparser/Manifest @@ -1,16 +1,9 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - +AUX iniparser-3.0b-cpp.patch 1446 RMD160 d4fd1920f5f86eb4975b51f317d3e2c517e346ff SHA1 376a3789aacf26b909ef77d73330d965a304db82 SHA256 219c40b19e61191ef64de77d02351326f058f5eaf3447a7f5b5594c58fa3b378 AUX iniparser-3.0b-fix-set-functions.patch 1273 RMD160 42d9afa071b01a0ceb054ceaa202e49108a4d803 SHA1 41d49a0e866ad04acd359abab5153f3b572986fb SHA256 3d0cd6ec01d887c426fedf43d72425c61311af080dd528912ae4e91af4134892 +AUX iniparser-3.0b-makefile.patch 1351 RMD160 fc0345bfd6640e8f898436e9fc8460ca5c11a20c SHA1 918fbcadedadefc15cbbce7561f2512ce6dc1b0e SHA256 f06c8679a53d135b9d4c1c9141beba9eff32dbb1f0cc09e8631259ec28e37120 DIST iniparser3.0b.tar.gz 26080 RMD160 d60234e173a7e888feab24a21a8602834cf64e30 SHA1 0e3672eac056d457699d4121098f0fd3433b9809 SHA256 8a634cadcda15c53c427fc57b783b366df8213e7065646f67ceb526c5bf37426 -EBUILD iniparser-3.0b-r1.ebuild 1134 RMD160 b0ea1ce316aa720a3cc5a084a3dba9550510b34e SHA1 fa11b15046bdd26cc078f571083db73a10da8ef7 SHA256 b06dbd52c49e6143343b67112f712a7e1762aff6a5797e596f1d0040fc4309f7 +EBUILD iniparser-3.0b-r1.ebuild 1162 RMD160 d8060c9c5f8a354edada8409194ff59d5f92d839 SHA1 fcfe2758649f04f2add4c5085c715f4206ba2878 SHA256 5063f62b20f723116cd215ecce9b4e36a8a16225f41b7aeaaaa0affe15a499af +EBUILD iniparser-3.0b-r2.ebuild 1305 RMD160 0c241f7fd2e2cf823df636a3afbd8cf1d42abf90 SHA1 0992a5f9805a2dd82cde3a1f378cc551305f2443 SHA256 612a94e21b694de9e84a1441c9a227481b704877d0c2b737487c8051c61aa0bf EBUILD iniparser-3.0b.ebuild 991 RMD160 3d112ce8a20c1ff28e2966cb1ee77596241d253a SHA1 6d405104a8c7ec1ea7f1cce786373c2b75f8d8bc SHA256 868815596f962402ac06e03ad006f50ef738c9989100022b9cbbc22761467a7b -MISC ChangeLog 2227 RMD160 0431160ba192a9f66ac9d1977208d45ee057a6a3 SHA1 fb68245281dd11227a5c21d04cfd6593dc744ac8 SHA256 61a23d618dc4df40eda4b0e0ae610fdec63d9a4c33acb83bf4da1a61e2f8eade +MISC ChangeLog 2573 RMD160 8fb4a7a5787f0e4d8dbd0af4a5e489f996ca2ec5 SHA1 2cb2b457f53dc8734cdf5c9ca4c97700540ec15f SHA256 e6190861ee7046b5e96651d504e7ce5865e5e1df68f24ae20351d6ff4a15630a MISC metadata.xml 243 RMD160 118071f7d6f4da5758ad40dc83e4a18946a54555 SHA1 dd276307a403ff09de2ef4596d4f436e22a646ff SHA256 710a08f21d0ea625d85ffae3040a4f64777b318263dd5323d9b695ea9ded3b02 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.11 (GNU/Linux) - -iEYEARECAAYFAks3FD8ACgkQcsIHjyDViGTBmwCfUTvkjdfw1eT9UEpf5aeD46h7 -2E8An1StTvhYu0FrzyTZaTJq3JT2b9Or -=pHcS ------END PGP SIGNATURE----- diff --git a/dev-libs/iniparser/files/iniparser-3.0b-cpp.patch b/dev-libs/iniparser/files/iniparser-3.0b-cpp.patch new file mode 100644 index 000000000000..cb331b813093 --- /dev/null +++ b/dev-libs/iniparser/files/iniparser-3.0b-cpp.patch @@ -0,0 +1,47 @@ +diff -ur iniparser3.0b/src/dictionary.c iniparser3.0b-patched/src/dictionary.c +--- iniparser3.0b/src/dictionary.c 2007-11-24 05:39:18.000000000 +0800 ++++ iniparser3.0b-patched/src/dictionary.c 2009-04-01 21:38:09.000000000 +0800 +@@ -38,6 +38,9 @@ + /*--------------------------------------------------------------------------- + Private functions + ---------------------------------------------------------------------------*/ ++#ifdef __cplusplus ++extern "C" { ++#endif + + /* Doubles the allocated size associated to a pointer */ + /* 'size' is the current allocated size. */ +@@ -401,5 +404,10 @@ + dictionary_del(d); + return 0 ; + } ++ ++#ifdef __cplusplus ++} ++#endif ++ + #endif + /* vim: set ts=4 et sw=4 tw=75 */ +diff -ur iniparser3.0b/src/iniparser.h iniparser3.0b-patched/src/iniparser.h +--- iniparser3.0b/src/iniparser.h 2007-11-24 05:38:19.000000000 +0800 ++++ iniparser3.0b-patched/src/iniparser.h 2009-04-01 21:38:02.000000000 +0800 +@@ -41,6 +41,10 @@ + #define iniparser_getstr(d, k) iniparser_getstring(d, k, NULL) + #define iniparser_setstr iniparser_setstring + ++#ifdef __cplusplus ++extern "C" { ++#endif ++ + /*-------------------------------------------------------------------------*/ + /** + @brief Get number of sections in a dictionary +@@ -277,4 +281,8 @@ + /*--------------------------------------------------------------------------*/ + void iniparser_freedict(dictionary * d); + ++#ifdef __cplusplus ++} ++#endif ++ + #endif diff --git a/dev-libs/iniparser/files/iniparser-3.0b-makefile.patch b/dev-libs/iniparser/files/iniparser-3.0b-makefile.patch new file mode 100644 index 000000000000..6f834030ddb9 --- /dev/null +++ b/dev-libs/iniparser/files/iniparser-3.0b-makefile.patch @@ -0,0 +1,49 @@ +diff -Naur iniparser3.0b.orig/Makefile iniparser3.0b/Makefile +--- iniparser3.0b.orig/Makefile 2010-04-07 08:02:48.771242264 +0200 ++++ iniparser3.0b/Makefile 2010-04-07 08:10:51.403895732 +0200 +@@ -3,16 +3,16 @@ + # + + # Compiler settings +-CC = gcc +-CFLAGS = -O2 -fPIC -Wall -ansi -pedantic ++CC ?= gcc ++CFLAGS += -fPIC -Wall -ansi -pedantic + + # Ar settings to build the library +-AR = ar ++AR ?= ar + ARFLAGS = rcv + + SHLD = ${CC} ${CFLAGS} +-LDSHFLAGS = -shared -Wl,-Bsymbolic -Wl,-rpath -Wl,/usr/lib -Wl,-rpath,/usr/lib +-LDFLAGS = -Wl,-rpath -Wl,/usr/lib -Wl,-rpath,/usr/lib ++LDSHFLAGS = -shared -Wl,-Bsymbolic ++LDFLAGS += -Wl,-rpath -Wl,/usr/lib -Wl,-rpath,/usr/lib + + # Set RANLIB to ranlib on systems that require it (Sun OS < 4, Mac OSX) + # RANLIB = ranlib +@@ -28,7 +28,7 @@ + COMPILE.c=$(CC) $(CFLAGS) -c + .c.o: + @(echo "compiling $< ...") +- @($(COMPILE.c) -o $@ $<) ++ $(COMPILE.c) -o $@ $< + + + SRCS = src/iniparser.c \ +@@ -40,11 +40,11 @@ + default: libiniparser.a libiniparser.so + + libiniparser.a: $(OBJS) +- @($(AR) $(ARFLAGS) libiniparser.a $(OBJS)) +- @($(RANLIB) libiniparser.a) ++ $(AR) $(ARFLAGS) libiniparser.a $(OBJS) ++ $(RANLIB) libiniparser.a + + libiniparser.so: $(OBJS) +- @$(SHLD) $(LDSHFLAGS) -o $@.0 $(OBJS) $(LDFLAGS) \ ++ $(SHLD) $(LDSHFLAGS) $(LDFLAGS) -o $@.0 $(OBJS) \ + -Wl,-soname=`basename $@`.0 + + clean: diff --git a/dev-libs/iniparser/iniparser-3.0b-r1.ebuild b/dev-libs/iniparser/iniparser-3.0b-r1.ebuild index cd67bfb5ef16..6baf03d23886 100644 --- a/dev-libs/iniparser/iniparser-3.0b-r1.ebuild +++ b/dev-libs/iniparser/iniparser-3.0b-r1.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2009 Gentoo Foundation +# 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.14 2009/12/27 08:02:24 josejx Exp $ +# $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 @@ -25,6 +25,7 @@ src_unpack() { } src_compile() { + echo "CFLAGS: ${CFLAGS}" sed -i \ -e "s|\(CFLAGS =\) -O2|\1 ${CFLAGS}|" \ -e "s|\(LDFLAGS =\)|\1 ${LDFLAGS}|" \ diff --git a/dev-libs/iniparser/iniparser-3.0b-r2.ebuild b/dev-libs/iniparser/iniparser-3.0b-r2.ebuild new file mode 100644 index 000000000000..79ef1e5349a2 --- /dev/null +++ b/dev-libs/iniparser/iniparser-3.0b-r2.ebuild @@ -0,0 +1,58 @@ +# 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-r2.ebuild,v 1.1 2010/04/11 08:18:38 dev-zero Exp $ + +EAPI="2" + +inherit eutils multilib + +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="examples static-libs" + +DEPEND="" +RDEPEND="" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + epatch \ + "${FILESDIR}/${P}-fix-set-functions.patch" \ + "${FILESDIR}/${P}-cpp.patch" \ + "${FILESDIR}/${P}-makefile.patch" + + sed -i \ + -e "s|/usr/lib|/usr/$(get_libdir)|g" \ + Makefile || die "sed failed" +} + +src_compile() { + local targets="libiniparser.so" + use static-libs && targets="${targets} libiniparser.a" + + emake ${targets} || die "emake failed" +} + +src_install() { + dolib libiniparser.so.0 + dosym libiniparser.so.0 /usr/$(get_libdir)/libiniparser.so + + use static-libs && dolib libiniparser.a + + insinto /usr/include + doins src/*.h + + dodoc AUTHORS README + dohtml html/* + + if use examples ; then + insinto /usr/share/doc/${PF} + doins test/*.c + fi +} |