diff options
| -rw-r--r-- | dev-cpp/libecbor/Manifest | 1 | ||||
| -rw-r--r-- | dev-cpp/libecbor/files/libecbor-1.0.1-no-output-dirs.patch | 15 | ||||
| -rw-r--r-- | dev-cpp/libecbor/files/libecbor-1.0.1-security.patch | 11 | ||||
| -rw-r--r-- | dev-cpp/libecbor/libecbor-1.0.1.ebuild | 27 | ||||
| -rw-r--r-- | dev-cpp/libecbor/metadata.xml | 9 |
5 files changed, 63 insertions, 0 deletions
diff --git a/dev-cpp/libecbor/Manifest b/dev-cpp/libecbor/Manifest new file mode 100644 index 0000000..f5d08a2 --- /dev/null +++ b/dev-cpp/libecbor/Manifest @@ -0,0 +1 @@ +DIST libecbor-1.0.1.tar.gz 28691 BLAKE2B db76b0bcad71b4734cf00175be12383aeebd2a6e222bbf612c7c35ff593e6a54356aacd15e0d7d0c4b3b43c48c46c8cb223408b1a1201e134cb6336c1c1ed4a7 SHA512 f94efcb9fd8ab4e1ceb73582e46e2ce225d27e7633ec8d5a61b1a54237911560dbdaf65c37e34cc8f39400182bca0a00721ddad557e7da6fec04a7012a1dbb54 diff --git a/dev-cpp/libecbor/files/libecbor-1.0.1-no-output-dirs.patch b/dev-cpp/libecbor/files/libecbor-1.0.1-no-output-dirs.patch new file mode 100644 index 0000000..a6ce831 --- /dev/null +++ b/dev-cpp/libecbor/files/libecbor-1.0.1-no-output-dirs.patch @@ -0,0 +1,15 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 4b4e555..114d256 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -70,8 +70,8 @@ set_target_properties (${PROJECT_NAME}_static PROPERTIES OUTPUT_NAME ${PROJECT_N + + target_compile_options (${PROJECT_NAME}_static PRIVATE -nostdlib) + +-install (TARGETS ${PROJECT_NAME}_shared LIBRARY DESTINATION lib PUBLIC_HEADER DESTINATION include) +-install (TARGETS ${PROJECT_NAME}_static ARCHIVE DESTINATION lib PUBLIC_HEADER DESTINATION include) ++install (TARGETS ${PROJECT_NAME}_shared PUBLIC_HEADER DESTINATION include) ++install (TARGETS ${PROJECT_NAME}_static PUBLIC_HEADER DESTINATION include) + + # Tool Targets + if (BUILD_DESCRIBE_TOOL) diff --git a/dev-cpp/libecbor/files/libecbor-1.0.1-security.patch b/dev-cpp/libecbor/files/libecbor-1.0.1-security.patch new file mode 100644 index 0000000..ee319db --- /dev/null +++ b/dev-cpp/libecbor/files/libecbor-1.0.1-security.patch @@ -0,0 +1,11 @@ +--- a/src/ecbor-describe/ecbor_describe.c ++++ b/src/ecbor-describe/ecbor_describe.c +@@ -62,7 +62,7 @@ print_ecbor_item (ecbor_item_t *item, unsigned int level, char *prefix) + unsigned int i; + + for(i = 0; i < level * 2; i ++) putchar(' '); +- printf (prefix); ++ printf ("%s", prefix); + + mt = ecbor_get_type (item); + switch (mt) { diff --git a/dev-cpp/libecbor/libecbor-1.0.1.ebuild b/dev-cpp/libecbor/libecbor-1.0.1.ebuild new file mode 100644 index 0000000..a3bd68a --- /dev/null +++ b/dev-cpp/libecbor/libecbor-1.0.1.ebuild @@ -0,0 +1,27 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake-multilib + +DESCRIPTION="CBOR library for both desktop and embedded applications" +HOMEPAGE="https://github.com/rimio/libecbor" +SRC_URI="https://github.com/rimio/libecbor/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +RESTRICT="mirror" + +LICENSE="MIT" +SLOT="1.0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="" + +DEPEND="${RDEPEND}" + +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${P}-security.patch" + "${FILESDIR}/${P}-no-output-dirs.patch" +) diff --git a/dev-cpp/libecbor/metadata.xml b/dev-cpp/libecbor/metadata.xml new file mode 100644 index 0000000..7cac9bc --- /dev/null +++ b/dev-cpp/libecbor/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM 'https://www.gentoo.org/dtd/metadata.dtd'> +<pkgmetadata> + <maintainer type="person"> + <email>vasi@vilvoiu.ro</email> + <name>Vasile Vilvoiu</name> + </maintainer> + <longdescription>CBOR library with no dependencies, small memory footprint and code size, developed for both desktop and embedded applications</longdescription> +</pkgmetadata> |
