diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-libs/iniparser |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-libs/iniparser')
-rw-r--r-- | dev-libs/iniparser/Manifest | 12 | ||||
-rw-r--r-- | dev-libs/iniparser/files/iniparser-3.0-autotools.patch | 38 | ||||
-rw-r--r-- | dev-libs/iniparser/files/iniparser-3.0b-cpp.patch | 47 | ||||
-rw-r--r-- | dev-libs/iniparser/files/iniparser-4.0-cflags.patch | 28 | ||||
-rw-r--r-- | dev-libs/iniparser/files/iniparser-4.0-soname.patch | 35 | ||||
-rw-r--r-- | dev-libs/iniparser/iniparser-3.1-r1.ebuild | 46 | ||||
-rw-r--r-- | dev-libs/iniparser/iniparser-3.1.ebuild | 46 | ||||
-rw-r--r-- | dev-libs/iniparser/iniparser-4.0.ebuild | 78 | ||||
-rw-r--r-- | dev-libs/iniparser/metadata.xml | 11 |
9 files changed, 341 insertions, 0 deletions
diff --git a/dev-libs/iniparser/Manifest b/dev-libs/iniparser/Manifest new file mode 100644 index 000000000000..1a3b0e865d1c --- /dev/null +++ b/dev-libs/iniparser/Manifest @@ -0,0 +1,12 @@ +AUX iniparser-3.0-autotools.patch 829 SHA256 81bebe208c0af83b9d285c33c2ef5130d1485ed4ac02ef34b5fe7ecfd09c9f85 SHA512 7cfdd1d5e2c604125ec33a4e0332b32b77452445b59244d4c13e4c1b635ebeafd5cb6dd345c22101951acd71aab7621c4a2f36b9596d449a74b469d9f812610a WHIRLPOOL 70e424827f3146d1cdcd78904d6f501cb5e9e846b5dec594dde2de5cac0b9aa7a8e7449cfb13f6ab13200208cf1b4a7e09f824442479b5bfd50d0b80d35431fc +AUX iniparser-3.0b-cpp.patch 1446 SHA256 219c40b19e61191ef64de77d02351326f058f5eaf3447a7f5b5594c58fa3b378 SHA512 8eb2058e332783ae11ef5cbebec153ee1938352f111e3efe332035aa013cf6d01a917aef9a7b8f46f7bd070986e5e686e584d46dedf30276baeb8da0954631a9 WHIRLPOOL d8a31bf5459174af39c49fe83577910a61250f1b2982dc96ab6644375d7f4b3044bb5fab51e6d5f9e3df0092a51ad5adfd361c5f6188e7d773318f7e70de69d8 +AUX iniparser-4.0-cflags.patch 551 SHA256 88de146c10a142611ab5f4fe7991f8bc7245eac12ca454f16e55dc47c0512fee SHA512 a0c756e8a17245c4e7f5a5f5b9537d14d9873c574bf02827b09d3af8431b76561b139dce208ed22b6bc77ec171050e8ab10e4b58abbd35476870eabd97235ca2 WHIRLPOOL 2bfe65da540eeff6b96d02545c0f5d5b1d5c57ed9a31dc592823bd2a604e281f3a25db75922603c43d85244d1539627d7f9a58ce6b2382be7deee6ad408d4524 +AUX iniparser-4.0-soname.patch 994 SHA256 fd5b433173fe930c9dcfa40656e9c44527ce4ab356ad1fac219002450912decd SHA512 87f6b543ee308c8dce5c3a2e464b0c69e61708780d65f51b9243ab2d458eab515bc975356d071187aa08e2a14b86c1f6556ebbbdb09be276a5df718f863df051 WHIRLPOOL 4b6346909a1ee36749369e2e5ebe4c3f1cced139d9b1fa8bc43570d8fede1c50166ae23709bba9d20ce54dbb0172024e59773185b00878a9c8fe9052eed6b440 +DIST iniparser-3.1.tar.gz 39097 SHA256 aedf23881b834519aea5e861b2400606d211da049cd59d3cfb4568e0d9eff5c5 SHA512 8fd8324c5629fdc3e3eff00afb5f0832402ccc760c5b92db82aa29b340ec891419ca2c4fee3a4d4d67cf9bc51c76b095bc0c458e087c2b8e72ac36867c47ae86 WHIRLPOOL 1b8e6d5c34918cf51db605a7bc81eed75b521a57b403bbf26b572506735d78f58bad250512d53cfc08959c827713c8477a877b66b900a553a9c8099757df6d89 +DIST iniparser-4.0.tar.gz 41188 SHA256 e0bbd664bb3f0d64c21ac2d67a843b1c7a3a9710e96393344d170ab8b33e92ba SHA512 86080d4e4cb85e252f9c75116d9a548a2f08f2131e269834a0d16597da4e4c5790dff8304be082f2a8dcc75d17585e9a8fad3f0f4766bff8914f6ef2b0d6fa05 WHIRLPOOL 614ddb56f0aefc69ef98cf9b7bbdfe6300d0eaee048315550a9f38cecef05aa47a198859b929a520296f4ebef03377b12c41f062c3e95d32cacca1ef1b3797af +EBUILD iniparser-3.1-r1.ebuild 1153 SHA256 d04cb8a366bb777845cfd7e5de98dd45782f6b99aa267dfb16306061568fb633 SHA512 4799ed1b8503f5d05d277bd57b192b86ebf500febc5e0af933bbb5851b582c2de0de58494a381fb029c06fbff74d6468d53f1f0b9c9c968bb56dc1e06adbcc7b WHIRLPOOL d01f8d2c033a228e627f62ef619e56ba0a227867319bc2ff08f35b41864814aaf79ea566fdc6ab00720d80cf3482d7e96a1a1d783618aa22d0be811dc6bb8e3d +EBUILD iniparser-3.1.ebuild 1009 SHA256 b3a0aa427443ff3930e1e465bdeb38344b835a908504a272f01a12964b6f2a12 SHA512 a92ef3174bda9702bf8e30fbddda1046fc31af55286080bb1583c5ea4d3734930241300da3912e0df6f1dee9b8acfd63b1e865568a61f1886e2bf1916fb0e3f1 WHIRLPOOL 272247994d50e8b3612600aac1e31a5ea7cebed5949aa4cde133a17fe3db1a01b9fb2ccc963617488c4d8d0a514c7a62cb354fe3a7d555388fd5a54d9a0bce27 +EBUILD iniparser-4.0.ebuild 1800 SHA256 3868b394c48acbe6aea1f8aacc2176359e07b02b07d859e86e9d63aad1d534c8 SHA512 0429b180d60a8cac74776bb58bd4261cf24d8fcb80b128784243f46b3374df75a1d7dd921f00dd95e28879ffa1e61c992af5518cc88fd69bb4bd3748159e1ae3 WHIRLPOOL e20432e2d69ac1b6c67b3c92be16a7f65fe07f68efcd385b309b15feed4ab8609bd12b0d3e2e6f5f13f4ceb6ccf02f30c19c338232eb06219ed5415ac33d0251 +MISC ChangeLog 3479 SHA256 95b8dd93375b0501b150abf157c31e0f120eae1b4118bdd3b35f66d456546e89 SHA512 e8f137f76747797764f87c996e7164dae3a5dfd39d4b24886c1512d35bf896c7fbf12cfd785b47b7ce04584825dededbe21aa04ab94891e4d83a0bd7950f1031 WHIRLPOOL 290fa41a842cba486409c37b6cada2ad64d9fa7e7183e13d17451e598bfe9abc277d15aab412fb762f538204c64424125a4fb4ca5628046f89e5a6dae1349d98 +MISC ChangeLog-2015 6444 SHA256 c35787d28d2294a89bb542e5c4ac39a51574b059603952f135ed95555a610cb1 SHA512 3bd0ee7e908cb39d7244ebd6365df205e5d1f762e3ad6ecc8109ee36958957167cf0de2f38921ad498cd13fb5a11f507402ab3b623fbd315060f972a742c1241 WHIRLPOOL 950cab21eda650c1348846f2ee9bcb88c567127e36969b7eb94de2b4f80ad09315188d231736c609897eddd5c8cc929fec094d1c2d6a9704f2b12e393b6ec484 +MISC metadata.xml 326 SHA256 343d163fcdcc634192f91c1b2cbc34036b4fa736f8fdd85f61c39d2e99518b83 SHA512 7b19035fb203e35182b45f83c863916a8555b54d87605d310c2499c234bad06a39a33403aeb4f8624f31a9ef3660e1a98710e2f234cf9cd0e983f1ca173521e5 WHIRLPOOL 44a8ee514d73e0dda65294d7aef0795506e57d27c298e06edf04f0e9cf07d3fd68a615bb14ae74e12b2966eedc6f7dca70379997866499d941a7b3b3b58531a0 diff --git a/dev-libs/iniparser/files/iniparser-3.0-autotools.patch b/dev-libs/iniparser/files/iniparser-3.0-autotools.patch new file mode 100644 index 000000000000..89c7f63d29af --- /dev/null +++ b/dev-libs/iniparser/files/iniparser-3.0-autotools.patch @@ -0,0 +1,38 @@ +--- /dev/null ++++ Makefile.am +@@ -0,0 +1,8 @@ ++ACLOCAL_AMFLAGS = -I config ++ ++lib_LTLIBRARIES = libiniparser.la ++ ++libiniparser_la_LDFLAGS = -no-undefined -version-info @SHARED_VERSION_INFO@ ++libiniparser_la_SOURCES = src/dictionary.c src/iniparser.c ++ ++include_HEADERS = src/dictionary.h src/iniparser.h +--- /dev/null ++++ configure.ac +@@ -0,0 +1,24 @@ ++AC_PREREQ([2.65]) ++AC_INIT([iniparser], [3.0], [ndevilla@free.fr]) ++ ++AC_CONFIG_AUX_DIR(config) ++AC_CONFIG_MACRO_DIR(config) ++ ++AM_INIT_AUTOMAKE([1.8 foreign]) ++ ++SHARED_VERSION_INFO="0" ++AC_SUBST(SHARED_VERSION_INFO) ++ ++# Checks for programs. ++AC_PROG_CC ++AC_SYS_LARGEFILE ++ ++LT_INIT ++# Checks for header files. ++AC_CHECK_HEADERS([ ctype.h stdio.h stdlib.h string.h ]) ++ ++# Checks for library functions. ++AC_CHECK_FUNCS([strcmp]) ++ ++AC_CONFIG_FILES([Makefile]) ++AC_OUTPUT 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-4.0-cflags.patch b/dev-libs/iniparser/files/iniparser-4.0-cflags.patch new file mode 100644 index 000000000000..817b087e6d20 --- /dev/null +++ b/dev-libs/iniparser/files/iniparser-4.0-cflags.patch @@ -0,0 +1,28 @@ +From 14370f5ce94cce077c798db6611ef65cd1822df2 Mon Sep 17 00:00:00 2001 +From: Sebastian Pipping <sebastian@pipping.org> +Date: Sat, 8 Aug 2015 19:04:08 +0200 +Subject: [PATCH 1/2] Respect user CFLAGS + +--- + Makefile | 5 ----- + 1 file changed, 5 deletions(-) + +diff --git a/Makefile b/Makefile +index 78708a5..744405a 100644 +--- a/Makefile ++++ b/Makefile +@@ -6,11 +6,6 @@ + CC ?= gcc + + CFLAGS += -fPIC -Wall -Wextra -ansi -pedantic +-ifndef DEBUG +-CFLAGS += -O2 +-else +-CFLAGS += -g +-endif + + # Ar settings to build the library + AR ?= ar +-- +2.5.0 + diff --git a/dev-libs/iniparser/files/iniparser-4.0-soname.patch b/dev-libs/iniparser/files/iniparser-4.0-soname.patch new file mode 100644 index 000000000000..0536b671a5c3 --- /dev/null +++ b/dev-libs/iniparser/files/iniparser-4.0-soname.patch @@ -0,0 +1,35 @@ +From c3a112a89d3cbbfe0edc4fbac366a47986d6c118 Mon Sep 17 00:00:00 2001 +From: Sebastian Pipping <sebastian@pipping.org> +Date: Sat, 8 Aug 2015 19:10:27 +0200 +Subject: [PATCH 2/2] Adjust soname and make target non-phony + +--- + Makefile | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/Makefile b/Makefile +index 744405a..323e579 100644 +--- a/Makefile ++++ b/Makefile +@@ -14,6 +14,7 @@ ARFLAGS = rcv + SHLD = ${CC} ${CFLAGS} + LDSHFLAGS = -shared -Wl,-Bsymbolic + LDFLAGS += -Wl,-rpath -Wl,/usr/lib -Wl,-rpath,/usr/lib ++SONAME_CURRENT = 1 + + # Set RANLIB to ranlib on systems that require it (Sun OS < 4, Mac OSX) + # RANLIB = ranlib +@@ -52,8 +53,8 @@ libiniparser.a: $(OBJS) + $(QUIET_RANLIB)$(RANLIB) $@ + + libiniparser.so: $(OBJS) +- $(QUIET_LINK)$(SHLD) $(LDSHFLAGS) $(LDFLAGS) -o $@.0 $(OBJS) \ +- -Wl,-soname=`basename $@`.0 ++ $(QUIET_LINK)$(SHLD) $(LDSHFLAGS) $(LDFLAGS) -o $@ $(OBJS) \ ++ -Wl,-soname=libiniparser4.so.$(SONAME_CURRENT) + + clean: + $(RM) $(OBJS) +-- +2.5.0 + diff --git a/dev-libs/iniparser/iniparser-3.1-r1.ebuild b/dev-libs/iniparser/iniparser-3.1-r1.ebuild new file mode 100644 index 000000000000..2537e1e7e290 --- /dev/null +++ b/dev-libs/iniparser/iniparser-3.1-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +AUTOTOOLS_AUTORECONF=1 +inherit autotools-utils autotools-multilib + +DESCRIPTION="A free stand-alone ini file parsing library" +HOMEPAGE="http://ndevilla.free.fr/iniparser/" + +SRC_URI="http://ndevilla.free.fr/iniparser/${P}.tar.gz" +LICENSE="MIT" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +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" +) + +src_install() { + autotools-multilib_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 +} diff --git a/dev-libs/iniparser/iniparser-3.1.ebuild b/dev-libs/iniparser/iniparser-3.1.ebuild new file mode 100644 index 000000000000..6cddcadb73c5 --- /dev/null +++ b/dev-libs/iniparser/iniparser-3.1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +AUTOTOOLS_AUTORECONF=1 +inherit autotools-utils + +DESCRIPTION="A free stand-alone ini file parsing library" +HOMEPAGE="http://ndevilla.free.fr/iniparser/" + +SRC_URI="http://ndevilla.free.fr/iniparser/${P}.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 ~arm-linux ~x86-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" +) + +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 +} diff --git a/dev-libs/iniparser/iniparser-4.0.ebuild b/dev-libs/iniparser/iniparser-4.0.ebuild new file mode 100644 index 000000000000..b051667437ca --- /dev/null +++ b/dev-libs/iniparser/iniparser-4.0.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils multilib toolchain-funcs flag-o-matic + +DESCRIPTION="A free stand-alone ini file parsing library" +HOMEPAGE="https://github.com/ndevilla/iniparser" +SRC_URI="https://github.com/ndevilla/iniparser/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="4" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="doc examples static-libs" + +DEPEND="doc? ( app-doc/doxygen )" +RDEPEND="" + +DOCS=( AUTHORS README.md ) + +PATCHES=( + "${FILESDIR}"/${P}-cflags.patch + "${FILESDIR}"/${P}-soname.patch +) + +_newlib_so_with_symlinks() { + local source="${1}" base="${2}" current="${3}" revision="${4}" age="${5}" + local libdir="$(get_libdir)" + + newlib.so ${source} ${base}.so.${current}.${revision}.${age} + for i in ".${current}" '' ; do + dosym ${base}.so.${current}.${revision}.${age} /usr/${libdir}/${base}.so${i} + done +} + +src_prepare() { + epatch "${PATCHES[@]}" + rm -R html || die +} + +src_configure() { + append-lfs-flags +} + +_emake() { + emake CC="$(tc-getCC)" AR="$(tc-getAR)" V=1 "$@" +} + +src_compile() { + _emake +} + +src_test() { + _emake -C test +} + +src_install() { + use static-libs && newlib.a lib${PN}.a lib${PN}${SLOT}.a + _newlib_so_with_symlinks lib${PN}.so lib${PN}${SLOT} 1 0 0 + + insinto /usr/include/${PN}${SLOT} + doins src/*.h + + if use doc; then + emake -C doc + dohtml -r html/* + fi + + if use examples ; then + local examplesdir="/usr/share/doc/${PF}/examples" + insinto "${examplesdir}" + doins example/* + docompress -x "${examplesdir}" + fi + + dodoc "${DOCS[@]}" +} diff --git a/dev-libs/iniparser/metadata.xml b/dev-libs/iniparser/metadata.xml new file mode 100644 index 000000000000..4c5c1b89a443 --- /dev/null +++ b/dev-libs/iniparser/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>samba@gentoo.org</email> + <name>Samba Team</name> + </maintainer> + <upstream> + <remote-id type="github">ndevilla/iniparser</remote-id> + </upstream> +</pkgmetadata> |