diff options
Diffstat (limited to 'dev-libs/libcbor')
-rw-r--r-- | dev-libs/libcbor/Manifest | 2 | ||||
-rw-r--r-- | dev-libs/libcbor/libcbor-0.10.2.ebuild | 70 |
2 files changed, 72 insertions, 0 deletions
diff --git a/dev-libs/libcbor/Manifest b/dev-libs/libcbor/Manifest index f5ebb4d9032a..b64ce1f5f566 100644 --- a/dev-libs/libcbor/Manifest +++ b/dev-libs/libcbor/Manifest @@ -1,5 +1,7 @@ DIST libcbor-0.10.1.tar.gz 284393 BLAKE2B 49b224493b4743fab0352e139ed9e85873238beb25e23555cd31f2ef720f6eb9ac136f26a92be56778f703f240dab2b6e0beddbb88c5cbf7edf084db7e96df76 SHA512 fd662d59127cd86a7e13eeb87ba0b4a9280f367b77fe85f579e5c230503ad39a323a8b9dfb8c6a49f8a05d5b81460ca4526dc130c7e1d403fd0839c0f37f5548 +DIST libcbor-0.10.2.tar.gz 289450 BLAKE2B 3ef2d7fd7942ff32acbe59db6a4b68ad72dde3af4675ef2ee3c93666360554d6e9a29392dbc4fb3029f9ff821f536b90bfd1c522c9c9c2298ab511322fb53d37 SHA512 23c6177443778d4b4833ec7ed0d0e639a0d4863372e3a38d772fdce2673eae6d5cb2a31a2a021d1a699082ea53494977c907fd0e94149b97cb23a4b6d039228a DIST libcbor-0.9.0.tar.gz 275405 BLAKE2B 7e78722650c702552dda4844615c454989281abe8c45ba3c9168af16e9d440a1b7e4e0c9afd89faa48e74ba85dcbe0c7733eec3e44fdafc0ca340e97574fe274 SHA512 710239f69d770212a82e933e59df1aba0fb3ec516ef6666a366f30a950565a52981b0d46ca7e0eea739f5785d79cc21fc19acd857a4a0b135f4f6aa3ef5fd3b0 EBUILD libcbor-0.10.1.ebuild 1433 BLAKE2B a11b51a8a97b0cc5f00664700dc9edd9353c5b1ee20abb2f9e580a8998444cf121b09387d69b911a13899b726f4885849cf94e717ec59361e5b8b7b22a444283 SHA512 1675c9f7cddae5993a9d68f3fd6b0e0235227f042b7bae1400a028a4fe749f51af7f57dd38d2f2f5254396d55a997a16f23f3138e6e6bc1267f89a707781149e +EBUILD libcbor-0.10.2.ebuild 1461 BLAKE2B 44cd78c89cebaf6022653a9e30b82f5074c7f7fd137306e51ddee8c21dcfb97e6acb9c2002fdde5e1f5bdbcc093b58ef9780728f5f00d7e62051555cdfcbdfa0 SHA512 baf1f70aee2edbca8c43d239cdf708004f9088011a42e5245b21da16dbe338e9ffe172b9d701324f90b5c1cb4164a99c4a914df444773c8980a6f37bfb1867bd EBUILD libcbor-0.9.0.ebuild 1455 BLAKE2B 81bc1de9eb46fb4ab7aa1fc591fec068e5b6b0a4b6a525f893f6055277bbc4a8b77fe73d12e97e91b76a3774263d993f1246811590a7f31777d7bdca8336ce95 SHA512 41ea687e9b0dfce38a89400e12d8f194d5bee8f5db2ec58ef1f628bd1acfa7b1f3668902dd4ce39f5d520f7dd7a87489833556c6ae81db534d33db3e7fe56d1c MISC metadata.xml 430 BLAKE2B f478d98c9495fbb0946ec5d193e489f8f8a3c0a4ecbbac58ed2e3a79124d65741a54dfdc1a73f41dad39c596511aa0873ea38d2ba22d45b75a9600a122886f1d SHA512 ae7788a8a66d6f5333ee22601ff1ac202d279a7dd2aa245231440bb8a48e83d64361d4c105e331c217b8be096d9cc6d76f3878d4132e8060bc1fdcb7e8a64b18 diff --git a/dev-libs/libcbor/libcbor-0.10.2.ebuild b/dev-libs/libcbor/libcbor-0.10.2.ebuild new file mode 100644 index 000000000000..db0bd0476f03 --- /dev/null +++ b/dev-libs/libcbor/libcbor-0.10.2.ebuild @@ -0,0 +1,70 @@ +# Copyright 2020-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) +inherit python-any-r1 cmake + +DESCRIPTION="CBOR protocol implementation for C and others" +HOMEPAGE="https://github.com/pjk/libcbor" +SRC_URI="https://github.com/PJK/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0/$(ver_cut 1-2)" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="+custom-alloc doc test" + +BDEPEND=" + doc? ( + $(python_gen_any_dep ' + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] + dev-python/breathe[${PYTHON_USEDEP}] + ') + ) + test? ( dev-util/cmocka ) +" + +RESTRICT="!test? ( test )" + +python_check_deps() { + python_has_version \ + "dev-python/sphinx[${PYTHON_USEDEP}]" \ + "dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]" \ + "dev-python/breathe[${PYTHON_USEDEP}]" +} + +pkg_setup() { + use doc && python-any-r1_pkg_setup +} + +src_configure() { + local mycmakeargs=( + -DCMAKE_BUILD_TYPE=Release + -DCBOR_CUSTOM_ALLOC=$(usex custom-alloc 'ON' 'OFF') + -DWITH_TESTS=$(usex test 'ON' 'OFF') + ) + + cmake_src_configure +} + +src_compile() { + cmake_src_compile + + if use doc; then + mkdir -p doc/build || die + pushd doc >/dev/null || die + emake html man + popd >/dev/null || die + fi +} + +src_install() { + cmake_src_install + + if use doc; then + dodoc -r doc/build/html + doman doc/build/man/* + fi +} |