diff options
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/Manifest.gz | bin | 94970 -> 95123 bytes | |||
-rw-r--r-- | dev-libs/json-parser/Manifest | 4 | ||||
-rw-r--r-- | dev-libs/json-parser/files/json-parser-1.1.0-pkgconfig-libdir.patch | 22 | ||||
-rw-r--r-- | dev-libs/json-parser/json-parser-1.1.0_p20211208.ebuild | 82 | ||||
-rw-r--r-- | dev-libs/json-parser/metadata.xml | 15 |
5 files changed, 123 insertions, 0 deletions
diff --git a/dev-libs/Manifest.gz b/dev-libs/Manifest.gz Binary files differindex 5c4ead22942c..62bb1ff157f1 100644 --- a/dev-libs/Manifest.gz +++ b/dev-libs/Manifest.gz diff --git a/dev-libs/json-parser/Manifest b/dev-libs/json-parser/Manifest new file mode 100644 index 000000000000..e7aa33ac27eb --- /dev/null +++ b/dev-libs/json-parser/Manifest @@ -0,0 +1,4 @@ +AUX json-parser-1.1.0-pkgconfig-libdir.patch 844 BLAKE2B 991a915cff64a9a3fd1fbeea36e9a6389272e70d04b25419650b8eaeb7ef13cd568d171a60817dbda4b51f6cfafebc18637ba9adcac8998d2b35a552e8183a53 SHA512 ee83f9b29d81de6fe313055ee53a3e9f9ab20a9fef46b42c155bda78abd687bdf4e834c9dc9c9ca8b76c1556217a9cbdda89b604efe75e7d9c7ba6ec7a1abf8b +DIST json-parser-1.1.0_p20211208.tar.gz 51479 BLAKE2B 31ce7929c1de829e312dfc855365d8851ad7c2ce31379d3ab4b4937291e2ec367c7692ecb11b781d0647e5dc38008e4e7bd122d9edaafd1c393a1cbf765117b9 SHA512 cbe6690a70ada1906b2c208fcbe03fe5a14651660ece9ba933a3160ea027c6dd9507189e1c63052059c3a00b2e2a59dbc65fa668a287455d438aa4453eecf22f +EBUILD json-parser-1.1.0_p20211208.ebuild 1560 BLAKE2B 5bf66698ffb5a86c92a104719661d48fd630e99c8305e0c35340975622937dfbf167d6f62aaa4db15b6c7e8e89f473e06afc0d023d4f773a9f012b07be1c1252 SHA512 93837b3872190a84c75d40d3554170c8d57e716633adefaa40000735595b5ecd2b85d106f336050503baa25befe6d27252473dcd57d8d45b8d9ba536a5a34400 +MISC metadata.xml 479 BLAKE2B 8bc63ea5aaacf718ff53ee6ff554a9037ab7344b4bca7bbe3348ac4206a1d76352bcc534c009232c7323ffe53fb65d68b09b9ed773320d59c01456e29c705865 SHA512 8907f69489f48488198a92960b262769c6f85f40bb6acf11860835544fff644346778c2da17a374e1ff43028a2913e76ac133e1ed9816b5f68bee0acb4693055 diff --git a/dev-libs/json-parser/files/json-parser-1.1.0-pkgconfig-libdir.patch b/dev-libs/json-parser/files/json-parser-1.1.0-pkgconfig-libdir.patch new file mode 100644 index 000000000000..094f8f985dec --- /dev/null +++ b/dev-libs/json-parser/files/json-parser-1.1.0-pkgconfig-libdir.patch @@ -0,0 +1,22 @@ +Upstream-PR: https://github.com/json-parser/json-parser/pull/164 + +diff --git a/Makefile.in b/Makefile.in +index 8938230..b7539f7 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -43,9 +43,9 @@ clean: + rm -f libjsonparser.$(SO_EXT) libjsonparser.a json.o + + install-shared: libjsonparser.$(SO_EXT) +- @echo Installing pkgconfig module: $(datadir)/pkgconfig/json-parser.pc +- @install -d $(datadir)/pkgconfig/ || true +- @install -m 0644 json-parser.pc $(datadir)/pkgconfig/json-parser.pc ++ @echo Installing pkgconfig module: $(libdir)/pkgconfig/json-parser.pc ++ @install -d $(libdir)/pkgconfig/ || true ++ @install -m 0644 json-parser.pc $(libdir)/pkgconfig/json-parser.pc + @echo Installing shared library: $(libdir)/libjsonparser.$(SO_EXT) + @install -d $(libdir) || true + @install -m 0755 libjsonparser.$(SO_EXT) $(libdir)/$(REAL_NAME) +-- +2.35.1 + diff --git a/dev-libs/json-parser/json-parser-1.1.0_p20211208.ebuild b/dev-libs/json-parser/json-parser-1.1.0_p20211208.ebuild new file mode 100644 index 000000000000..a551d83b795c --- /dev/null +++ b/dev-libs/json-parser/json-parser-1.1.0_p20211208.ebuild @@ -0,0 +1,82 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +DISTUTILS_OPTIONAL=1 +PYTHON_COMPAT=( python3_{9..11} ) + +inherit distutils-r1 edo toolchain-funcs + +COMMIT="531a49062975d6d2cd5d69b75ad5481a8c0e18c5" + +DESCRIPTION="Very low footprint JSON parser written in portable ANSI C" +HOMEPAGE="https://github.com/json-parser/json-parser" +SRC_URI="https://github.com/json-parser/json-parser/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" + +S="${WORKDIR}/${PN}-${COMMIT}" + +LICENSE="BSD-2" +SLOT="0/$(ver_cut 1-2)" +KEYWORDS="~amd64" +IUSE="python" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +DEPEND="" +RDEPEND="${DEPEND} + python? ( ${PYTHON_DEPS} ) +" +BDEPEND=" + python? ( + ${PYTHON_DEPS} + ${DISTUTILS_DEPS} + dev-python/cython[${PYTHON_USEDEP}] + ) +" + +PATCHES=( "${FILESDIR}/${PN}-1.1.0-pkgconfig-libdir.patch" ) + +wrap_python() { + local phase=$1 + shift + + if use python; then + pushd bindings/python || die + distutils-r1_${phase} "${@}" + popd + fi +} + +src_prepare() { + default + wrap_python ${FUNCNAME} +} + +src_configure() { + default + wrap_python ${FUNCNAME} +} + +src_compile() { + default + wrap_python ${FUNCNAME} +} + +python_test() { + "${EPYTHON}" test.py || die "Tests failed with ${EPYTHON}" +} + +src_test() { + edo $(tc-getCC) ${CFLAGS} -I. ${CPPFLAGS} ${LDFLAGS} -o tests/test tests/test.c json.o + pushd tests > /dev/null || die + edo ./test + use python && distutils-r1_src_test + popd +} + +src_install() { + emake DESTDIR="${D}" install-shared + dodoc README.md AUTHORS + wrap_python ${FUNCNAME} +} diff --git a/dev-libs/json-parser/metadata.xml b/dev-libs/json-parser/metadata.xml new file mode 100644 index 000000000000..4580bd57e5b3 --- /dev/null +++ b/dev-libs/json-parser/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>arkamar@atlas.cz</email> + <name>Petr Vaněk</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <upstream> + <remote-id type="github">json-parser/json-parser</remote-id> + </upstream> +</pkgmetadata> |